diff --git a/Classes/Services/CloudinaryScanService.php b/Classes/Services/CloudinaryScanService.php index cc9963b..0b86dd7 100644 --- a/Classes/Services/CloudinaryScanService.php +++ b/Classes/Services/CloudinaryScanService.php @@ -37,7 +37,10 @@ class CloudinaryScanService protected ResourceStorage $storage; - protected DriverInterface $driver; + /** + * @var DriverInterface + */ + protected mixed $driver; protected ?CloudinaryPathService $cloudinaryPathService = null; @@ -283,7 +286,7 @@ public function setAdditionalExpression(string $additionalExpression): Cloudinar * * @throws \ReflectionException */ - protected function getDriverFromStorage(ResourceStorage $storage): DriverInterface + protected function getDriverFromStorage(ResourceStorage $storage): mixed { $reflectionMethod = new ReflectionMethod($storage, 'getDriver'); $reflectionMethod->setAccessible(true); diff --git a/phpstan.neon b/phpstan.neon index 9356186..d56f556 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -6,6 +6,7 @@ parameters: - Classes - Configuration checkMissingIterableValueType: false + checkGenericClassInNonGenericObjectType: false reportUnmatchedIgnoredErrors: false ignoreErrors: -