-
-
Notifications
You must be signed in to change notification settings - Fork 338
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TypeDeclaration] Skip callable on return type of control (#1572)
- Loading branch information
1 parent
3a2e85d
commit dbd934e
Showing
3 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
...ctionLike/ParamTypeDeclarationRector/Fixture/skip_callable_as_constructor_control.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 | ||
|
||
namespace Rector\Tests\TypeDeclaration\Rector\FunctionLike\ParamTypeDeclarationRector\Fixture; | ||
|
||
use Rector\Tests\TypeDeclaration\Rector\FunctionLike\ParamTypeDeclarationRector\Source\Nette\SomeControl; | ||
|
||
interface SkipCallableAsConstructorControl | ||
{ | ||
/** | ||
* @param callable $callable | ||
*/ | ||
public function create($callable): SomeControl; | ||
} |
12 changes: 12 additions & 0 deletions
12
...peDeclaration/Rector/FunctionLike/ParamTypeDeclarationRector/Source/Nette/SomeControl.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,12 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Rector\Tests\TypeDeclaration\Rector\FunctionLike\ParamTypeDeclarationRector\Source\Nette; | ||
|
||
use Nette\Application\UI\Control; | ||
|
||
final class SomeControl extends Control | ||
{ | ||
|
||
} |
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