vimeo / psalm

A static analysis tool for finding errors in PHP applications
https://psalm.dev
MIT License
5.55k stars 659 forks source link

No way of specifying object shapes with methods #6959

Open danog opened 2 years ago

danog commented 2 years ago

https://psalm.dev/r/07f82eebcf Even if TObjectWithProperties allows specifying methods in the constructor and even specifies them in its string representation, the type parser doesn't parse methods in object shapes.

psalm-github-bot[bot] commented 2 years ago

I found these snippets:

https://psalm.dev/r/07f82eebcf ```php