-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Migrate remaining exceptions to PHP 8 syntax #10402
Conversation
*/ | ||
public static function newEntityFoundThroughRelationship(array $associationMapping, $entry) | ||
/** @psalm-param array<string, string> $associationMapping */ | ||
public static function newEntityFoundThroughRelationship(array $associationMapping, object $entry): ORMInvalidArgumentException |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public static function newEntityFoundThroughRelationship(array $associationMapping, object $entry): ORMInvalidArgumentException | |
public static function newEntityFoundThroughRelationship(array $associationMapping, object $entry): self |
Can we enforce this via PHPCS, btw?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kukulich hi 👋 ! Would you maybe know about this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's solved by Squiz.Classes.SelfMemberReference
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, probably not, because the sniff is used in Doctrine CS :(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks I'll have to write the sniff :)
* @return ORMInvalidArgumentException | ||
*/ | ||
public static function detachedEntityFoundThroughRelationship(array $assoc, $entry) | ||
/** @psalm-param array<string, string> $assoc */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably something we should fix on a lower branch: The method has a pretty strong opinion on which keys should be defined on that array. It might be worth either documenting the shape or splitting $assoc
into three (?) parameters.
41370fe
to
13d3ed0
Compare
Rebase needed. |
🤦 sorry |
13d3ed0
to
f84c0a1
Compare
No description provided.