Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Bump psalm to v4.9.2 #151

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

Open
simPod wants to merge 1 commit into myclabs:master
base: master
Choose a base branch
Loading
from simPod:psalm
Open

Bump psalm to v4.9.2 #151

simPod wants to merge 1 commit into myclabs:master from simPod:psalm

Conversation

Copy link
Contributor

@simPod simPod commented Aug 3, 2021
edited
Loading

@simPod simPod marked this pull request as ready for review August 3, 2021 08:45
Copy link
Member

mnapoli commented Aug 3, 2021

Thanks!

I'll wait for a 3rd party approbation. I keep merging Psalm PRs on this project, and it seems half of them breaks something for someone ^^ I don't know enough Psalm to validate the annotation changes honestly.

Copy link
Contributor Author

@simPod simPod left a comment

Choose a reason for hiding this comment

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

Sure, added explanatory comments just fyi

mnapoli reacted with thumbs up emoji

/**
* @psalm-pure
* @psalm-suppress InvalidCast
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is unused

* Returns all possible values as an array
*
* @psalm-pure
* @psalm-suppress ImpureStaticProperty
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is unused


/** @psalm-var T $value */
foreach (static::toArray() as $key => $value) {
/** @psalm-suppress UnsafeGenericInstantiation */
Copy link
Contributor Author

Choose a reason for hiding this comment

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

IMO true, generic params may indeed be constrained in children

$message = "No static method or enum constant '$name' in class " . static::class;
throw new \BadMethodCallException($message);
}
/** @psalm-suppress UnsafeGenericInstantiation */
Copy link
Contributor Author

Choose a reason for hiding this comment

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

IMO true, generic params may indeed be constrained in children

- Lock to v4.9 otherwise it bumps automatically, finds new issues and builds start failing without any change in this lib
- fix some psalm issues
- enable `findUnusedPsalmSuppress`
Copy link

hi, any plans to merge it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Removing unnecessary psalm suppress docblock Build Failing due to psalm update

AltStyle によって変換されたページ (->オリジナル) /