diff --git a/src/BoltFormsConfig.php b/src/BoltFormsConfig.php index 33f3ee3..baecee4 100644 --- a/src/BoltFormsConfig.php +++ b/src/BoltFormsConfig.php @@ -71,6 +71,10 @@ private function getAdditionalFormConfigs(): array { $configPath = explode('.yaml', $this->getExtension()->getConfigFilenames()['main'])[0] . DIRECTORY_SEPARATOR; + if (!is_dir($configPath)) { + return []; + } + $finder = new Finder(); $finder->files()->in($configPath)->name('*.yaml');