-
Notifications
You must be signed in to change notification settings - Fork 236
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
Do not cast null to array #463
Conversation
The possibility that null could be returned was overlooked in 2286f7b .
8a5df0d
to
fd04499
Compare
@@ -22,5 +22,3 @@ parameters: | |||
|
|||
# That tag is empty on purpose | |||
- '#PHPDoc tag @var has invalid value \(\)\: Unexpected token "\*/", expected type at offset 9#' | |||
# Backwards-compatibility | |||
- '#^Return type.*of method.*DocLexer::peek.*should be compatible.*$#' |
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.
Phpstan warned me 🙈
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.
Actually, the parent type returns array
, so it should not be happy with 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.
Ah Phpstan is only at level 3 🤔
The possibility that null could be returned was overlooked in 2286f7b .
Fixes #462