summaryrefslogtreecommitdiff
path: root/app/Http/RequestHandlers/TomSelectPlace.php
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2022-02-24 15:53:17 +0000
committerGreg Roach <greg@subaqua.co.uk>2022-02-24 15:54:19 +0000
commit110d87e5cc3161866682d0a932d11474cfbcad7f (patch)
treef0dbab3c34f7a836c89977f88f8b08dd7ed711d3 /app/Http/RequestHandlers/TomSelectPlace.php
parent353937a496fdec617e7a156511a9248ae3a4ab8c (diff)
downloadwebtrees-110d87e5cc3161866682d0a932d11474cfbcad7f.tar.gz
webtrees-110d87e5cc3161866682d0a932d11474cfbcad7f.tar.bz2
webtrees-110d87e5cc3161866682d0a932d11474cfbcad7f.zip
Validation
Diffstat (limited to 'app/Http/RequestHandlers/TomSelectPlace.php')
-rw-r--r--app/Http/RequestHandlers/TomSelectPlace.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Http/RequestHandlers/TomSelectPlace.php b/app/Http/RequestHandlers/TomSelectPlace.php
index 8ac29176b4..5c2167ea6d 100644
--- a/app/Http/RequestHandlers/TomSelectPlace.php
+++ b/app/Http/RequestHandlers/TomSelectPlace.php
@@ -48,7 +48,7 @@ class TomSelectPlace extends AbstractTomSelectHandler
* @param int $limit
* @param string $at
*
- * @return Collection<int,array<string,string>>
+ * @return Collection<int,array{text:string,value:string}>
*/
protected function search(Tree $tree, string $query, int $offset, int $limit, string $at): Collection
{
@@ -57,7 +57,7 @@ class TomSelectPlace extends AbstractTomSelectHandler
->map(static function (Place $place): array {
return [
'text' => $place->gedcomName(),
- 'value' => $place->id(),
+ 'value' => (string) $place->id(),
];
});
}