Skip to content
This repository was archived by the owner on Sep 1, 2024. It is now read-only.

Commit 9dfcefe

Browse files
committed
Update the supported cases
1 parent d5d7800 commit 9dfcefe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ You can find a `phpstan.neon` example in the `tests` directory, here: [tests/php
2525
- `require 'file.php';` - might not find it since the path is relative.
2626
- `require __DIR__ . '/file.php';` - can find it, if it exists.
2727
- `require __DIR__ . '/' . MyClass::MY_CONST;` - can find it if the const has the correct value from the start.
28+
- `require __DIR__ . '/' . MY_CONST;` - can find it if the constant is defined in the bootstrap file.
2829

2930
## Unsupported cases
3031
- `require $file;` - won't throw an error since it cannot read variables.

0 commit comments

Comments
 (0)