Skip to content

Navigation Menu

Sign in
Appearance settings

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 bd741b8

Browse filesBrowse files
fix cs
1 parent 9097c47 commit bd741b8
Copy full SHA for bd741b8

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-1Lines 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

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