Skip to content

Commit 90646a7

Browse files
committed
Merged branch '4.6'
2 parents 569efb8 + 14da200 commit 90646a7

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

phpstan-baseline.neon

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2742,12 +2742,6 @@ parameters:
27422742
count: 1
27432743
path: src/lib/Translation/Extractor/NotificationTranslationExtractor.php
27442744

2745-
-
2746-
message: '#^Possibly invalid array key type bool\|float\|int\|string\.$#'
2747-
identifier: offsetAccess.invalidOffset
2748-
count: 2
2749-
path: src/lib/Translation/Extractor/SortingTranslationExtractor.php
2750-
27512745
-
27522746
message: '#^Parameter \#1 \$fqcn of static method Symfony\\Component\\Form\\Util\\StringUtil\:\:fqcnToBlockPrefix\(\) expects string, class\-string\|false given\.$#'
27532747
identifier: argument.type

src/lib/Translation/Extractor/SortingTranslationExtractor.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ public function extract(): MessageCatalogue
4545

4646
$sortConstants = array_filter(
4747
$locationClass->getConstants(),
48-
static function ($value, $key): bool {
49-
return is_scalar($value) && strtolower(substr($key, 0, 11)) === 'sort_field_';
50-
},
48+
static fn ($value, $key): bool => is_int($value) && str_starts_with(strtolower($key), 'sort_field_'),
5149
ARRAY_FILTER_USE_BOTH
5250
);
5351

0 commit comments

Comments
 (0)