1 | <?php |
||
13 | class NewThread |
||
14 | { |
||
15 | private $thread; |
||
16 | |||
17 | use InteractsWithSockets, SerializesModels; |
||
18 | |||
19 | public function getThread() |
||
23 | |||
24 | /** |
||
25 | * Create a new event instance. |
||
26 | * ClientAction constructor. |
||
27 | * @param Client $client |
||
|
|||
28 | * @param $action |
||
29 | */ |
||
30 | public function __construct($thread) |
||
34 | |||
35 | /** |
||
36 | * Get the channels the event should broadcast on. |
||
37 | * |
||
38 | * @return Channel|array |
||
39 | */ |
||
40 | public function broadcastOn() |
||
44 | } |
||
45 |
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.