1 | <?php |
||
22 | class VerificationSuccessNotification extends Notification |
||
23 | { |
||
24 | /** |
||
25 | * Indicates if the user is moderated or not. |
||
26 | * |
||
27 | * @var bool |
||
28 | */ |
||
29 | public $moderated; |
||
30 | |||
31 | /** |
||
32 | * Create a notification instance. |
||
33 | * |
||
34 | * @param bool $social |
||
|
|||
35 | * |
||
36 | * @return void |
||
37 | */ |
||
38 | public function __construct($moderated = false) |
||
42 | /** |
||
43 | * Get the notification's channels. |
||
44 | * |
||
45 | * @param mixed $notifiable |
||
46 | * |
||
47 | * @return array|string |
||
48 | */ |
||
49 | public function via($notifiable) |
||
53 | |||
54 | /** |
||
55 | * Build the mail representation of the notification. |
||
56 | * |
||
57 | * @return \Illuminate\Notifications\Messages\MailMessage |
||
58 | */ |
||
59 | public function toMail() |
||
71 | } |
||
72 |
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.