Skip to content

Commit 83df869

Browse files
committed
build(symfony): require 8.1 components
1 parent 854ada6 commit 83df869

3 files changed

Lines changed: 27 additions & 5 deletions

File tree

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
],
1414
"require": {
1515
"php": ">=8.4",
16-
"symfony/config": "^8.0",
17-
"symfony/translation": "^8.0",
18-
"symfony/validator": "^8.0"
16+
"symfony/config": "^8.1",
17+
"symfony/translation": "^8.1",
18+
"symfony/validator": "^8.1"
1919
},
2020
"require-dev": {
2121
"phpunit/phpunit": "^11.5",
22-
"symfony/console": "^8.0",
23-
"symfony/var-dumper": "^8.0",
22+
"symfony/console": "^8.1",
23+
"symfony/var-dumper": "^8.1",
2424
"wyrihaximus/list-classes-in-directory": "^1.7"
2525
},
2626
"autoload": {

src/ChainedValidatorInterface.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -742,6 +742,17 @@ public function wordCount(
742742
mixed $payload = null,
743743
): ChainedValidatorInterface&Validator;
744744

745+
public function xml(
746+
string $formatMessage = 'This value is not valid XML.',
747+
string $schemaMessage = 'This value does not conform to the expected XSD schema.',
748+
string $tooLargeMessage = 'This XML payload is too large ({{ size }} bytes): it exceeds the limit of {{ limit }} bytes.',
749+
?string $schemaPath = null,
750+
int $schemaFlags = 0,
751+
int $maxSize = 5242880,
752+
?array $groups = null,
753+
mixed $payload = null,
754+
): ChainedValidatorInterface&Validator;
755+
745756
public function yaml(
746757
string $message = 'This value is not valid YAML.',
747758
int $flags = 0,

src/StaticValidatorInterface.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -742,6 +742,17 @@ public static function wordCount(
742742
mixed $payload = null,
743743
): ChainedValidatorInterface&Validator;
744744

745+
public static function xml(
746+
string $formatMessage = 'This value is not valid XML.',
747+
string $schemaMessage = 'This value does not conform to the expected XSD schema.',
748+
string $tooLargeMessage = 'This XML payload is too large ({{ size }} bytes): it exceeds the limit of {{ limit }} bytes.',
749+
?string $schemaPath = null,
750+
int $schemaFlags = 0,
751+
int $maxSize = 5242880,
752+
?array $groups = null,
753+
mixed $payload = null,
754+
): ChainedValidatorInterface&Validator;
755+
745756
public static function yaml(
746757
string $message = 'This value is not valid YAML.',
747758
int $flags = 0,

0 commit comments

Comments
 (0)