-
-
Notifications
You must be signed in to change notification settings - Fork 336
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Php80] Skip callable type different definition on ClassPropertyAssig…
…nToConstructorPromotionRector (#3010)
- Loading branch information
1 parent
b4c0637
commit f915a1f
Showing
4 changed files
with
55 additions
and
10 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
...ssignToConstructorPromotionRector/Fixture/skip_callable_type_different_definition.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,16 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector\Fixture; | ||
|
||
final class SkipCallableTypeDifferentDefinition | ||
{ | ||
/** @var CallbackHandler */ | ||
private $fallback; | ||
|
||
public function __construct(callable $fallback) | ||
{ | ||
$this->fallback = $fallback; | ||
} | ||
} | ||
|
||
?> |
16 changes: 16 additions & 0 deletions
16
...signToConstructorPromotionRector/Fixture/skip_callable_type_different_definition2.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,16 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector\Fixture; | ||
|
||
final class SkipCallableTypeDifferentDefinition2 | ||
{ | ||
/** @var \stdClass */ | ||
private $fallback; | ||
|
||
public function __construct(callable $fallback) | ||
{ | ||
$this->fallback = $fallback; | ||
} | ||
} | ||
|
||
?> |
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
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