Browse Source

Merge pull request #16975 from cakephp/5.x-assoc-fix

Numeric assoc keys can happen to be int.
Mark Story 3 years ago
parent
commit
eaff90e03d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Core/StaticConfigTrait.php

+ 1 - 1
src/Core/StaticConfigTrait.php

@@ -80,7 +80,7 @@ trait StaticConfigTrait
                 throw new LogicException('If config is null, key must be an array.');
             }
             foreach ($key as $name => $settings) {
-                static::setConfig($name, $settings);
+                static::setConfig((string)$name, $settings);
             }
 
             return;