$this->directories of type array is incompatible with the type string expected by parameter $paths of Nette\Utils\Finder::from().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
27
foreach (Finder::find('*.*.neon')->from(/** @scrutinizer ignore-type */ $this->directories) as $file) {
Loading history...
28
15
if (!preg_match('~^(?P<prefix>.*?)\.(?P<lang>[^\.]+)\.(?P<format>[^\.]+)$~', $file->getFilename(), $matches)) {