Replace use of 'array_merge' with the spread operator and 'array_push' in various places.
This isn't supported for arrays with string keys until PHP 8.1. https://wiki.php.net/rfc/spread_operator_for_array
This commit is contained in:
@@ -153,7 +153,7 @@ class FeedItem_RSS extends FeedItem_Common {
|
||||
array_push($encs, $enc);
|
||||
}
|
||||
|
||||
$encs = array_merge($encs, parent::get_enclosures());
|
||||
array_push($encs, ...parent::get_enclosures());
|
||||
|
||||
return $encs;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user