Skip to content

Commit

Permalink
fix: PHP stan
Browse files Browse the repository at this point in the history
  • Loading branch information
lukmzig committed Mar 28, 2023
1 parent 7755c7b commit 6256865
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GraphQL/Query/Operator/Thumbnail.php
Expand Up @@ -64,7 +64,7 @@ public function getLabeledValue($element, ResolveInfo $resolveInfo = null)
if ($childResult->value instanceof Asset\Image || $childResult->value instanceof Asset\Video) {
$childValue = $result->value = $childResult->value;
$thumbnail = $childValue->getThumbnail($this->thumbnailConfig, false);
$result->value = $thumbnail->getPath(false);
$result->value = $thumbnail->getPath(['deferredAllowed' => false]);

Check failure on line 67 in src/GraphQL/Query/Operator/Thumbnail.php

View workflow job for this annotation

GitHub Actions / Static Analysis with PHPStan (8.1, highest)

Parameter #1 $deferredAllowed of method Pimcore\Model\Asset\Image\Thumbnail::getPath() expects bool, array<string, false> given.

Check failure on line 67 in src/GraphQL/Query/Operator/Thumbnail.php

View workflow job for this annotation

GitHub Actions / Static Analysis with PHPStan (8.2, highest)

Parameter #1 $deferredAllowed of method Pimcore\Model\Asset\Image\Thumbnail::getPath() expects bool, array<string, false> given.
}
}

Expand Down

0 comments on commit 6256865

Please sign in to comment.