Open asistent0 opened 1 year ago
@Gregwar let's have this one merged, please :)
Can we change the constructor to following:
public function __construct(private string $cacheDirectory, private int $cacheDirMode, private string $handlerClass, private ContainerInterface $container, private Packages $assetsPackages, private KernelInterface|FileLocatorInterface $fileLocator, private bool $throwException, private string $fallbackImage)
Then also if you can add the return type of the ::load()
method to void
That will solve the deprecation messages for Symfony 6.4.* and 7.0
@Gregwar Is there any chance we can get this merged is with the changes I am suggesting above.
Fix problem "Creation of dynamic property Gregwar\ImageBundle\Services\ImageHandling::$fallbackImage is deprecated"