File tree 2 files changed +8
-14
lines changed
setup/src/Magento/Setup/Module/Di/Code/Reader 2 files changed +8
-14
lines changed Original file line number Diff line number Diff line change 17
17
18
18
\define ('VENDOR_PATH ' , BP . '/app/etc/vendor_path.php ' );
19
19
20
- /**
21
- * Ensure php backwards compatibility of laminas-code module
22
- *
23
- * Can be removed once https://github.com/laminas/laminas-code/pull/73 is released to 3.5.x
24
- * or PHP minimum version is 8.0
25
- * or laminas-code module is updated to version 4.0+ with tested PHP 7.4+ support
26
- */
27
- if (!defined ('T_NAME_QUALIFIED ' )) {
28
- define ('T_NAME_QUALIFIED ' , 24001 );
29
- }
30
- if (! defined ('T_NAME_FULLY_QUALIFIED ' )) {
31
- define ('T_NAME_FULLY_QUALIFIED ' , 24002 );
32
- }
33
-
34
20
if (!\is_readable (VENDOR_PATH )) {
35
21
throw new \Exception (
36
22
'We can \'t read some files that are required to run the Magento application. '
Original file line number Diff line number Diff line change @@ -38,6 +38,14 @@ protected function scan()
38
38
define ('T_TRAIT ' , 42001 );
39
39
}
40
40
41
+ // ensure php backwards compatibility (from laminas code 3.5.x)
42
+ if (! defined ('T_NAME_QUALIFIED ' )) {
43
+ define ('T_NAME_QUALIFIED ' , 24001 );
44
+ }
45
+ if (! defined ('T_NAME_FULLY_QUALIFIED ' )) {
46
+ define ('T_NAME_FULLY_QUALIFIED ' , 24002 );
47
+ }
48
+
41
49
/**
42
50
* Variables & Setup
43
51
*/
You can’t perform that action at this time.
0 commit comments