File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -262,7 +262,7 @@ class Query implements \JsonSerializable
262
262
* @param string $value
263
263
* @return string
264
264
*/
265
- public static function contains (string $attribute , string $value ): string
265
+ public static function contains (string $attribute , array $value ): string
266
266
{
267
267
return (new Query (' contains' , $attribute , $value ))-> __toString();
268
268
}
Original file line number Diff line number Diff line change 139
139
echo Query::cursorBefore ('my_movie_id ' ) . "\n" ;
140
140
echo Query::limit (50 ) . "\n" ;
141
141
echo Query::offset (20 ) . "\n" ;
142
- echo Query::contains ('title ' , 'Spider ' ) . "\n" ;
143
- echo Query::contains ('labels ' , 'first ' ) . "\n" ;
142
+ echo Query::contains ('title ' , [ 'Spider ' ] ) . "\n" ;
143
+ echo Query::contains ('labels ' , [ 'first ' ] ) . "\n" ;
144
144
echo Query::or ([
145
145
Query::equal ('released ' , [true ]),
146
146
Query::lessThan ('releasedYear ' , 1990 )
You can’t perform that action at this time.
0 commit comments