| 1 | <?php |
||
| 15 | class ViewReferenceBuilder |
||
| 16 | { |
||
| 17 | protected $viewReferenceBuilderChain; |
||
| 18 | |||
| 19 | public function __construct(ViewReferenceBuilderChain $viewReferenceBuilderChain) |
||
| 23 | |||
| 24 | /** |
||
| 25 | * compute the viewReference relative to a View + entity. |
||
| 26 | * |
||
| 27 | * @param WebViewInterface $view |
||
| 28 | * |
||
| 29 | * @return ViewReference |
||
| 30 | */ |
||
| 31 | public function buildViewReference(View $view, EntityManager $em = null) |
||
| 38 | } |
||
| 39 |
It seems like you allow that null is being passed for a parameter, however the function which is called does not seem to accept null.
We recommend to add an additional type check (or disallow null for the parameter):