phpspec / prophecy

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

Add return types in comparator classes #548

Closed stof closed 2 years ago

stof commented 2 years ago

This avoids deprecations reported by Symfony's DebugClassLoader saying that Comparator might add a return type in a future version. The other way to opt-out of the deprecation would be to add a @return phpdoc, but given we only supports PHP 7.2+ that has partial covariance for return types, it is OK to add the types natively.