diff --git a/src/Configuration/Loader/AbstractFileLoader.php b/src/Configuration/Loader/AbstractFileLoader.php index dfbef40..eb9d029 100644 --- a/src/Configuration/Loader/AbstractFileLoader.php +++ b/src/Configuration/Loader/AbstractFileLoader.php @@ -204,6 +204,10 @@ protected function glob( return; } + /** + * @psalm-suppress UnnecessaryVarAnnotation - Needed for symfony 5 annotations. + * @var string $prefix + */ $resource = new GlobResource($prefix, $pattern, $recursive, $forExclusion, $excluded); foreach ($resource->getIterator() as $filename => $fileInfo) { diff --git a/src/Configuration/Loader/YamlLoader.php b/src/Configuration/Loader/YamlLoader.php index 7089cd9..3c2c527 100644 --- a/src/Configuration/Loader/YamlLoader.php +++ b/src/Configuration/Loader/YamlLoader.php @@ -46,6 +46,10 @@ public function load($resource, $type = null): void if (!is_string($resource)) { throw new InvalidArgumentException('Resource is not a string'); } + /** + * @psalm-suppress UnnecessaryVarAnnotation - Needed for symfony 5 annotations. + * @var string $path + */ $path = $this->locator->locate($resource); $content = $this->loadFile($path);