Skip to content

Commit a8e1e1b

Browse files
committed
Stop the "Undefined constant PhpParser\Node\Expr\Cast\Bool_::KIND_BOOL" errors with PHP-Parser 5.6.1
Why? How? I don't know, but this is one of the ways to do that. The others are to delete the whole line with PHP_EOL, another one is to disable code coverage. Close #346
1 parent db9ed8e commit a8e1e1b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/src/disallowed-allow/constantUsages.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
$none::NAME;
3838

3939
// not disallowed by path
40-
PHP_EOL;
40+
echo PHP_EOL;
4141

4242
// allowed by path
4343
$foo = new class extends Base {};

tests/src/disallowed/constantUsages.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
$none::NAME;
3838

3939
// disallowed by path
40-
PHP_EOL;
40+
echo PHP_EOL;
4141

4242
// disallowed
4343
$foo = new class extends Base {};

0 commit comments

Comments
 (0)