-
-
Notifications
You must be signed in to change notification settings - Fork 339
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Php74] Mirror comment on Closure return to ArrowFunction expr on Clo…
…sureToArrowFunctionRector (#1677) Co-authored-by: Bruce Weirdan <weirdan@gmail.com> Co-authored-by: GitHub Action <action@github.com>
- Loading branch information
1 parent
0947481
commit a17759c
Showing
8 changed files
with
107 additions
and
4 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
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
13 changes: 13 additions & 0 deletions
13
...Php74/Rector/Closure/ClosureToArrowFunctionRector/Fixture/keep_docblock_on_return.php.inc
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,13 @@ | ||
<?php | ||
|
||
function() { | ||
/** @psalm-suppress UndefinedFunction */ | ||
return ff(); | ||
}; | ||
?> | ||
----- | ||
<?php | ||
|
||
fn() => /** @psalm-suppress UndefinedFunction */ | ||
ff(); | ||
?> |
13 changes: 13 additions & 0 deletions
13
...hp74/Rector/Closure/ClosureToArrowFunctionRector/Fixture/keep_docblock_on_return2.php.inc
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,13 @@ | ||
<?php | ||
|
||
function() { | ||
// @psalm-suppress UndefinedFunction | ||
return ff(); | ||
}; | ||
?> | ||
----- | ||
<?php | ||
|
||
fn() => // @psalm-suppress UndefinedFunction | ||
ff(); | ||
?> |
21 changes: 21 additions & 0 deletions
21
...hp74/Rector/Closure/ClosureToArrowFunctionRector/Fixture/keep_docblock_on_return3.php.inc
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,21 @@ | ||
<?php | ||
|
||
function() { | ||
/** | ||
* comment | ||
*/ | ||
// something | ||
// @psalm-suppress UndefinedFunction | ||
return ff(); | ||
}; | ||
?> | ||
----- | ||
<?php | ||
|
||
fn() => /** | ||
* comment | ||
*/ | ||
// something | ||
// @psalm-suppress UndefinedFunction | ||
ff(); | ||
?> |
9 changes: 9 additions & 0 deletions
9
...ure/ClosureToArrowFunctionRector/Fixture/skip_arrow_function_already_with_comment.php.inc
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,9 @@ | ||
<?php | ||
|
||
fn() => | ||
/** | ||
* comment | ||
*/ | ||
// something | ||
// @psalm-suppress UndefinedFunction | ||
ff(); |
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
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