Skip to content

Commit

Permalink
test: fix incorrect condition
Browse files Browse the repository at this point in the history
 ------ -----------------------------------------------------------------------
  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.
 ------ -----------------------------------------------------------------------
  • Loading branch information
kenjis committed Aug 7, 2024
1 parent 223fbd9 commit 13e5f02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Language/AbstractTranslationTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ final public function testAllLocalizationParametersAreNotTranslated(string $loca
preg_match_all('/(\{[^\}]+\})/', $translation, $matches);
array_shift($matches);

if ($matches === []) {
if ($matches === [[]]) {
unset($matches);

continue;
Expand Down

0 comments on commit 13e5f02

Please sign in to comment.