1 | <?php |
||
6 | trait DiscussConversationPresenter |
||
7 | { |
||
8 | /** |
||
9 | * We must decrement the post count due to the first post being counted. |
||
10 | * |
||
11 | * @param int $count The actual post count cache. |
||
|
|||
12 | * |
||
13 | * @return int |
||
14 | */ |
||
15 | public function getPostCountFormatedAttribute(): int |
||
19 | |||
20 | /** |
||
21 | * Get the conversation url. |
||
22 | * |
||
23 | * @return string |
||
24 | */ |
||
25 | public function getConversationUrlAttribute(): string |
||
33 | |||
34 | /** |
||
35 | * Get the last page number for the conversation. |
||
36 | * |
||
37 | * @return int |
||
38 | */ |
||
39 | public function getLastPageAttribute(): int |
||
51 | } |
||
52 |
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.