When you've a class Foo that:
- provides implementations of both
__call and __callStatic, and
- mixes in another class
Bar that has an instance method bar
creating an instance of Foo and calling that instance method results in an error of the form:
Dynamic call to static method Bar::bar(). [identifier=staticMethod.dynamicCall]
Playground: https://phpstan.org/r/bfd29cdb-749b-4b97-bd50-92ecb0fcfc92
Thanks!