hiqdev /
hidev
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
| 1 | <?php |
||
| 2 | |||
| 3 | /* |
||
| 4 | * Task runner, code generator and build tool for easier continuos integration |
||
| 5 | * |
||
| 6 | * @link https://github.com/hiqdev/hidev |
||
| 7 | * @package hidev |
||
| 8 | * @license BSD-3-Clause |
||
| 9 | * @copyright Copyright (c) 2014-2016, HiQDev (http://hiqdev.com/) |
||
| 10 | */ |
||
| 11 | |||
| 12 | namespace hidev\controllers; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Default goal. |
||
| 16 | */ |
||
| 17 | class DefaultController extends CommonController |
||
| 18 | { |
||
| 19 | public function actionMake() |
||
| 20 | { |
||
| 21 | return StartController::$started ? parent::actionMake() : $this->runRequests(['start', 'default']); |
||
|
0 ignored issues
–
show
The expression
\hidev\controllers\Start...y('start', 'default')); of type integer|hidev\controllers\Response adds the type hidev\controllers\Response to the return on line 21 which is incompatible with the return type of the parent method hidev\controllers\AbstractController::actionMake of type null|integer.
Loading history...
|
|||
| 22 | } |
||
| 23 | } |
||
| 24 |
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.