Conditions | 3 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
25 | public function __construct(/* EntityManagerInterface */ $em = null) |
||
26 | { |
||
27 | parent::__construct(); |
||
28 | |||
29 | if (!$em instanceof EntityManagerInterface) { |
||
30 | @trigger_error(sprintf('Passing a command name as the first argument of "%s" is deprecated since version symfony 3.4 and will be removed in symfony 4.0. If the command was registered by convention, make it a service instead. ', __METHOD__), E_USER_DEPRECATED); |
||
|
|||
31 | |||
32 | $this->setName(null === $em ? 'kuma:media:rebuild-folder-tree' : $em); |
||
33 | |||
34 | return; |
||
35 | } |
||
36 | |||
37 | $this->em = $em; |
||
38 | } |
||
39 | |||
65 |
If you suppress an error, we recommend checking for the error condition explicitly: