Skip to content

Commit

Permalink
Merge pull request #1383 from endelwar/1.x
Browse files Browse the repository at this point in the history
Fix deprecation warning on 1.x
  • Loading branch information
garak committed Apr 14, 2023
2 parents af35997 + 72649f4 commit 7d20347
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Twig/Extension/UploaderExtensionRuntime.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ public function __construct(UploaderHelperInterface $helper)
*/
public function asset($object, ?string $fieldName = null, ?string $className = null): ?string
{
if (null === $className) {
return $this->helper->asset($object, $fieldName);
}

// @phpstan-ignore-next-line
return $this->helper->asset($object, $fieldName, $className);
}
Expand Down

0 comments on commit 7d20347

Please sign in to comment.