?
avatar izharaazmi
izharaazmi
17 Jul 2020

Throwable is available only in PHP7

if (!($exception instanceof Throwable) && !($exception instanceof Exception))



array_column is available only in PHP 5 >= 5.5.0, PHP 7

if (($index = array_search($match, array_column($redirects, 'old_url'))) !== false)

avatar izharaazmi izharaazmi - open - 17 Jul 2020
avatar joomla-cms-bot joomla-cms-bot - change - 17 Jul 2020
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 17 Jul 2020
avatar brianteeman
brianteeman - comment - 17 Jul 2020

Reference #9270

avatar mbabker
mbabker - comment - 17 Jul 2020

Using instanceof Throwable or catch Throwable is fine regardless of PHP version, PHP doesn’t hard fail if you use non-existing classes or interfaces in these cases.

Joomla ships with a number of polyfill libraries to enable use of PHP functions introduced after 5.3. array_column() is one of those polyfilled functions.

Issue can be closed, there is no bug to address.

avatar SharkyKZ SharkyKZ - change - 17 Jul 2020
Status New Closed
Closed_Date 0000-00-00 00:00:00 2020-07-17 11:44:26
Closed_By SharkyKZ
avatar SharkyKZ
SharkyKZ - comment - 17 Jul 2020

Closing as stated above.

avatar SharkyKZ SharkyKZ - close - 17 Jul 2020

Add a Comment

Login with GitHub to post a comment