We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2c93625 + baeffce commit 145a159Copy full SHA for 145a159
1 file changed
src/Controller/Component/SearchComponent.php
@@ -167,10 +167,13 @@ public function beforeRender(): void
167
return;
168
}
169
170
- /** @phpstan-ignore method.notFound */
171
- $controller->set('_isSearch', $model->isSearch());
172
173
- $controller->set('_searchParams', $model->searchParams());
+ /**
+ * @var \Search\Model\Behavior\SearchBehavior $searchBehavior
+ * @phpstan-ignore method.unresolvableReturnType
+ */
174
+ $searchBehavior = $model->getBehavior('Search');
175
+ $controller->set('_isSearch', $searchBehavior->isSearch());
176
+ $controller->set('_searchParams', $searchBehavior->searchParams());
177
178
179
/**
0 commit comments