Skip to content

Commit bd741b8

Browse files
fix cs
1 parent 9097c47 commit bd741b8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function __construct(
3030
?array $options = null,
3131
?string $message = null,
3232
?array $groups = null,
33-
mixed $payload = null
33+
mixed $payload = null,
3434
) {
3535
parent::__construct($options, $groups, $payload);
3636

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function validate(mixed $value, Constraint $constraint): void
3737

3838
$value = (string) $value;
3939

40-
if(preg_match(Slug::SLUG_PATTERN, $value) === 0) {
40+
if (0 === preg_match(Slug::SLUG_PATTERN, $value)) {
4141
$this->context->buildViolation($constraint->message)
4242
->setParameter('{{ value }}', $this->formatValue($value))
4343
->setCode(Slug::NOT_SLUG_ERROR)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy