Closed maximmasiutin closed 9 months ago
They have not fixed it yet. I have complained a while back. Also, 2.0.0 is the "latest version" with a number. If we change to the actual latests version, what we get will keep changing. https://phabricator.wikimedia.org/T352814
Maybe we could fix that and submit a pull request? Do you have any idea on how to fix that?
You have to submit pull requests this way: https://github.com/wikimedia/mediawiki-oauthclient-php/pull/10
The solution is to add this to Client.php: /**
Add to add this to Request.php /**
I personally would remove the setting of variables, but I assume they exist for some reason.
Probably this "$base_string" is not used at all, at least in our citation bot. It may be used in other programs though. I would have removed it at all. But probably safer will be to define it as you recommend.
I saw you submitted the pull request via GitHub, but they asked to submit to Gerrit.
I submitted via Gerrit as https://gerrit.wikimedia.org/r/c/mediawiki/oauthclient-php/+/999133
I will close this issue because it is related to oauthclient.
I'm using oauthclient library version 2.0.0 as prescribed in the readme (
composer require mediawiki/oauthclient:2.0.0
) and php 8.3.2. With these settings, whenever bot writes a page, I'm getting the following php deprecaded messages, see example output ofphp process_page.php "Xerces blue" --slow
:This message can also be seen in the github runner, e.g. see [https://github.com/ms609/citation-bot/actions/runs/7807608076/job/21296304922?pr=4405]. You will be able to find the following lines there:
Maybe we should switch to latest version of the MediaWiki OAuthClient where this "deprecated" code is not used.