contributte / fileupload

🆙 File uploads on steroids for Nette Framework (@nette). Implements blueimp/jquery-file-upload.
https://contributte.org/packages/contributte/fileupload.html
MIT License
28 stars 23 forks source link

Non-static method Zet\FileUpload\FileUploadControl::setFileFilter() #10

Closed ghost closed 8 years ago

ghost commented 8 years ago

In PHP 7.0 you can see error Non-static method Zet\FileUpload\FileUploadControl::setFileFilter() should not be called statically. You should use static in FileUploadControl.php line 275: public static function setFileFilter($fileFilter)

JZechy commented 8 years ago

As I didn't read about this issue today with static in PHP 7... :D

This was created by PR when there was try to call statically setFileFilter in bootstrap, to globally set up filter...

So perhaps it's time to turn it back... And create registration of component as extension.

ghost commented 8 years ago

It would be nice to create and registrate it as extension.

JZechy commented 8 years ago

Component can be registrate as extension. FileFilter is not static anymore.