mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
MDL-73700 backup: remove old PHP version check
As MDL-73016 set the minimum supported PHP version for Moodle 4.4 and up to PHP 8.1 we can now safely switch to php_serialize as the serialize handler. Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
This commit is contained in:
parent
bcce1851f1
commit
161cf71a48
@ -224,11 +224,6 @@ final class copy_helper {
|
||||
* @return array An array of mappings between backup ids and restore controllers
|
||||
*/
|
||||
private static function map_backupids_to_restore_controller(array $backuprecords): array {
|
||||
// Needed for PHP 7.3 - array_merge only accepts 0 parameters in PHP >= 7.4.
|
||||
if (empty($backuprecords)) {
|
||||
return [];
|
||||
}
|
||||
|
||||
return array_merge(
|
||||
...array_map(
|
||||
function (\stdClass $backuprecord): array {
|
||||
|
Loading…
x
Reference in New Issue
Block a user