1 | <?php |
||
8 | class GeneralNotification extends Notification |
||
9 | { |
||
10 | /** |
||
11 | * General notification info |
||
12 | * |
||
13 | * @var string |
||
14 | */ |
||
15 | public $info; |
||
16 | |||
17 | /** |
||
18 | * Create a notification instance. |
||
19 | * |
||
20 | * @param string $token |
||
|
|||
21 | * @return void |
||
22 | */ |
||
23 | public function __construct($info) |
||
27 | |||
28 | /** |
||
29 | * Get the notification's channels. |
||
30 | * |
||
31 | * @param mixed $notifiable |
||
32 | * @return array|string |
||
33 | */ |
||
34 | public function via($notifiable) |
||
40 | |||
41 | /** |
||
42 | * Build the mail representation of the notification. |
||
43 | * |
||
44 | * @param mixed $notifiable |
||
45 | * @return \Illuminate\Notifications\Messages\MailMessage |
||
46 | */ |
||
47 | public function toMail($notifiable) |
||
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.