? Pending

User tests: Successful: Unsuccessful:

avatar PhilETaylor
PhilETaylor
15 Jan 2021

Remove unset call as $xml is not set when here

Code review.

$xml is only set in the nested foreach statement, and already unset before the return and continue within that.

avatar PhilETaylor PhilETaylor - open - 15 Jan 2021
avatar PhilETaylor PhilETaylor - change - 15 Jan 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 15 Jan 2021
Category Libraries
avatar PhilETaylor PhilETaylor - change - 15 Jan 2021
Title
Remove unset call as $xml is not set when here
[4] Remove unset call as $xml is not set when here
avatar PhilETaylor PhilETaylor - edited - 15 Jan 2021
avatar HLeithner HLeithner - change - 16 Jan 2021
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2021-01-16 09:29:26
Closed_By HLeithner
Labels Added: ?
avatar HLeithner HLeithner - close - 16 Jan 2021
avatar HLeithner HLeithner - merge - 16 Jan 2021
avatar HLeithner
HLeithner - comment - 16 Jan 2021

I'm wrong when I say that the $xml is unset automatically on return if not referenced to the object it self or used outside this function? Even the unset in the loop before continue look use less because the $xml will be reassigned in the next run.

avatar HLeithner
HLeithner - comment - 16 Jan 2021

Thanks btw

Add a Comment

Login with GitHub to post a comment