Error report: cant delete users uploads.
FoF upload: 1.5.5
Flarum: 1.8.5
In fronted I see only "Oups!", but in console 500 error with this response:
response: "<br />\n<b>Deprecated</b>: Optional parameter $upload declared before required parameter $contents is implicitly treated as a required parameter in <b>flarum/vendor/fof/upload/src/Adapters/Flysystem.php</b> on line <b>51</b><br />\n<br />\n<b>Fatal error</b>: Uncaught Laminas\\HttpHandlerRunner\\Exception\\EmitterException: Unable to emit response; headers already sent in flarum/vendor/fof/upload/src/Adapters/Flysystem.php:51 in flarum/vendor/laminas/laminas-httphandlerrunner/src/Exception/EmitterException.php:15\nStack trace:\n#0 flarum/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitterTrait.php(38): Laminas\\HttpHandlerRunner\\Exception\\EmitterException::forHeadersSent('/var/www/fla...', 51)\n#1 flarum/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitter.php(21): Laminas\\HttpHandlerRunner\\Emitter\\SapiEmitter->assertNoPreviousOutput()\n#2 flarum/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(75): Laminas\\HttpHandlerRunner\\Emitter\\SapiEmitter->emit(Object(Laminas\\Diactoros\\Response\\EmptyResponse))\n#3 flarum/vendor/flarum/core/src/Http/Server.php(45): Laminas\\HttpHandlerRunner\\RequestHandlerRunner->run()\n#4 flarum/index.php(26): Flarum\\Http\\Server->listen()\n#5 {main}\n thrown in <b>flarum/vendor/laminas/laminas-httphandlerrunner/src/Exception/EmitterException.php</b> on line <b>15</b><br />\n"
!<
PHP 8.1.29
Is it deprecated error related to headers already sent? Changing of error_reporting level didnt help me.