Skip to content

Commit

Permalink
Merge pull request #1153 from kenjis/fix-AbstractTranslationTestCase
Browse files Browse the repository at this point in the history
test: fix incorrect condition in AbstractTranslationTestCase
  • Loading branch information
datamweb authored Aug 7, 2024
2 parents 30fbec0 + 1d9290f commit 7a118f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/phpunit-lang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
- '!src/Language/en/**.php'
- 'phpunit*'
- '.github/workflows/phpunit-lang.yml'
- 'tests/Language/AbstractTranslationTestCase.php'
push:
branches:
- develop
Expand All @@ -17,6 +18,7 @@ on:
- '!src/Language/en/**.php'
- 'phpunit*'
- '.github/workflows/phpunit-lang.yml'
- 'tests/Language/AbstractTranslationTestCase.php'

jobs:
main:
Expand Down
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 7a118f3

Please sign in to comment.