1 | <?php |
||
24 | class JobController extends Controller { |
||
25 | |||
26 | /** |
||
27 | * |
||
28 | * @var string |
||
29 | */ |
||
30 | private $userId; |
||
31 | |||
32 | /** |
||
33 | * |
||
34 | * @var OcrService |
||
35 | */ |
||
36 | private $service; |
||
37 | use Errors; |
||
38 | |||
39 | /** |
||
40 | * JobController constructor. |
||
41 | * |
||
42 | * @param string $AppName |
||
43 | * @param IRequest $request |
||
44 | * @param JobService $service |
||
45 | * @param |
||
46 | * $UserId |
||
47 | */ |
||
48 | 7 | public function __construct($AppName, IRequest $request, JobService $service, $UserId) { |
|
53 | |||
54 | /** |
||
55 | * Processing the srcFile(s) |
||
56 | * @NoAdminRequired |
||
57 | * |
||
58 | * @param string[] $languages |
||
59 | * - deu, eng... |
||
60 | * @param array $files |
||
61 | * @return DataResponse |
||
62 | */ |
||
63 | 2 | public function process($languages, $files) { |
|
69 | |||
70 | /** |
||
71 | * @NoAdminRequired |
||
72 | * |
||
73 | * @return \OCP\AppFramework\Http\DataResponse |
||
74 | */ |
||
75 | 2 | public function getAllJobs() { |
|
80 | |||
81 | /** |
||
82 | * @NoAdminRequired |
||
83 | * |
||
84 | * @param integer $id |
||
85 | * @return \OCP\AppFramework\Http\DataResponse |
||
86 | */ |
||
87 | 2 | public function deleteJob($id) { |
|
93 | } |
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..