Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #3823 NativeConstantInvocationFixer - better constant detection (…
…gharlan, SpacePossum, keradus) This PR was squashed before being merged into the 2.12 branch (closes #3823). Discussion ---------- NativeConstantInvocationFixer - better constant detection Some previous failing test cases: ```php M_PI::foo(); function foo(M_PI $a) {} function foo(): M_PI {} $foo instanceof M_PI; class x implements FOO, BAR, BAZ {} use X\Y\{FOO, BAR as BAR2, BAZ}; class Foo { use Bar, M_PI { Bar::baz insteadof M_PI; } } M_PI: goto M_PI; // ;) ``` Commits ------- a8a4ef2 NativeConstantInvocationFixer - better constant detection
- Loading branch information
Showing
4 changed files
with
316 additions
and
13 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
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