The property languages does not seem to exist. Did you mean _languages?
An attempt at access to an undefined property has been detected. This may either be a typographical error
or the property has been renamed but there are still references to its old name.
If you really want to allow access to undefined properties, you can define magic methods
to allow access. See the php core documentation on Overloading.
Loading history...
29
}
30
31
public function getLanguage()
32
{
33
return Yii::$app->language;
34
}
35
36
public function run()
37
{
38
return $this->render('LanguageMenu', [
39
'language' => $this->getLanguage(),
40
'languages' => $this->getLanguages(),
41
'selectUrl' => $this->getSelectUrl(),
42
]);
43
}
44
45
public function getSelectUrl()
46
{
47
if (Yii::$app->urlManager instanceof UrlManager) {
The class codemix\localeurls\UrlManager does not exist. Did you forget a USE statement, or did you not list all dependencies?
This error could be the result of:
1. Missing dependencies
PHP Analyzer uses your composer.json file (if available) to determine the
dependencies of your project and to determine all the available classes and functions.
It expects the composer.json to be in the root folder of your repository.
Are you sure this class is defined by one of your dependencies, or did you maybe
not list a dependency in either the require or require-dev section?
2. Missing use statement
PHP does not complain about undefined classes in ìnstanceof checks. For
example, the following PHP code will work perfectly fine:
if($xinstanceofDoesNotExist){// Do something.}
If you have not tested against this specific condition, such errors might go
unnoticed.
An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.
If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.