Skip to content

Commit

Permalink
Merge 7c511c0 into 1f04a53
Browse files Browse the repository at this point in the history
  • Loading branch information
janbarasek committed Dec 16, 2020
2 parents 1f04a53 + 7c511c0 commit 3f31af0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/DI/TranslationExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
use Nette\Reflection\ClassType as ReflectionClassType;
use Nette\Schema\Expect;
use Nette\Schema\Schema;
use Nette\Utils\Callback;
use Nette\Utils\Finder;
use Nette\Utils\Validators;
use Symfony\Component\Translation\Extractor\ChainExtractor;
Expand Down Expand Up @@ -372,7 +371,7 @@ public function beforeCompile()
return str_replace((DIRECTORY_SEPARATOR === '/') ? '\\' : '/', DIRECTORY_SEPARATOR, Helpers::expand($dir, $builder->parameters));
}, $config['dirs']);

$dirs = array_values(array_filter($config['dirs'], Callback::closure('is_dir')));
$dirs = array_values(array_filter($config['dirs'], \Closure::fromCallable('is_dir')));
if (count($dirs) > 0) {
foreach ($dirs as $dir) {
$builder->addDependency($dir);
Expand Down

0 comments on commit 3f31af0

Please sign in to comment.