You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I spent quite some time wondering why my settings in php.ini weren't working to finally figure out they were overwritten.
Trouble is, your composer.json does not fix a PHP version, e.g. 7.4 and so we end up with dependencies that require 8.1 in some situations (Think docker multi-stage builds…).
With 8.1 and the level of error_reporting hard-coded in api.php, the result on an API call is:
<br />
<b>Deprecated</b>: Implicit conversion from float 0.1 to int loses precision in <b>/var/www/html/quickstatements/public_html/quickstatements.php</b> on line <b>1096</b><br />
{"status":"OK","command":{"action":"create","type":"item","data":{"claims":[{"mainsnak":{"snaktype":"value","property":"P1","datavalue":{"type":"wikibase-entityid","value":{"entity-type":"item","id":"Q17"}}},"type":"statement","rank":"normal"},{"mainsnak":{"snaktype":"value","property":"P18","datavalue":{"type":"string","value":"I made a second attempt of a QS"}},"type":"statement","rank":"normal"}]},"meta":{"message":"","status":"RUN","id":0},"summary":"#temporary_batch_1660059860160","status":"done","run":{"action":"wbeditentity","new":"item","data":"{\"claims\":[{\"mainsnak\":{\"snaktype\":\"value\",\"property\":\"P1\",\"datavalue\":{\"type\":\"wikibase-entityid\",\"value\":{\"entity-type\":\"item\",\"id\":\"Q17\"}}},\"type\":\"statement\",\"rank\":\"normal\"},{\"mainsnak\":{\"snaktype\":\"value\",\"property\":\"P18\",\"datavalue\":{\"type\":\"string\",\"value\":\"I made a second attempt of a QS\"}},\"type\":\"statement\",\"rank\":\"normal\"}]}","summary":"#quickstatements; #temporary_batch_1660059860160","bot":1,"token":"************************+\\","format":"json"},"item":"Q1162"},"last_item":"Q1162"}
The text was updated successfully, but these errors were encountered:
Wondering why
error_reporting
is hardcoded inapi.php
?I spent quite some time wondering why my settings in
php.ini
weren't working to finally figure out they were overwritten.Trouble is, your
composer.json
does not fix a PHP version, e.g.7.4
and so we end up with dependencies that require8.1
in some situations (Think docker multi-stage builds…).With 8.1 and the level of
error_reporting
hard-coded inapi.php
, the result on an API call is:The text was updated successfully, but these errors were encountered: