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

Fix deprecated Optional parameter before required parameter on PrintableNewAnonClassNode #987

Merged
merged 2 commits into from
Mar 17, 2024

Conversation

samsonasik
Copy link
Contributor

Fixes #986

@samsonasik
Copy link
Contributor Author

Ready to merge 👍

@staabm
Copy link
Contributor

staabm commented Mar 17, 2024

Would this error be detected by a php lint CI job?

If so, would be great to add such github actions

@samsonasik
Copy link
Contributor Author

samsonasik commented Mar 17, 2024

On rector-src, we use list of classes as preload, and error detected early.

I compared to php-parser v5, it seems null default value is not exists, so I think this is solution with remove default null.

@staabm
Copy link
Contributor

staabm commented Mar 17, 2024

I don't question your fix. was only thinking about some CI tooling for this PR here to make sure we can detect such errors in the future earlier

@nikic nikic merged commit d4d4e3e into nikic:4.x Mar 17, 2024
10 checks passed
@nikic
Copy link
Owner

nikic commented Mar 17, 2024

I don't see the deprecation warning printed on the PHP 8.2 and PHP 8.3 CI jobs at all -- I wonder why that is. I do see it when running with these versions locally.

@samsonasik samsonasik deleted the patch-1 branch March 17, 2024 08:12
staabm added a commit to staabm/PHP-Parser that referenced this pull request Mar 17, 2024
staabm added a commit to staabm/PHP-Parser that referenced this pull request Mar 17, 2024
…ameter on PrintableNewAnonClassNode (nikic#987)""

This reverts commit 71a8b79.
staabm added a commit to staabm/PHP-Parser that referenced this pull request Mar 17, 2024
…ameter on PrintableNewAnonClassNode (nikic#987)""

This reverts commit 71a8b79.
staabm added a commit to staabm/PHP-Parser that referenced this pull request Mar 17, 2024
…ameter on PrintableNewAnonClassNode (nikic#987)""

This reverts commit 71a8b79.
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.

None yet

3 participants