Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 588b94a

Browse filesBrowse files
fix cs
1 parent 30b6b05 commit 588b94a
Copy full SHA for 588b94a

File tree

2 files changed

+2
-2
lines changed
Filter options

2 files changed

+2
-2
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Validator/Constraints/Slug.php
+1-1
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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Validator/Constraints/SlugValidator.php
+1-1
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.