for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Stratadox\Di;
use RuntimeException;
use function sprintf;
final class InvalidServiceType extends RuntimeException implements InvalidServiceDefinition
{
public static function serviceIsNotOfType(
string $serviceName,
string $expectedType
) : InvalidServiceDefinition
return new static(sprintf(
'Service %s is not of type %s',
$serviceName,
$expectedType
));
}