-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NoAliasFunctionsFixer - Add more function aliases #5588
Conversation
Note quite sure what to make of the phpstan analysis, seems like a bug to me (mixed is a supertype of string; plus the error is not triggered on other lines of the elseif)) |
That's weird, I've reported a bug: phpstan/phpstan#4793 - check out the example, it's really strange. As workaround you can add above the line with
Why not both? I often use both as the can detect different issues and both have some bugs. |
Needs tests covering some of these options. |
Finally got around to finishing this MR :) |
All OK over here? :) |
@danog can you rebase on 2.19 or allow to modify your branch by us? we need to ensure that CI kicks off for this PR and all jobs to be green, before we are able to merge. |
I don't see it solving any bug in the existing fixer. it's giving existing fixer more functionality (to handle more aliases) should go to 3.1 line |
There, all fixed up nicely. |
Thank you @danog. |
This PR was squashed before being merged into the master branch. Discussion ---------- NoAliasFunctionsFixer - Add more function aliases Extracted directly from the PHP trunk (master&7.4). Commits ------- 3d3e267 NoAliasFunctionsFixer - Add more function aliases
Extracted directly from the PHP trunk (master&7.4).