Skip to content
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

NullToStrictStringFuncCallArgRector - Register a few more functions #2994

Merged

Conversation

craigfrancis
Copy link
Contributor

@craigfrancis craigfrancis commented Oct 16, 2022

Following on from #2543, I think these function arguments are relevant.

This was based on some work I did back in December 2021 to identify which parameters no longer accept NULL in PHP 8.1 (source).

The parameters added to my list needed to also accept a space (manually tested each one), and I questioned if it was relevant for a space to be accepted (e.g. constant_name in define() does not).


As an aside, I would rather we didn't have to litter code with (string), but I didn't exactly get a good response from my NULL Coercion Consistency RFC (discussion).

@TomasVotruba TomasVotruba merged commit 5d1f686 into rectorphp:main Oct 16, 2022
@TomasVotruba
Copy link
Member

Thank you 👏

@craigfrancis
Copy link
Contributor Author

np, and while I'm fairly sure they are correct, please feel free to remove/modify as needed :-)

And thanks for all your work on Rector, it's really appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants