-
-
Notifications
You must be signed in to change notification settings - Fork 362
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TypeDeclaration] Skip more detailed type on AddMethodCallBasedStrict…
…ParamTypeRector (#5866) * [TypeDeclaration] Skip more detailed type on AddMethodCallBasedStrictParamTypeRector * Fix
- Loading branch information
1 parent
ef84a1a
commit 558f44d
Showing
2 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
...ClassMethod/AddMethodCallBasedStrictParamTypeRector/Fixture/skip_more_detail_type.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,28 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Rector\Tests\TypeDeclaration\Rector\ClassMethod\AddMethodCallBasedStrictParamTypeRector\Fixture; | ||
|
||
use PhpParser\Node; | ||
use PhpParser\Node\Name; | ||
use PhpParser\Node\Name\FullyQualified; | ||
|
||
final class SkipMoreDetailType | ||
{ | ||
/** | ||
* @param Name $node | ||
*/ | ||
public function run(Node $node) | ||
{ | ||
if ($node instanceof FullyQualified) { | ||
return; | ||
} | ||
|
||
$this->execute($node); | ||
} | ||
|
||
private function execute(Name $node) | ||
{ | ||
} | ||
} |
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