-
-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix node being undetected as part of function signature when too deep…
…ly nested. (#1847) * Fix node being undetected as part of function signature when too deeply nested. * Fix coding standards. --------- Co-authored-by: Nicolas Giraud <nicolas.giraud@aareon.com>
- Loading branch information
Showing
3 changed files
with
58 additions
and
5 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
14 changes: 14 additions & 0 deletions
14
tests/autoloaded/mutator-fixtures/Reflection/rv-part-of-signature-flag-with-attributes.php
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,14 @@ | ||
<?php | ||
|
||
namespace InfectionReflectionPartOfSignature; | ||
|
||
class Test | ||
{ | ||
public function foo( | ||
int $param, | ||
#[CustomAttribute(false)] | ||
$test = 2.0 | ||
): bool { | ||
return count([]) === 1; | ||
} | ||
} |
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