Commit a73abd93 by Alexander Pletnev

better to use strict comparison as much as possible

parent 3ab3f996
...@@ -83,7 +83,7 @@ class Theme extends Component ...@@ -83,7 +83,7 @@ class Theme extends Component
parent::init(); parent::init();
if (empty($this->pathMap)) { if (empty($this->pathMap)) {
if (($basePath = $this->getBasePath()) == null) { if (($basePath = $this->getBasePath()) === null) {
throw new InvalidConfigException('The "basePath" property must be set.'); throw new InvalidConfigException('The "basePath" property must be set.');
} }
$this->pathMap = [Yii::$app->getBasePath() => [$basePath]]; $this->pathMap = [Yii::$app->getBasePath() => [$basePath]];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment