-
Notifications
You must be signed in to change notification settings - Fork 82
[5.0] Added missing return type #2766
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
Conversation
Preview of modified files: no change to preview. |
code_samples/ change report
|
} | ||
|
||
public function valueSchema() | ||
public function valueSchema(): never |
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 feel never is the right keyword to use here: https://www.php.net/manual/en/language.types.never.php
I would stick to interface here but I guess never
will also work in this particular example.
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.
never
makes more sens than array<string|int, mixed>|int
in this case.
Target: 5.0
PHPStan is failing on 5.0:
I feel
never
is the right keyword to use here: https://www.php.net/manual/en/language.types.never.php