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
I have a method, for which I want to define a contract that it is returning a non-empty-string.
I consider it an implementation detail, that technically the method is returning a numeric-string.
Isn't a numeric-string always a non-empty-string and therefore this error should not appear?
i also tried updating isSubTypeOf to return yes when $otherType was a non-empty-string but that broke other test cases, so not sure where to go from here
Bug report
I have a method, for which I want to define a contract that it is returning a
non-empty-string
.I consider it an implementation detail, that technically the method is returning a
numeric-string
.Isn't a
numeric-string
always anon-empty-string
and therefore this error should not appear?Code snippet that reproduces the problem
https://phpstan.org/r/7a8ac4a2-9417-456c-9ec3-330a92d7fff2
expected no error
The text was updated successfully, but these errors were encountered: