1 | <?php |
||
11 | class AdminController extends Controller { |
||
12 | |||
13 | /** |
||
14 | * @var \OCA\Chat\BackendManager |
||
15 | */ |
||
16 | private $backendManager; |
||
17 | |||
18 | public function __construct($appName, IRequest $request, IBackendManager $backendManager){ |
||
22 | |||
23 | /** |
||
24 | * @NoAdminRequired |
||
25 | */ |
||
26 | public function index(){ |
||
31 | } |
Our type inference engine has found a suspicous assignment of a value to a property. This check raises an issue when a value that can be of a given class or a super-class is assigned to a property that is type hinted more strictly.
Either this assignment is in error or an instanceof check should be added for that assignment.