Skip to content

Commit 13e5f02

Browse files
committed
test: fix incorrect condition
------ ----------------------------------------------------------------------- Line tests/Language/AbstractTranslationTestCase.php ------ ----------------------------------------------------------------------- 327 Strict comparison using === between array{list<non-empty-string>} and array{} will always evaluate to false. 💡 Because the type is coming from a PHPDoc, you can turn off this check by setting treatPhpDocTypesAsCertain: false in your phpstan.neon.dist. ------ -----------------------------------------------------------------------
1 parent 223fbd9 commit 13e5f02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Language/AbstractTranslationTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ final public function testAllLocalizationParametersAreNotTranslated(string $loca
324324
preg_match_all('/(\{[^\}]+\})/', $translation, $matches);
325325
array_shift($matches);
326326

327-
if ($matches === []) {
327+
if ($matches === [[]]) {
328328
unset($matches);
329329

330330
continue;

0 commit comments

Comments
 (0)