Skip to content

Commit 7a118f3

Browse files
authored
Merge pull request #1153 from kenjis/fix-AbstractTranslationTestCase
test: fix incorrect condition in AbstractTranslationTestCase
2 parents 30fbec0 + 1d9290f commit 7a118f3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/phpunit-lang.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
- '!src/Language/en/**.php'
1010
- 'phpunit*'
1111
- '.github/workflows/phpunit-lang.yml'
12+
- 'tests/Language/AbstractTranslationTestCase.php'
1213
push:
1314
branches:
1415
- develop
@@ -17,6 +18,7 @@ on:
1718
- '!src/Language/en/**.php'
1819
- 'phpunit*'
1920
- '.github/workflows/phpunit-lang.yml'
21+
- 'tests/Language/AbstractTranslationTestCase.php'
2022

2123
jobs:
2224
main:

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)