-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #452 from nextcloud/fix-doctrine-dbal
Fix doctrine/dbal missing files
- Loading branch information
Showing
14 changed files
with
325 additions
and
3,463 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
doctrine/cache/lib/Doctrine/Common/Cache/InvalidCacheId.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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)); | ||
} | ||
} |
Oops, something went wrong.