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

Make "required params following optional ones" ignorable #2218

Merged

Conversation

Wirone
Copy link
Contributor

@Wirone Wirone commented Feb 3, 2023

Such code is working as expected and PHPStan should not enforce changes there.

Slack discussion, playground example.

Copy link
Member

@ondrejmirtes ondrejmirtes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not remove the error, just remove the nonIgnorable part.

@Wirone
Copy link
Contributor Author

Wirone commented Feb 3, 2023

Ah snap! I'll do it in the evening. Went to basketball game 😉

Such code is working as expected and PHPStan should not enforce changes there.
@Wirone Wirone force-pushed the codito/remove-php8-deprecation-error branch from 36b8216 to fad43dd Compare February 3, 2023 19:11
@Wirone Wirone changed the title Do not report errors on required params following optional ones Make "required params following optional ones" ignorable Feb 3, 2023
@Wirone
Copy link
Contributor Author

Wirone commented Feb 3, 2023

@ondrejmirtes Should test be added for scenario with @phpstan-ignore-*? And I don't know why actions complain about changed title - I changed it so it better describes the change 🤷

@ondrejmirtes ondrejmirtes merged commit cfe73f1 into phpstan:1.9.x Feb 6, 2023
@ondrejmirtes
Copy link
Member

Thank you.

@Wirone Wirone deleted the codito/remove-php8-deprecation-error branch February 6, 2023 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants