From 82c237d90419c10f6a73b0cfcad7abbd77df6784 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Z=C3=A1ruba?= Date: Fri, 19 Feb 2021 07:26:12 +0100 Subject: [PATCH] nette 3.1 compatibility (#183) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * nette 3.1 compatibility * latte fix max compatibility version * fix cs * Update .travis.yml * latte/latte 2.10.1 compatibility * fix if not exists latte engine constant * clearing .travis.yml * clearing .gitignore * composer.json - original dependence latte/latte * Update tests/KdybyTests/Translation/LatteExtractorTest.phpt * useless variables in LatteExtractorTest.phpt * CS Squiz.Strings.DoubleQuoteUsage.NotRequired was excluded from Extractor test * Update LatteExtractorTest.phpt * Update ruleset.xml * Update src/DI/TranslationExtension.php Co-authored-by: Jáchym Toušek Co-authored-by: Jáchym Toušek --- src/DI/TranslationExtension.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/DI/TranslationExtension.php b/src/DI/TranslationExtension.php index 560345f..a061cc8 100644 --- a/src/DI/TranslationExtension.php +++ b/src/DI/TranslationExtension.php @@ -371,7 +371,8 @@ public function beforeCompile() $config['dirs'] = array_map(function ($dir) use ($builder) { return str_replace((DIRECTORY_SEPARATOR === '/') ? '\\' : '/', DIRECTORY_SEPARATOR, Helpers::expand($dir, $builder->parameters)); }, $config['dirs']); - $dirs = array_values(array_filter($config['dirs'], fn(string $dir) => \is_dir($dir))); + + $dirs = array_values(array_filter($config['dirs'], fn(string $dir) => \is_dir($dir))); if (count($dirs) > 0) { foreach ($dirs as $dir) {