When uploading a file with the default filebrowser, the following error is reported (the file is uploaded nonetheless):
Unknow error type [4096]: Argument 2 passed to Filebrowser\View::success() must be of the type array, string given, called in C:\xampp\htdocs\xh\trunk\plugins\filebrowser\classes\Controller.php on line 521 and defined
C:\xampp\htdocs\xh\trunk\plugins\filebrowser\classes\View.php:465
It's possible to fix this issue by simply removing the array type hint from View::success(). However, I suggest to change View::translate() to expect always an array, what appears to be cleaner. There are only a few places where the calls would have to be adjusted.
Not only View::success() is affected, but also ::error(), ::message() and ::info().
This issue had been reported also as https://github.com/cmsimple-xh/cmsimple-xh/issues/17, so this ticket is a duplicate.