-
-
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.
[Php80] Handle crash after transform with trait-string on UnionTypesR…
…ector (#2985) Co-authored-by: GitHub Action <action@github.com>
- Loading branch information
1 parent
1bf1547
commit 2427c5a
Showing
5 changed files
with
35 additions
and
7 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
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
11 changes: 11 additions & 0 deletions
11
...rty/TypedPropertyRector/FixtureUnionIntersectionTypes/skip_object_type_not_exists.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,11 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\Php74\Rector\Property\TypedPropertyRector\FixtureUnionIntersectionTypes; | ||
|
||
final class SkipObjectTypeNotExists | ||
{ | ||
/** | ||
* @var NotExistClass1&NotExistClass2<ItemCountry> | ||
*/ | ||
private $itemCountryRepo; | ||
} |
14 changes: 14 additions & 0 deletions
14
...-tests/Php80/Rector/FunctionLike/UnionTypesRector/Fixture/skip_union_trait_string.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\Php80\Rector\FunctionLike\UnionTypesRector\Fixture; | ||
|
||
class SkipUnionTraitString | ||
{ | ||
/** | ||
* @param string|trait-string $fromId | ||
*/ | ||
public function withFromId(string $fromId): static | ||
{ | ||
return $this; | ||
} | ||
} |