Skip to content

Commit 1212dc8

Browse files
Check if string (#19)
1 parent bee3bdb commit 1212dc8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

App/EvolvStore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ private function updateGenome(array $value)
389389
$this->genomeKeyStates['experiments'][$clean['eid']] = &$expMap;
390390

391391
$keys = flattenKeys($alloc['genome'], function ($key) {
392-
return !startsWith($key, '_');
392+
return is_string($key) && !startsWith($key, '_');
393393
});
394394

395395
foreach ($keys as $key) {

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "evolv/php-sdk",
33
"description": "This is the official PHP client for the Evolv AI optimization platform.",
44
"type": "library",
5-
"version": "1.0.4",
5+
"version": "1.0.5",
66
"require-dev": {
77
"phpunit/phpunit": "^9.5",
88
"phpdocumentor/phpdocumentor": "v3.1.2",

0 commit comments

Comments
 (0)