Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
41 | protected function trigger(User &$user) |
||
42 | { |
||
43 | $ownerData = [ |
||
44 | 'path' => $user->username, |
||
|
|||
45 | 'name' => $user->username, |
||
46 | 'user_id' => $user->id, |
||
47 | 'type' => 'User', |
||
48 | 'description' => '', |
||
49 | ]; |
||
50 | |||
51 | $group = $this->dispatchFromArray(AddOwnerCommand::class, $ownerData); |
||
52 | } |
||
53 | } |
||
54 |
Since your code implements the magic getter
_get
, this function will be called for any read access on an undefined variable. You can add the@property
annotation to your class or interface to document the existence of this variable.If the property has read access only, you can use the @property-read annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.