1 | <?php |
||
9 | class UserProcessorTest extends TestCase |
||
10 | { |
||
11 | /** |
||
12 | * @group legacy |
||
13 | * @expectedDeprecation Passing the container as the first argument of "Kunstmaan\AdminBundle\Helper\UserProcessor" is deprecated in KunstmaanAdminBundle 5.4 and will be removed in KunstmaanAdminBundle 6.0. Inject the "security.token_storage" service instead. |
||
14 | */ |
||
15 | public function testConstructorContainerDeprecation() |
||
20 | } |
||
21 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: