Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e55ecba

Browse files
committedSep 6, 2023
MDL-79210 lib: Upgrade PHPSpreadSheet to 1.29.0
1 parent 206c3a6 commit e55ecba

File tree

121 files changed

+3873
-879
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+3873
-879
lines changed
 

‎lib/phpspreadsheet/vendor/autoload.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@
2222

2323
require_once __DIR__ . '/composer/autoload_real.php';
2424

25-
return ComposerAutoloaderInitdb9a9022baf20d73f1edf8437bc648d7::getLoader();
25+
return ComposerAutoloaderInitf14832faa9ea8f0ad137e596f5daa06a::getLoader();

‎lib/phpspreadsheet/vendor/composer/ClassLoader.php

+8-4
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,8 @@ public function unregister()
429429
public function loadClass($class)
430430
{
431431
if ($file = $this->findFile($class)) {
432-
(self::$includeFile)($file);
432+
$includeFile = self::$includeFile;
433+
$includeFile($file);
433434

434435
return true;
435436
}
@@ -560,7 +561,10 @@ private function findFileWithExtension($class, $ext)
560561
return false;
561562
}
562563

563-
private static function initializeIncludeClosure(): void
564+
/**
565+
* @return void
566+
*/
567+
private static function initializeIncludeClosure()
564568
{
565569
if (self::$includeFile !== null) {
566570
return;
@@ -574,8 +578,8 @@ private static function initializeIncludeClosure(): void
574578
* @param string $file
575579
* @return void
576580
*/
577-
self::$includeFile = static function($file) {
581+
self::$includeFile = \Closure::bind(static function($file) {
578582
include $file;
579-
};
583+
}, null, null);
580584
}
581585
}

0 commit comments

Comments
 (0)
Please sign in to comment.