-
-
Notifications
You must be signed in to change notification settings - Fork 335
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TypeDeclaration] Handle crash on interface Mixin on ReturnTypeFromSt…
…rictConstantReturnRector (#5884) * [TypeDeclaration] Handle crash on interface Mixin on ReturnTypeFromStrictConstantReturnRector * run rector * move repetivive string message to constant
- Loading branch information
1 parent
6bd2b87
commit 6a5f6c5
Showing
2 changed files
with
26 additions
and
2 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
...ClassMethod/ReturnTypeFromStrictConstantReturnRector/Fixture/skip_interface_mixin.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 | ||
|
||
// the namespace Webmozart\Assert on purpose to reproduce crash | ||
// @see https://github.com/rectorphp/rector/issues/8624 | ||
// @see https://getrector.com/demo/e6b2e871-1b41-4897-8864-2f9aaad48de1 | ||
namespace Webmozart\Assert; | ||
|
||
interface Mixin | ||
{ | ||
public static function nullOrString($value, $message = ''); | ||
} |
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