Skip to content
Snippets Groups Projects

simple support for mixed pseudo-type

Merged Jan Kuchař requested to merge support-for-mixed-pseudotype into master
3 files
+ 34
1
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -91,4 +91,12 @@ final class FunctionSignatureAssertionError extends \AssertionError {
"Expected return type of type '$expectedReturnType', but given function declares '$actualReturnType'."
);
}
public static function parameterDoesNotAcceptAllRequiredValues(\ReflectionFunction $reflection, \ReflectionType $reflectionType): self
{
return new self(
$reflection,
"Parameter of given function does not accept all required values. Parameter restricts input values to {$reflectionType}, assertion requires mixed. (=must accept everything)"
);
}
};
Loading