diff --git a/templates/php/src/Query.php.twig b/templates/php/src/Query.php.twig index cff70af56..3d105842e 100644 --- a/templates/php/src/Query.php.twig +++ b/templates/php/src/Query.php.twig @@ -259,10 +259,10 @@ class Query implements \JsonSerializable * Contains * * @param string $attribute - * @param string $value + * @param mixed $value * @return string */ - public static function contains(string $attribute, string $value): string + public static function contains(string $attribute, $value): string { return (new Query('contains', $attribute, $value))->__toString(); } diff --git a/tests/languages/php/test.php b/tests/languages/php/test.php index d8f62724a..f182257b5 100644 --- a/tests/languages/php/test.php +++ b/tests/languages/php/test.php @@ -139,8 +139,8 @@ echo Query::cursorBefore('my_movie_id') . "\n"; echo Query::limit(50) . "\n"; echo Query::offset(20) . "\n"; -echo Query::contains('title', 'Spider') . "\n"; -echo Query::contains('labels', 'first') . "\n"; +echo Query::contains('title', ['Spider']) . "\n"; +echo Query::contains('labels', ['first']) . "\n"; echo Query::or([ Query::equal('released', [true]), Query::lessThan('releasedYear', 1990)