From 7af6bb7e2c879ea921c17cd33aae8c0f5fa9638d Mon Sep 17 00:00:00 2001 From: Sukhwinder Dhillon Date: Thu, 17 Aug 2023 12:22:35 +0200 Subject: [PATCH] ObjectSuggestion: Fix incorrect variable type hint --- library/Icingadb/Web/Control/SearchBar/ObjectSuggestions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Icingadb/Web/Control/SearchBar/ObjectSuggestions.php b/library/Icingadb/Web/Control/SearchBar/ObjectSuggestions.php index ad35c745..db2c84d8 100644 --- a/library/Icingadb/Web/Control/SearchBar/ObjectSuggestions.php +++ b/library/Icingadb/Web/Control/SearchBar/ObjectSuggestions.php @@ -321,8 +321,8 @@ class ObjectSuggestions extends Suggestions self::collectRelations($resolver, $model, $models, []); } + /** @var Model $targetModel */ foreach ($models as $path => $targetModel) { - /** @var Model $targetModel */ foreach ($resolver->getColumnDefinitions($targetModel) as $columnName => $definition) { yield $path . '.' . $columnName => $definition->getLabel(); }