Skip to content
Snippets Groups Projects
Commit 922b08ba authored by Pavel's avatar Pavel
Browse files

Merge branch 'EscapeDependence' into 'main'

fix types

See merge request piligrimov/search-es!4
parents a7880bb1 876b963e
No related branches found
No related tags found
Loading
......@@ -10,7 +10,7 @@ class QueryMatch implements Esable
{
public function __construct(
private readonly string $key,
private readonly string $value,
private readonly mixed $value,
) {
}
......
......@@ -10,7 +10,7 @@ class Search
{
public function __construct(
private readonly Property $property,
private readonly string $value,
private readonly mixed $value,
) {
}
......@@ -19,7 +19,7 @@ class Search
return $this->property;
}
public function getValue(): string
public function getValue(): mixed
{
return $this->value;
}
......
......@@ -8,11 +8,11 @@ final class Terms implements Esable
{
/**
* @param string $key
* @param string|float|array<string|float> $value
* @param string|float|bool|array<string|float> $value
*/
public function __construct(
private string $key,
private string|float|array $value
private mixed $value
) {
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment