We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| 1 | <?php |
||
| 11 | class PostsController extends Controller |
||
| 12 | { |
||
| 13 | |||
| 14 | public function index() |
||
| 20 | |||
| 21 | public function show($id) |
||
| 27 | |||
| 28 | public function store(CreatePostRequest $request) |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Update Post by ID |
||
| 41 | * |
||
| 42 | * @method update |
||
| 43 | * |
||
| 44 | * @param UpdatePostRequest $request |
||
| 45 | * @param integer $id |
||
| 46 | * |
||
| 47 | * @return boolean |
||
| 48 | */ |
||
| 49 | |||
| 50 | public function update(UpdatePostRequest $request, $id) |
||
| 61 | |||
| 62 | public function destroy($id) |
||
| 69 | } |
||
| 70 |
Since your code implements the magic setter
_set, this function will be called for any write access on an undefined variable. You can add the@propertyannotation to your class or interface to document the existence of this variable.Since the property has write access only, you can use the @property-write 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.