Skip to content

Commit 638450b

Browse files
committed
Merge branch '7.2' into 7.3
* 7.2: add translations for the Twig constraint drop the Date header using the Postmark API transport [VarExporter] Fix: Use correct closure call for property-specific logic in $notByRef [Validator] [WordCount] Treat 0 as one character word and do not exclude it Unnecessary cast, return, semicolon and comma Fix ServiceMethodsSubscriberTrait for nullable service [Notifier] [Discord] Fix value limits Fix ServiceMethodsSubscriberTrait for nullable service
2 parents d0f8a8f + 48ed8fb commit 638450b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+230
-1
lines changed

Constraints/WordCountValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function validate(mixed $value, Constraint $constraint): void
4444
$words = iterator_to_array($iterator->getPartsIterator());
4545

4646
// erase "blank words" and don't count them as words
47-
$wordsCount = \count(array_filter(array_map(trim(...), $words)));
47+
$wordsCount = \count(array_filter(array_map(trim(...), $words), fn ($word) => '' !== $word));
4848

4949
if (null !== $constraint->min && $wordsCount < $constraint->min) {
5050
$this->context->buildViolation($constraint->minMessage)

Resources/translations/validators.af.xlf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,10 @@
470470
<source>This value is not a valid slug.</source>
471471
<target state="needs-review-translation">Hierdie waarde is nie 'n geldige slug nie.</target>
472472
</trans-unit>
473+
<trans-unit id="121">
474+
<source>This value is not a valid Twig template.</source>
475+
<target state="needs-translation">This value is not a valid Twig template.</target>
476+
</trans-unit>
473477
</body>
474478
</file>
475479
</xliff>

Resources/translations/validators.ar.xlf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,10 @@
470470
<source>This value is not a valid slug.</source>
471471
<target>هذه القيمة ليست رمزا صالحا.</target>
472472
</trans-unit>
473+
<trans-unit id="121">
474+
<source>This value is not a valid Twig template.</source>
475+
<target state="needs-translation">This value is not a valid Twig template.</target>
476+
</trans-unit>
473477
</body>
474478
</file>
475479
</xliff>

Resources/translations/validators.az.xlf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,10 @@
470470
<source>This value is not a valid slug.</source>
471471
<target state="needs-review-translation">Bu dəyər etibarlı slug deyil.</target>
472472
</trans-unit>
473+
<trans-unit id="121">
474+
<source>This value is not a valid Twig template.</source>
475+
<target state="needs-translation">This value is not a valid Twig template.</target>
476+
</trans-unit>
473477
</body>
474478
</file>
475479
</xliff>

Resources/translations/validators.be.xlf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,10 @@
470470
<source>This value is not a valid slug.</source>
471471
<target state="needs-review-translation">Гэта значэнне не з'яўляецца сапраўдным слугам.</target>
472472
</trans-unit>
473+
<trans-unit id="121">
474+
<source>This value is not a valid Twig template.</source>
475+
<target state="needs-translation">This value is not a valid Twig template.</target>
476+
</trans-unit>
473477
</body>
474478
</file>
475479
</xliff>

Resources/translations/validators.bg.xlf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,10 @@
470470
<source>This value is not a valid slug.</source>
471471
<target state="needs-review-translation">Тази стойност не е валиден слаг.</target>
472472
</trans-unit>
473+
<trans-unit id="121">
474+
<source>This value is not a valid Twig template.</source>
475+
<target state="needs-translation">This value is not a valid Twig template.</target>
476+
</trans-unit>
473477
</body>
474478
</file>
475479
</xliff>

Resources/translations/validators.bs.xlf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,10 @@
470470
<source>This value is not a valid slug.</source>
471471
<target state="needs-review-translation">Ova vrijednost nije važeći slug.</target>
472472
</trans-unit>
473+
<trans-unit id="121">
474+
<source>This value is not a valid Twig template.</source>
475+
<target state="needs-translation">This value is not a valid Twig template.</target>
476+
</trans-unit>
473477
</body>
474478
</file>
475479
</xliff>

Resources/translations/validators.ca.xlf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,10 @@
470470
<source>This value is not a valid slug.</source>
471471
<target state="needs-review-translation">Aquest valor no és un slug vàlid.</target>
472472
</trans-unit>
473+
<trans-unit id="121">
474+
<source>This value is not a valid Twig template.</source>
475+
<target state="needs-translation">This value is not a valid Twig template.</target>
476+
</trans-unit>
473477
</body>
474478
</file>
475479
</xliff>

Resources/translations/validators.cs.xlf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,10 @@
470470
<source>This value is not a valid slug.</source>
471471
<target>Tato hodnota není platný slug.</target>
472472
</trans-unit>
473+
<trans-unit id="121">
474+
<source>This value is not a valid Twig template.</source>
475+
<target state="needs-translation">This value is not a valid Twig template.</target>
476+
</trans-unit>
473477
</body>
474478
</file>
475479
</xliff>

Resources/translations/validators.cy.xlf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,10 @@
470470
<source>This value is not a valid slug.</source>
471471
<target state="needs-review-translation">Nid yw'r gwerth hwn yn slug dilys.</target>
472472
</trans-unit>
473+
<trans-unit id="121">
474+
<source>This value is not a valid Twig template.</source>
475+
<target state="needs-translation">This value is not a valid Twig template.</target>
476+
</trans-unit>
473477
</body>
474478
</file>
475479
</xliff>

0 commit comments

Comments
 (0)