We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35a0b88 commit d701691Copy full SHA for d701691
src/Symfony/Component/DependencyInjection/Compiler/CheckTypeHintsPass.php
@@ -18,7 +18,13 @@
18
19
/**
20
* Checks whether injected parameters types are compatible with type hints.
21
- * This pass should be added before removing (PassConfig::TYPE_BEFORE_REMOVING).
+ * This pass should be run after all optimization passes.
22
+ * So it can be added either:
23
+ *
24
+ * * before removing (PassConfig::TYPE_BEFORE_REMOVING) so that it will check
25
+ * all services, even if they are not currently used,
26
+ * * after removing (PassConfig::TYPE_AFTER_REMOVING) so that it will check
27
+ * only services you are using.
28
*
29
* @author Nicolas Grekas <p@tchwork.com>
30
* @author Julien Maulny <jmaulny@darkmira.fr>
0 commit comments