mirror of
https://github.com/Respect/Validation.git
synced 2026-03-15 23:05:45 +01:00
Bump respect/coding-standard from 4 to 5
This commit is contained in:
parent
7f66bcea10
commit
cfeb01e89e
355 changed files with 1579 additions and 1879 deletions
|
|
@ -36,15 +36,15 @@ use Respect\Validation\Message\Stringifier\QuotedStringifier;
|
|||
|
||||
final readonly class StandardStringifier implements Stringifier
|
||||
{
|
||||
private const MAXIMUM_DEPTH = 3;
|
||||
private const MAXIMUM_NUMBER_OF_ITEMS = 5;
|
||||
private const MAXIMUM_NUMBER_OF_PROPERTIES = self::MAXIMUM_NUMBER_OF_ITEMS;
|
||||
private const MAXIMUM_LENGTH = 120;
|
||||
private const int MAXIMUM_DEPTH = 3;
|
||||
private const int MAXIMUM_NUMBER_OF_ITEMS = 5;
|
||||
private const int MAXIMUM_NUMBER_OF_PROPERTIES = self::MAXIMUM_NUMBER_OF_ITEMS;
|
||||
private const int MAXIMUM_LENGTH = 120;
|
||||
|
||||
private Stringifier $stringifier;
|
||||
|
||||
public function __construct(
|
||||
private Quoter $quoter = new StandardQuoter(self::MAXIMUM_LENGTH)
|
||||
private Quoter $quoter = new StandardQuoter(self::MAXIMUM_LENGTH),
|
||||
) {
|
||||
$this->stringifier = $this->createStringifier($quoter);
|
||||
}
|
||||
|
|
@ -78,7 +78,7 @@ final readonly class StandardStringifier implements Stringifier
|
|||
$stringifier,
|
||||
$quoter,
|
||||
self::MAXIMUM_DEPTH,
|
||||
self::MAXIMUM_NUMBER_OF_PROPERTIES
|
||||
self::MAXIMUM_NUMBER_OF_PROPERTIES,
|
||||
));
|
||||
$stringifier->prependStringifier(new EnumerationStringifier($quoter));
|
||||
$stringifier->prependStringifier(new ObjectWithDebugInfoStringifier($arrayStringifier, $quoter));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue