Topic on Extension talk:GoogleLogin

ParseError due to the use of union type in a single line in a dependency

2
Beautiful Pomegrenate (talkcontribs)

Hello, I'm a newbie. Sorry for any formatting or bad behavior.

I faced the same issue as described here: Topic:Wf2n897r3c3apos6

Since MediaWiki 1.36 stable doesn't support PHP8, the version released for MediaWiki 1.36 shouldn't either, so if you want to make GoogleLogin's latest release work with MediaWiki 1.36, just make this change:

In <wiki-root>/extensions/GoogleLogin/vendor/psr/cache/src/CacheItemInterface.php,

Change the declaration of public function expiresAfter(...); to public function expiresAfter($time); . That's all. It seems to be working good so far for me. Can we patch the included dependency (psr-cache, which now says that it requires PHP >= 8.0 on some package describing website) to make the same change, just for these MediaWiki releases?

174.34.232.98 (talkcontribs)
Reply to "ParseError due to the use of union type in a single line in a dependency"