Closed Morgy93 closed 2 months ago
Thank you for the question.
I think the standard name is class-string
(not string-class
)
https://phpstan.org/writing-php-code/phpdoc-types#class-string
We can support both if it's used by some other code sniffer.
Interesting, that code is provided by a third party.
But it seems that it should be class-string
indeed.
I'll open a PR on that code. If there is any reason, they need it like this, I'll update this issue.
Thank you 🙌
Thank you @Morgy93 - please let us know if there will be anything we can do.
Hello,
I have a method like:
Using it throws an
PHP0406 | Argument type mismatch
error:Argument '1' passed to require() is expected to be of type Class\With\Require\string-class, string given
Any idea what's wrong here?