-
-
Notifications
You must be signed in to change notification settings - Fork 947
numeric-string is non considered non-empty-string #7265
Copy link
Copy link
Closed
phpstan/phpstan-src
#1428Labels
Milestone
Description
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 a non-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
Reactions are currently unavailable