You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that there should not be a null|string type here, since the type in PHPDoc @return is just string.
This also happens if you set the same types for the parameters of a function or properties of a class.
P.S. Thanks for the great tool! Psalm gives me a lot of inspiration.
The text was updated successfully, but these errors were encountered:
Psalm output (using commit 2127da3):
ERROR: MismatchingDocblockReturnType - 4:12 - Docblock has incorrect return type 'null|string', should be 'int|null'
Link to the playground: https://psalm.dev/r/616eb6fd60
It seems that there should not be a
null|string
type here, since the type in PHPDoc@return
is juststring
.This also happens if you set the same types for the parameters of a function or properties of a class.
P.S. Thanks for the great tool! Psalm gives me a lot of inspiration.
The text was updated successfully, but these errors were encountered: