for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Gravatalonga\Container;
use Exception;
use Psr\Container\ContainerExceptionInterface;
use ReflectionNamedType;
final class ContainerException extends Exception implements ContainerExceptionInterface
{
/**
* @return ContainerException
*/
public static function entryType(): ContainerException
return new self(sprintf('Entry type must be string'));
}
* @param ReflectionNamedType|null $type
*
public static function findType(?ReflectionNamedType $type): ContainerException
return new self(sprintf('Unable to find type hint (%s)', ($type ? $type->getName() : '')));
* @param string $id
public static function shareOnMake(string $id): ContainerException
return new self(sprintf('Entry is shared and cannot be called on make: %s', $id));