File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -259,10 +259,10 @@ class Query implements \JsonSerializable
259
259
* Contains
260
260
*
261
261
* @param string $attribute
262
- * @param string $value
262
+ * @param mixed $value
263
263
* @return string
264
264
*/
265
- public static function contains (string $attribute , string $value ): string
265
+ public static function contains (string $attribute , $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