-
-
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.
[TypeDeclaration] Skip param setter method intersection docblock not …
…autoload on ReturnNeverTypeRector (#4721) * Add test-case for #8121 * Closes #4717 Fixes rectorphp/rector#8121 --------- Co-authored-by: Matthias Krauser <matthias@krauser.eu>
- Loading branch information
1 parent
0a8ffe3
commit 17fe187
Showing
2 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
...turnNeverTypeRector/Fixture/skip_setters_param_intersection_docblock_not_autoload.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,14 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\TypeDeclaration\Rector\ClassMethod\ReturnNeverTypeRector\Fixture; | ||
|
||
final class SkipSettersParamIntersectionDocblockNotAutoload | ||
{ | ||
/** | ||
* @param Type&Parts[] $value | ||
*/ | ||
public function setter($value): void | ||
{ | ||
$this->prop = $value; | ||
} | ||
} |
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