Skip to content

Commit 4fbe167

Browse files
committed
fix issues yiisoft#18
1 parent 4f6721e commit 4fbe167

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ActiveRecord.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,9 +323,11 @@ public static function buildKey($key)
323323
}
324324
ksort($key); // ensure order is always the same
325325
$isNumeric = true;
326-
foreach ($key as $value) {
326+
foreach ($key as &$value) {
327327
if (!is_numeric($value)) {
328328
$isNumeric = false;
329+
} else {
330+
$value = (string) $value;
329331
}
330332
}
331333
if ($isNumeric) {

0 commit comments

Comments
 (0)