Skip to content

Commit

Permalink
fix: Reflexion error
Browse files Browse the repository at this point in the history
  • Loading branch information
dhuf committed Nov 20, 2023
1 parent c673899 commit 7b877a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Classes/Services/CloudinaryScanService.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ class CloudinaryScanService

protected ResourceStorage $storage;

protected DriverInterface $driver;
/**
* @var DriverInterface
*/
protected mixed $driver;

protected ?CloudinaryPathService $cloudinaryPathService = null;

Expand Down Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ parameters:
- Classes
- Configuration
checkMissingIterableValueType: false
checkGenericClassInNonGenericObjectType: false
reportUnmatchedIgnoredErrors: false
ignoreErrors:
-
Expand Down

0 comments on commit 7b877a3

Please sign in to comment.