| 1 | <?php |
||
| 8 | final class DeferredExtension extends AbstractExtension |
||
| 9 | { |
||
| 10 | private $blocks = []; |
||
| 11 | |||
| 12 | public function getTokenParsers() |
||
| 16 | |||
| 17 | public function getNodeVisitors() |
||
| 21 | |||
| 22 | public function defer(Template $template, $blockName) |
||
| 28 | |||
| 29 | public function resolve(Template $template, array $context, array $blocks) |
||
| 49 | } |
||
| 50 |
If a method or function can return multiple different values and unless you are sure that you only can receive a single value in this context, we recommend to add an additional type check:
If this a common case that PHP Analyzer should handle natively, please let us know by opening an issue.