diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 93f2196..fd2664f 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -41,7 +41,7 @@ jobs: symfony-version: '8.1.*' steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Setup PHP uses: shivammathur/setup-php@v2 diff --git a/src/Behat/MinkExtension/Context/MinkContext.php b/src/Behat/MinkExtension/Context/MinkContext.php index d4e0cbe..aa7c36d 100644 --- a/src/Behat/MinkExtension/Context/MinkContext.php +++ b/src/Behat/MinkExtension/Context/MinkContext.php @@ -298,20 +298,14 @@ class MinkContext extends RawMinkContext implements TranslatableContext system(sprintf($this->getMinkParameter('show_cmd'), escapeshellarg($filename))); } - /** - * @return array - */ - public static function getTranslationResources() + public static function getTranslationResources(): array { return self::getMinkTranslationResources(); } - /** - * @return array - */ - public static function getMinkTranslationResources() + public static function getMinkTranslationResources(): array { - return glob(__DIR__.'/../../../../i18n/*.xliff'); + return glob(__DIR__.'/../../../../i18n/*.xliff') ?: []; } protected function fixStepArgument($argument)