? ? Pending

User tests: Successful: Unsuccessful:

avatar SharkyKZ
SharkyKZ
12 May 2020

Summary of Changes

Removes missing argument handling in Joomla\CMS\Language\Text methods. Since PHP 7.1 calling functions with missing arguments throws ArgumentCountError. So this code is never executed anymore.

Testing Instructions

Code review or test that the methods still work.

Documentation Changes Required

No.

avatar SharkyKZ SharkyKZ - open - 12 May 2020
avatar SharkyKZ SharkyKZ - change - 12 May 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 12 May 2020
Category Libraries
avatar Bakual
Bakual - comment - 12 May 2020

I'd argue one could remove a lot more code. All that is related to $args and $count should be removed and $string and $n be used in all places.

avatar SharkyKZ SharkyKZ - change - 12 May 2020
Labels Added: ?
avatar SharkyKZ
SharkyKZ - comment - 12 May 2020

Those are still used, I think. To pass variables and additional options.

avatar SharkyKZ SharkyKZ - change - 12 May 2020
The description was changed
avatar SharkyKZ SharkyKZ - edited - 12 May 2020
avatar ChristineWk ChristineWk - test_item - 12 May 2020 - Tested successfully
avatar ChristineWk
ChristineWk - comment - 12 May 2020

I have tested this item successfully on b10b33c

Code Review


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

avatar Bakual
Bakual - comment - 12 May 2020

Those are still used, I think. To pass variables and additional options.

I haven't checked. If those are indeed used, then they need to be added to the function call as proper (optional) arguments. That stuff looks just hacky as it is ?

avatar bonzani bonzani - test_item - 24 May 2020 - Tested successfully
avatar bonzani
bonzani - comment - 24 May 2020

I have tested this item successfully on b10b33c


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

avatar Quy Quy - change - 24 May 2020
Status Pending Ready to Commit
avatar Quy
Quy - comment - 24 May 2020

RTC


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

avatar wilsonge wilsonge - change - 24 May 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-05-24 23:44:11
Closed_By wilsonge
Labels Added: ?
avatar wilsonge wilsonge - close - 24 May 2020
avatar wilsonge wilsonge - merge - 24 May 2020
avatar wilsonge
wilsonge - comment - 24 May 2020

This is good enough as a first pass. Thankyou!

Add a Comment

Login with GitHub to post a comment