1 | <?php |
||
10 | class NestedModelValidator extends Validator |
||
11 | { |
||
12 | public $modelClass; |
||
13 | |||
14 | public function init() |
||
22 | |||
23 | public function validateAttribute($model, $attribute) |
||
39 | |||
40 | private function createModel($data) |
||
47 | |||
48 | /** |
||
49 | * @param Model $model |
||
50 | * @return array|null |
||
51 | */ |
||
52 | protected function validateValue($model) |
||
64 | } |
||
65 |
This check looks for function or method calls that always return null and whose return value is assigned to a variable.
The method
getObject()
can return nothing but null, so it makes no sense to assign that value to a variable.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.