This repository has been archived by the owner on Mar 30, 2018. It is now read-only.
Invalid behavior of ReturnValue\FunctionCall mutator with return type hint? #191
Labels
Milestone
The
Humbug\Mutator\ReturnValue\FunctionCall
is replacing the return statement with a null value even when a non-nullable return type hint is set, generating aTypeError
.I believe that this mutator should be just executed when return type is not set or is nullable (PHP 7.1+), however I'm not sure how to implement that (or if you think that it should be done).
The text was updated successfully, but these errors were encountered: