rafandoo / HelpDeskRplus

Invalid typehint detected in function PHP-W1029
Bug risk
Critical
a year ago2 years old
Method App\Http\Controllers\TicketController::inProgress() has invalid return type App\Http\Controllers\A
119 * 
120 * @return A collection of tickets that have a status_id of 3.
121 */
122    public function inProgress()123    {
124        $tickets = Ticket::where('status_id', 3)->paginate(10);
125        return view('ticket.index', compact('tickets'));
Method App\Http\Controllers\TicketController::occurrences() has invalid return type App\Http\Controllers\An
146    * 
147    * @return An array of occurrences.
148    */
149    public function occurrences($id)150    {
151        $occurrences = \App\Models\Occurrences::where('ticket_id', $id)->get()->toArray();
152        return response()->json($occurrences);
Method App\Http\Controllers\TicketController::pending() has invalid return type App\Http\Controllers\A
108     * 
109     * @return A collection of tickets that have a status_id of 2.
110     */
111    public function pending()112    {
113        $tickets = Ticket::where('status_id', 2)->paginate(10);
114        return view('ticket.index', compact('tickets'));
Method App\Models\serviceOrder::ticket() has invalid return type App\Models\The
21     * 
22     * @return The ticket that is associated with the comment.
23     */
24    public function ticket()25    {
26        return $this->belongsTo('App\Models\Ticket');
27    }
Method App\Models\User::accessLevel() has invalid return type App\Models\The
 51     * 
 52     * @return The access level of the user.
 53     */
 54    public function accessLevel() 55    {
 56        return $this->belongsTo('App\Models\AccessLevel');
 57    }