for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Doctrine\Annotations\Metadata;
use Exception;
use Throwable;
use function sprintf;
final class InvalidAnnotationValue extends Exception implements ValidationException
{
private function __construct(string $message, ?Throwable $previous = null)
parent::__construct($message, 0, $previous);
}
public static function new(AnnotationMetadata $annotationMetadata, Throwable $previous) : self
return new self(
sprintf(
'Invalid value for annotation %s',
$annotationMetadata->getName()
),
$previous
);