I'm trying to use the VisualEditor insert tool to upload a new image (instead of using the direct uploads page.) However, when clicking "upload", a red box pops up saying "Invalid response from the server." This is on MediaWiki 1.39.3, VisualEditor 0.1.2.
Checking the logs reveals the following error:
"PHP message: PHP Fatal error: Declaration of Wikimedia\ParamValidator\Util\UploadedFile::getStream() must be compatible with Psr\Http\Message\UploadedFileInterface::getStream(): Psr\Http\Message\StreamInterface in /var/www/html/w/includes/libs/ParamValidator/Util/UploadedFile.php on line 86"
Uploading via Special:Upload works as expected. Not sure if this is an extension issue or a MW issue.