? ? Pending

User tests: Successful: Unsuccessful:

avatar PhilETaylor
PhilETaylor
21 May 2021

Code review

Like the code said "As of 3.7.0, passing a null value for the first argument of %1$s() is deprecated and will not be supported in 4.0."

This PR cleans up and enforces this deprecation and fixes the docblocks

$jsSafe is slated as a bool, but the code has code to use it as an array, but its never used as an array by Joomla core so I have not type hinted it just yet, to allow 3PD calling it

Now if you call Text::script(); you will correctly get

Too few arguments to function Joomla\CMS\Language\Text::script(), 0 passed
avatar PhilETaylor PhilETaylor - open - 21 May 2021
avatar PhilETaylor PhilETaylor - change - 21 May 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 21 May 2021
Category Libraries
avatar PhilETaylor PhilETaylor - change - 21 May 2021
The description was changed
avatar PhilETaylor PhilETaylor - edited - 21 May 2021
avatar PhilETaylor PhilETaylor - change - 21 May 2021
The description was changed
avatar PhilETaylor PhilETaylor - edited - 21 May 2021
avatar PhilETaylor PhilETaylor - change - 10 Jun 2021
Labels Added: ?
avatar RickR2H
RickR2H - comment - 24 Jun 2021

Hey @PhilETaylor How can we test this? I know writing testing instructions isn't fun, but it will insure not so skilled people can also test and PR's get committed faster.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/34077.

avatar PhilETaylor
PhilETaylor - comment - 15 Aug 2021

Hey @PhilETaylor How can we test this?

Code review

Also try calling Text::script(); (with no arguments) before and after applying the PR and compare the difference.

avatar RickR2H
RickR2H - comment - 16 Jan 2022

I have tested this item successfully on 416d847


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/34077.

avatar RickR2H RickR2H - test_item - 16 Jan 2022 - Tested successfully
avatar Quy Quy - test_item - 26 Jan 2022 - Tested successfully
avatar Quy
Quy - comment - 26 Jan 2022

I have tested this item successfully on 416d847


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/34077.

avatar Quy Quy - change - 26 Jan 2022
Status Pending Ready to Commit
avatar Quy
Quy - comment - 26 Jan 2022

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/34077.

avatar brianteeman
brianteeman - comment - 11 Feb 2022

Could you please resolve the conflicts

avatar PhilETaylor PhilETaylor - change - 6 Mar 2022
Labels Added: ? Conflicting Files
Removed: ?
avatar PhilETaylor
PhilETaylor - comment - 6 Mar 2022

Conflicts Resolved.

avatar PhilETaylor PhilETaylor - change - 7 Mar 2022
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2022-03-07 18:33:38
Closed_By PhilETaylor
Labels Added: ?
Removed: Conflicting Files
avatar PhilETaylor PhilETaylor - close - 7 Mar 2022

Add a Comment

Login with GitHub to post a comment