diff --git a/.github/workflows/phpunit-lang.yml b/.github/workflows/phpunit-lang.yml index 4ff8e9c90..0a89cbcd9 100644 --- a/.github/workflows/phpunit-lang.yml +++ b/.github/workflows/phpunit-lang.yml @@ -9,6 +9,7 @@ on: - '!src/Language/en/**.php' - 'phpunit*' - '.github/workflows/phpunit-lang.yml' + - 'tests/Language/AbstractTranslationTestCase.php' push: branches: - develop @@ -17,6 +18,7 @@ on: - '!src/Language/en/**.php' - 'phpunit*' - '.github/workflows/phpunit-lang.yml' + - 'tests/Language/AbstractTranslationTestCase.php' jobs: main: diff --git a/tests/Language/AbstractTranslationTestCase.php b/tests/Language/AbstractTranslationTestCase.php index a400e855b..daf0cfbd0 100644 --- a/tests/Language/AbstractTranslationTestCase.php +++ b/tests/Language/AbstractTranslationTestCase.php @@ -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;