Skip to content

Commit

Permalink
nette 3.1 compatibility (Kdyby#183)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>

Co-authored-by: Jáchym Toušek <[email protected]>
  • Loading branch information
2 people authored and Jirka Hrazdil committed Nov 22, 2022
1 parent c42b7c6 commit 82c237d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/DI/TranslationExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 82c237d

Please sign in to comment.