We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28c227a commit a38a596Copy full SHA for a38a596
src/behaviors/TranslationBehavior.php
@@ -87,7 +87,7 @@ class TranslationBehavior extends Behavior
87
public function init()
88
{
89
parent::init();
90
- if (!array_key_exists($this->defaultLanguage, $this->languages)) {
+ if (!in_array($this->defaultLanguage, $this->languages)) {
91
throw new InvalidConfigException('Default language must be exist');
92
}
93
0 commit comments