Skip to content

Commit cd03369

Browse files
authored
Merge pull request nuvoleweb#301 from nuvoleweb/293-is_dir
nuvolewebGH-293: NotRegularDirectoryException thrown while scanning for Yaml Patterns Deriver
2 parents a5f6ef3 + 447ca70 commit cd03369

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Plugin/Deriver/AbstractYamlPatternsDeriver.php

+3
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ public static function create(ContainerInterface $container, $base_plugin_id) {
5858
* {@inheritdoc}
5959
*/
6060
public function fileScanDirectory($directory) {
61+
if (!is_dir($directory)) {
62+
return [];
63+
}
6164
$options = ['nomask' => $this->getNoMask()];
6265
$extensions = $this->getFileExtensions();
6366
$extensions = array_map('preg_quote', $extensions);

0 commit comments

Comments
 (0)