phpspec / prophecy

Highly opinionated mocking framework for PHP 5.3+
MIT License
8.53k stars 240 forks source link

Remove support for instantiating a MethodProphecy without its arguments #582

Closed stof closed 1 year ago

stof commented 1 year ago

The actual usage of the class in ObjectProphecy always specifies the argument. Passing null would trigger fatal errors in multiple places in Prophecy due to the getter returning null instead of its expected type.

ciaranmcnulty commented 1 year ago

Makes sense to me 👍