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

PHPStan 1.5, Doctrine Coding Standard 9 #1248

Merged
merged 1 commit into from Apr 1, 2022

Conversation

derrabus
Copy link
Member

Q A
Type improvement
BC Break no
Fixed issues N/A

Summary

This PR bumps PHPStan and its plugins and fixes newly discovered errors.

@derrabus derrabus added this to the 3.4.2 milestone Mar 31, 2022
@derrabus derrabus requested a review from greg0ire March 31, 2022 11:25
@@ -35,6 +37,11 @@ parameters:
paths:
- tests/Doctrine/Migrations/Tests/Generator/ClassNameGeneratorTest.php

# TODO: Be more precise about class-strings
Copy link
Member Author

Choose a reason for hiding this comment

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

I tried to fix this one error, but it's really a rabbit hole. Someone (maybe me) could work on a fix this on a dedicated PR. For now, it should be fine to ignore the error.

@@ -15,7 +15,7 @@
*/
final class CurrentCommand extends DoctrineCommand
{
/** @var string */
/** @var string|null */
Copy link
Member

Choose a reason for hiding this comment

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

Why are these nullable?

Copy link
Member Author

Choose a reason for hiding this comment

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

Because they are in the parent class and types of overridden properties have to be invariant.

@derrabus derrabus merged commit f9b4c80 into doctrine:3.4.x Apr 1, 2022
@derrabus derrabus deleted the bump/phpstan branch April 1, 2022 06:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants