[COMPOSER] Add new php-ffmpeg package

This commit is contained in:
t3nma
2020-08-07 23:42:38 +01:00
parent 0a6bb5190f
commit c527ad0803
8874 changed files with 1090008 additions and 154 deletions

View File

@@ -0,0 +1,25 @@
<?php
declare(strict_types=1);
namespace Doctrine\Common\Cache;
use InvalidArgumentException;
use function sprintf;
final class InvalidCacheId extends InvalidArgumentException
{
public static function exceedsMaxLength($id, int $maxLength) : self
{
return new self(sprintf('Cache id "%s" exceeds maximum length %d', $id, $maxLength));
}
public static function containsUnauthorizedCharacter($id, string $character) : self
{
return new self(sprintf('Cache id "%s" contains unauthorized character "%s"', $id, $character));
}
public static function containsControlCharacter($id) : self
{
return new self(sprintf('Cache id "%s" contains at least one control character', $id));
}
}