-
Notifications
You must be signed in to change notification settings - Fork 853
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6437 from junichi11/php-gh-6432-named-args-after-…
…unpacking Fix wrong `IncorectNamedArgumentHintError` #6432
- Loading branch information
Showing
5 changed files
with
74 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 0 additions & 60 deletions
60
...fication/IncorrectNamedArgumentsHintError/testNamedAndUnpack.php.testNamedAndUnpack.hints
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
...ncorrectNamedArgumentsHintError/testUnpackingAfterNamed.php.testUnpackingAfterNamed.hints
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
...[], // NG | ||
----- | ||
HINT:Can't use argument unpacking(...) after named argument(name: arg). | ||
test(name: "arg", ...$unpacking); // NG | ||
------------- | ||
HINT:Can't use argument unpacking(...) after named argument(name: arg). | ||
...[2], // NG | ||
------ | ||
HINT:Can't use argument unpacking(...) after named argument(name: arg). | ||
...[1] // NG | ||
------ | ||
HINT:Can't use argument unpacking(...) after named argument(name: arg). | ||
...[2], // NG | ||
------ | ||
HINT:Can't use argument unpacking(...) after named argument(name: arg). | ||
...[1] // NG | ||
------ | ||
HINT:Can't use argument unpacking(...) after named argument(name: arg). | ||
...[1, 2, 3], // NG | ||
------------ | ||
HINT:Can't use argument unpacking(...) after named argument(name: arg). | ||
...[1, 2, 3], // NG | ||
------------ | ||
HINT:Can't use argument unpacking(...) after named argument(name: arg). | ||
...['a', 'b'] // NG | ||
------------- | ||
HINT:Can't use argument unpacking(...) after named argument(name: arg). | ||
...['a', 'b'], // NG | ||
------------- | ||
HINT:Can't use argument unpacking(...) after named argument(name: arg). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters