@@ -84,7 +84,7 @@ public static function asParameter($value, bool $boltDriver = false)
84
84
self ::emptySequenceToArray ($ value ) ??
85
85
self ::convertBoltConvertibles ($ value , $ boltDriver ) ??
86
86
self ::convertTemporalTypes ($ value , $ boltDriver ) ??
87
- self ::filledIterableToArray ($ value ) ??
87
+ self ::filledIterableToArray ($ value, $ boltDriver ) ??
88
88
self ::stringAbleToString ($ value ) ??
89
89
self ::filterInvalidType ($ value );
90
90
}
@@ -158,10 +158,10 @@ private static function cypherMapToStdClass($value): ?stdClass
158
158
/**
159
159
* @param mixed $value
160
160
*/
161
- private static function filledIterableToArray ($ value ): ?array
161
+ private static function filledIterableToArray ($ value, bool $ boltDriver ): ?array
162
162
{
163
163
if (is_iterable ($ value )) {
164
- return self ::iterableToArray ($ value );
164
+ return self ::iterableToArray ($ value, $ boltDriver );
165
165
}
166
166
167
167
return null ;
@@ -191,7 +191,7 @@ public static function formatParameters(iterable $parameters, bool $boltDriver =
191
191
return new CypherMap ($ tbr );
192
192
}
193
193
194
- private static function iterableToArray (iterable $ value ): array
194
+ private static function iterableToArray (iterable $ value, bool $ boltDriver ): array
195
195
{
196
196
$ tbr = [];
197
197
/**
@@ -200,7 +200,7 @@ private static function iterableToArray(iterable $value): array
200
200
*/
201
201
foreach ($ value as $ key => $ val ) {
202
202
if (is_int ($ key ) || is_string ($ key )) {
203
- $ tbr [$ key ] = self ::asParameter ($ val );
203
+ $ tbr [$ key ] = self ::asParameter ($ val, $ boltDriver );
204
204
} else {
205
205
$ msg = 'Iterable parameters must have an integer or string as key values, ' .gettype ($ key ).' received. ' ;
206
206
throw new InvalidArgumentException ($ msg );
0 commit comments