Skip to content

Commit af772b5

Browse files
authored
Merge pull request #4 from defstudio/fix-search-result-metadata-type
[fix] search result metadata type
2 parents 4fd27b2 + e1c3241 commit af772b5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/DTO/SearchResult.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66

77
class SearchResult implements Arrayable
88
{
9+
/**
10+
* @var array<string, mixed>
11+
*/
912
protected array $data = [];
1013

1114
final public function __construct(
@@ -18,7 +21,7 @@ public static function make(string $value, ?string $label = null): self
1821
return new static($value, $label ?? $value);
1922
}
2023

21-
public function withData(string | array $key, string $value): self
24+
public function withData(string | array $key, mixed $value): self
2225
{
2326
if (is_array($key)) {
2427
$this->data = $key;

0 commit comments

Comments
 (0)