Skip to content

Commit e6e0d5e

Browse files
committed
Improved readme
1 parent d8ff487 commit e6e0d5e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,9 @@ includes:
2121
services:
2222
- Lookyman\PHPStan\Symfony\ServiceMap(/path/to/appDevDebugProjectContainer.xml)
2323
```
24+
25+
## Limitations
26+
27+
It can only recognize pure strings passed into `ContainerInterface::get()` method. This follows from the nature of static code analysis.
28+
29+
You have to provide a path to `appDevDebugProjectContainer.xml` or similar xml file describing your container. To generate it, you have to run the `Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installAssets` composer script, which is part of Symfony's postinstall scripts. And to be able to run it, you have to have a database ready. Which kinda defeats the purpose of static code analysis, but whatever..

0 commit comments

Comments
 (0)