1 | <?php namespace JobApis\JobsToMail\Notifications; |
||
7 | class PremiumUserSignup extends Notification |
||
8 | { |
||
9 | /** |
||
10 | * @var array |
||
11 | */ |
||
12 | protected $data; |
||
13 | |||
14 | /** |
||
15 | * Create a new notification instance. |
||
16 | * |
||
17 | * @param Token $token |
||
|
|||
18 | * |
||
19 | * @return void |
||
20 | */ |
||
21 | 1 | public function __construct($data) |
|
25 | |||
26 | /** |
||
27 | * Get the notification's delivery channels. |
||
28 | * |
||
29 | * @param mixed $notifiable |
||
30 | * @return array |
||
31 | */ |
||
32 | public function via($notifiable) |
||
36 | |||
37 | /** |
||
38 | * Get the mail representation of the notification. |
||
39 | * |
||
40 | * @param mixed $notifiable |
||
41 | * @return \Illuminate\Notifications\Messages\MailMessage |
||
42 | */ |
||
43 | public function toMail($notifiable) |
||
55 | } |
||
56 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.