-
Notifications
You must be signed in to change notification settings - Fork 155
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
[SF7] Fix analysis errors #891
Conversation
loic425
commented
May 23, 2024
Q | A |
---|---|
Bug fix? | yes on SF7 branch |
New feature? | no |
BC breaks? | no |
Deprecations? | no |
Related tickets | |
License | MIT |
3efee6e
to
1102e08
Compare
*/ | ||
public function transform($value) | ||
public function transform($value): mixed |
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.
This is a final class
*/ | ||
public function transform($value) | ||
public function transform($value): mixed |
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 function transform($value): mixed | |
public function transform(mixed $value): mixed |
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.
/** @param int|string|null $value */
public function reverseTransform($value): ?ResourceInterface
Not sure how it's even working, since correct typehint is
public function reverseTransform(mixed $value): mixed;
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.
you mean for the return typehint? this is ok, you can restrict it but I don't even remember on which php version.