Hello!
I made this PR due to that bundle was crashing my whole app, because init image form (and data for that field) is setting as null. Then I was getting error like that:
Artgris\Bundle\FileManagerBundle\Twig\FileTypeExtension::fileIcon(): Argument #1 ($filePath) must be of type string, null given, called in /var/www/html/var/cache/dev/twig/6e/6e495f0b52a3ab1eb72f008012aa93cd.php on line 453
Hello! I made this PR due to that bundle was crashing my whole app, because init image form (and data for that field) is setting as null. Then I was getting error like that:
Artgris\Bundle\FileManagerBundle\Twig\FileTypeExtension::fileIcon(): Argument #1 ($filePath) must be of type string, null given, called in /var/www/html/var/cache/dev/twig/6e/6e495f0b52a3ab1eb72f008012aa93cd.php on line 453