-
-
Notifications
You must be signed in to change notification settings - Fork 345
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Php81] Handle crash on ArrowFunction attribute on FirstClassCallable…
…Rector (#6313) * [Php81] Handle crash on ArrowFunction attribute on FirstClassCallableRector * Fixed 🎉 * Fix phpstan
- Loading branch information
1 parent
a1cbff4
commit db5f353
Showing
2 changed files
with
51 additions
and
4 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
rules-tests/Php81/Rector/Array_/FirstClassCallableRector/Fixture/skip_in_attribute.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,12 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\Php81\Rector\Array_\FirstClassCallableRector\Fixture; | ||
|
||
function run(\Closure $closue): void | ||
{ | ||
} | ||
|
||
run( | ||
#[SomeAttribute(['array-argument'])] | ||
fn(): null => null, | ||
); |
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