Skip to content

Commit b4ca3a7

Browse files
committed
Add support PHP 7.4
1 parent 2f750b9 commit b4ca3a7

File tree

386 files changed

+28255
-27455
lines changed

Some content is hidden

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

386 files changed

+28255
-27455
lines changed

Build/PharStub.php

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1-
<?php
2-
spl_autoload_register(function ($class) {
3-
include 'phar://PHPExcel/' . str_replace('_', '/', $class) . '.php';
4-
});
5-
6-
try {
7-
Phar::mapPhar();
8-
include 'phar://PHPExcel/PHPExcel.php';
9-
} catch (PharException $e) {
10-
error_log($e->getMessage());
11-
exit(1);
12-
}
13-
14-
__HALT_COMPILER();
1+
<?php
2+
3+
spl_autoload_register(function ($class): void {
4+
include 'phar://PHPExcel/' . str_replace('_', '/', $class) . '.php';
5+
});
6+
7+
try {
8+
Phar::mapPhar();
9+
include 'phar://PHPExcel/PHPExcel.php';
10+
} catch (PharException $e) {
11+
error_log($e->getMessage());
12+
exit(1);
13+
}
14+
15+
__HALT_COMPILER();

0 commit comments

Comments
 (0)