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

psalm fixes #8286

Merged
merged 1 commit into from
Sep 30, 2020
Merged

psalm fixes #8286

merged 1 commit into from
Sep 30, 2020

Conversation

orklah
Copy link
Contributor

@orklah orklah commented Sep 27, 2020

Hi,

This PR propose fixing about 170 issues detected by Psalm at level 6.

If merged, there will be about 30 issues left to permanently raise the level to 6.

There was a lot of miscs modifications so it was difficult to separate in smaller PR. Please leave a review note on any modification you want to know more, I'll explain why the fix was relevant/necessary

@beberlei beberlei added this to the 2.7.4 milestone Sep 30, 2020
@beberlei beberlei merged commit e0eb82a into doctrine:2.7 Sep 30, 2020
@@ -397,6 +397,8 @@ class ClassMetadataInfo implements ClassMetadata
* Whether a unique constraint should be generated for the column.
*
* @var array
*
* @psalm-var array<string, array{type: string, fieldName: string, columnName: string, inherited: class-string}>
Copy link
Contributor

Choose a reason for hiding this comment

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

/cc @orklah nullable is missing here. Also, all the array keys are supposed to be optional but here they're required...

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.

5 participants