Commit 0782a945 by Qiang Xue

Merge pull request #2818 from RusAlex/319_strict_comparison_theme

better to use strict comparison as much as possible
parents 3ab3f996 a73abd93
...@@ -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