Skip to content

Commit 40b406c

Browse files
committed
docs: mention Igor PHP for auditing Symfony worker compatibility
Igor PHP is a static linter that catches state-leak bugs (missing ResetInterface, stateful properties, mutable statics, exit/die, superglobal writes) before they hit production. Signed-off-by: Kévin Dunglas <kevin@dunglas.fr>
1 parent 678e56e commit 40b406c

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

docs/symfony.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,15 @@ docker run \
4949

5050
Learn more about [the worker mode](worker.md).
5151

52+
### Auditing Worker Compatibility
53+
54+
[Igor PHP](https://github.com/igor-php/igor-php) is a static linter that scans Symfony projects for state leaks before they bite in production: services missing `ResetInterface`, stateful properties that aren't reset, mutable local statics, `exit()`/`die()` calls, and superglobal writes. It audits your application code as well as services declared in `vendor/`.
55+
56+
```console
57+
composer require --dev igor-php/igor-php
58+
vendor/bin/igor-php .
59+
```
60+
5261
## Hot Reload
5362

5463
Hot reloading is enabled by default in [Symfony Docker](https://github.com/dunglas/symfony-docker).

0 commit comments

Comments
 (0)