Getting InvalidDocblock
when using the non-negative-int
scalar type on a class with namespace
#9070
Labels
bug
easy problems
Issues that can be fixed without background knowledge of Psalm
good first issue
Help wanted
I'm trying to validate that the index of an array is a non-negative integer, which works fine in the example below:
https://psalm.dev/r/9113171040
However, I'm getting an
InvalidDocblock
error when usingnon-negative-int
on a class with a namespace:https://psalm.dev/r/21478194fc
Note: it works if add a backslash before:
\non-negative-int
https://psalm.dev/r/33769b88c8
I'm assuming this is a bug, right?! Or is it the expected behavior?
The text was updated successfully, but these errors were encountered: