1 | <?php |
||
8 | class NotificationController extends Controller |
||
9 | { |
||
10 | /** |
||
11 | * Undocumented function |
||
12 | * |
||
13 | * @return void |
||
14 | */ |
||
15 | public function index() |
||
19 | |||
20 | /** |
||
21 | * Mark a notification as read. |
||
22 | * |
||
23 | * @return \Illuminate\Http\JsonResponse |
||
24 | */ |
||
25 | public function markAsRead(): JsonResponse |
||
40 | |||
41 | /** |
||
42 | * Mark all notifications as read. |
||
43 | * |
||
44 | * @return \Illuminate\Http\JsonResponse |
||
45 | */ |
||
46 | public function markAllAsRead(): JsonResponse |
||
55 | } |
||
56 |
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.