artgris / FileManagerBundle

FileManager is a simple Multilingual File Manager Bundle for Symfony
MIT License
171 stars 89 forks source link

[Fix] Upload : Trying to access array offset on value of type null #69

Closed NicolasRoehm closed 4 years ago

NicolasRoehm commented 4 years ago

Fix : Notice: Trying to access array offset on value of type null This happens because $content_range is null or the index does not exist. Previous versions of PHP may have been less strict on such mistakes and silently swallowed the error / notice while 7.4 does not do this anymore.

rtfjr86 commented 4 years ago

I too have a pull request for this fix, although mine is not compatible with PHP 5.* due to the use of the null coalescing operator ??. https://github.com/artgris/FileManagerBundle/pull/64