1 | <?php |
||
18 | class RoleController extends AbstractActionController |
||
19 | { |
||
20 | |||
21 | /** |
||
22 | * @var \ObjectManager |
||
23 | */ |
||
24 | protected $objectManager; |
||
25 | |||
26 | /** |
||
27 | * @var \JhUser\Repository\UserRepositoryInterface |
||
28 | */ |
||
29 | protected $userRepository; |
||
30 | |||
31 | /** |
||
32 | * @var \JhUser\Repository\RoleRepositoryInterface |
||
33 | */ |
||
34 | protected $roleRepository; |
||
35 | |||
36 | /** |
||
37 | * @param ObjectManager $objectManager |
||
38 | * @param UserRepositoryInterface $userRepository |
||
39 | * @param RoleRepositoryInterface $roleRepository |
||
40 | */ |
||
41 | public function __construct( |
||
50 | |||
51 | /** |
||
52 | * Set a Users role, |
||
53 | * Removes all existing roles |
||
54 | * |
||
55 | * @throws \RuntimeException |
||
56 | */ |
||
57 | public function setRoleAction() |
||
83 | } |
||
84 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..