for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace TheCodingMachine\Funky;
class UnknownTypeException extends \Exception
{
public static function create(\ReflectionMethod $reflectionMethod): self
return new self(sprintf(
'Cannot give a name to service of method %s::%s because it has no declared return type.',
$reflectionMethod->getDeclaringClass()->getName(),
$reflectionMethod->getName()
));
}