File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 44 - 7.2
55 - 7.3
66 - 7.4
7+ - 8.0snapshot
78
89before_install :
910 # turn off XDebug
6061 allow_failures :
6162 - stage : Static Analysis (informative)
6263 - stage : Code Coverage
64+ - php : nightly
6365
6466
6567sudo : false
Original file line number Diff line number Diff line change 1515 }
1616 ],
1717 "require" : {
18- "php" : " >=7.1" ,
18+ "php" : " >=7.1 <8.1 " ,
1919 "ext-tokenizer" : " *" ,
2020 "nette/finder" : " ^2.5 || ^3.0" ,
2121 "nette/utils" : " ^3.0"
Original file line number Diff line number Diff line change @@ -22,8 +22,6 @@ RobotLoader is a tool that gives you comfort of automated class loading for your
2222
2323RobotLoader is incredibly comfortable and addictive!
2424
25- It requires PHP version 7.1 and supports PHP up to 7.4.
26-
2725If you like Nette, ** [ please make a donation now] ( https://nette.org/donate ) ** . Thank you!
2826
2927So we can forget about those famous code blocks:
@@ -50,7 +48,7 @@ The recommended way to install is via Composer:
5048composer require nette/robot-loader
5149```
5250
53- It requires PHP version 7.1.
51+ It requires PHP version 7.1 and supports PHP up to 8.0 .
5452
5553
5654Usage
Original file line number Diff line number Diff line change @@ -338,8 +338,8 @@ private function scanPhp(string $file): array
338338 case T_WHITESPACE :
339339 continue 2 ;
340340
341- case T_NS_SEPARATOR :
342341 case T_STRING :
342+ case PHP_VERSION_ID < 80000 ? T_NS_SEPARATOR : T_NAME_QUALIFIED :
343343 if ($ expected ) {
344344 $ name .= $ token [1 ];
345345 }
You can’t perform that action at this time.
0 commit comments