Steps to replicate the issue (include links if applicable):
- Install the RSS extension and try to put an RSS feed on a page
- Attempt to access rest.php
What happens?:
Internal server error because various methods in the mediawiki/includes/http files that use psr/http-message don't have type hinting
What should have happened instead?:
RSS feed displayed as expected for RSS extension
rest.php returns 404 when accessed directly
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
1.43.1
Other information (browser name/version, screenshots, etc.):
Issue previously mentioned in https://phabricator.wikimedia.org/T333993 and other tasks referenced there
Example errors:
Updating this at the request of @Dinoguy1000 per Discord...
The problem here is that composer.json requires psr/http-message version 1.1, which uses type hinting, while the mediawiki code that uses that library does not have type hinting. https://phabricator.wikimedia.org/T335073 is what led me down this path.
Searching code review, this is the change where the psr/http-message version was bumped up to 1.1 from 1.0.1: https://gerrit.wikimedia.org/r/c/mediawiki/core/+/985025
Also cc @Reedy since he was the author of the breaking commit


