| 1 | <?php |
||
| 14 | class EventDispatchingFilterBarFactory implements FilterBarFactoryInterface |
||
| 15 | { |
||
| 16 | const FORM_NAME = 'filter'; |
||
| 17 | |||
| 18 | private $innerFactory; |
||
| 19 | private $dispatcher; |
||
| 20 | |||
| 21 | public function __construct( |
||
| 28 | |||
| 29 | public function createForm(GridMetadata $gridMetadata, Capabilities $capabilities): FormInterface |
||
| 33 | |||
| 34 | public function createExpression(GridMetadata $gridMetadata, array $data): Expression |
||
| 43 | } |
||
| 44 |
Unless you are absolutely sure that the expression can never be null because of other conditions, we strongly recommend to add an additional type check to your code: