recently I worked on adding psalm-require-extends semantics into phpstan.
in phpstan we allowed to access public properties and public methods on the interface type as an implication of using psalm-require-extends. It seems this is something missing in psalm
this issue is meant to discuss whether we could achieve feature parity in this regard.
recently I worked on adding psalm-require-extends semantics into phpstan.
in phpstan we allowed to access public properties and public methods on the interface type as an implication of using
psalm-require-extends
. It seems this is something missing in psalmthis issue is meant to discuss whether we could achieve feature parity in this regard.
see https://psalm.dev/r/8aefff36a3 vs https://phpstan.org/r/707a92dc-d8e7-4749-9eb4-06f796e5e432
you might be interessted more test-cases which have been added in the following PRs: