It seems like $this->module->versionModules can also be of type object; however, parameter $array of yii\helpers\BaseArrayHelper::map() does only seem to accept array, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
The property versionModules does not exist on roaresearch\yii2\roa\modules\ApiContainer. Since you implemented __get, consider adding a @property annotation.
Loading history...
39
'id',
40
'factSheet'
41
);
42
}
43
44
/**
45
* Handles the exceptions catched by the system bootstrapping process.
46
* @return \Exception
47
*/
48
public function actionError(): \Exception
49
{
50
if (($exception = Yii::$app->getErrorHandler()->exception) === null) {