1 | <?php |
||
2 | |||
3 | declare ( strict_types = 1 ); |
||
4 | |||
5 | namespace Ch0c01dxyz\InstaToken\Objects; |
||
6 | |||
7 | /** |
||
8 | * @author Egar Rizki <[email protected]> |
||
9 | */ |
||
10 | class Action |
||
11 | { |
||
12 | /** |
||
13 | * @var action |
||
14 | */ |
||
15 | protected $action; |
||
16 | |||
17 | /** |
||
18 | * Action constructor |
||
19 | * |
||
20 | * @param string $ac |
||
21 | */ |
||
22 | 2 | public function __construct ( string $action ) |
|
23 | { |
||
24 | 2 | $this->action = $action; |
|
0 ignored issues
–
show
|
|||
25 | 2 | } |
|
26 | |||
27 | /** |
||
28 | * @return string |
||
29 | */ |
||
30 | 2 | public function __toString () : string |
|
31 | { |
||
32 | 2 | return $this->action; |
|
33 | } |
||
34 | } |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..