Skip to content

Commit 31bd66c

Browse files
author
symfonyaml
committed
[Validator] Applied patch coding standard suggested by fabbot.io
1 parent 559244d commit 31bd66c

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

src/Symfony/Component/Validator/Constraints/Yaml.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespace Symfony\Component\Validator\Constraints;
1313

1414
use Symfony\Component\Validator\Constraint;
15-
use Symfony\Component\Validator\Exception\InvalidArgumentException;
1615

1716
#[\Attribute(\Attribute::TARGET_PROPERTY | \Attribute::TARGET_METHOD | \Attribute::IS_REPEATABLE)]
1817
class Yaml extends Constraint
@@ -38,4 +37,4 @@ public function __construct(
3837
$this->message = $message ?? $this->message;
3938
$this->flags = $flags ?? $this->flags;
4039
}
41-
}
40+
}

src/Symfony/Component/Validator/Constraints/YamlValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,4 @@ public function validate(mixed $value, Constraint $constraint): void
6262
restore_error_handler();
6363
}
6464
}
65-
}
65+
}

src/Symfony/Component/Validator/Tests/Constraints/YamlTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ class YamlDummy
5151

5252
#[Yaml(flags: YamlParser::PARSE_CONSTANT | YamlParser::PARSE_CUSTOM_TAGS)]
5353
private $d;
54-
}
54+
}

src/Symfony/Component/Validator/Tests/Constraints/YamlValidatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,4 @@ public static function getInvalidValues()
9393
["key:\nvalue", 'Unable to parse at line 2 (near "value").', 2],
9494
];
9595
}
96-
}
96+
}

0 commit comments

Comments
 (0)