We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| 1 | <?php |
||
| 10 | class InvitationRequestsController extends Controller |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Create an invite when user requests from API. |
||
| 14 | * |
||
| 15 | * @param UserInvitationRequest $request |
||
| 16 | * @return void |
||
| 17 | */ |
||
| 18 | 1 | public function createInvitation(UserInvitationRequest $request) |
|
| 47 | |||
| 48 | /** |
||
| 49 | * Check if User was invited before. |
||
| 50 | * |
||
| 51 | * @param Request $data |
||
| 52 | * @return void |
||
| 53 | */ |
||
| 54 | public function checkInvitation(Request $data) |
||
| 56 | } |
||
| 57 |
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@propertyannotation 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.