Skip to content

Fix up phpstan without silencing.#360

Merged
ADmad merged 1 commit into
masterfrom
phpstan
Nov 12, 2025
Merged

Fix up phpstan without silencing.#360
ADmad merged 1 commit into
masterfrom
phpstan

Conversation

@dereuromark

Copy link
Copy Markdown
Member

Follow #359

What do you think of this?

* @var \Search\Model\Behavior\SearchBehavior $searchBehavior
* @phpstan-ignore method.unresolvableReturnType
*/
/** @var \Search\Model\Behavior\SearchBehavior $searchBehavior */

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this still needed even though we have added annotation for $model above with the "Search" key?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, otherwise isSearch() and searchParams() are not known to IDE at least.

@ADmad ADmad merged commit 0d15bdd into master Nov 12, 2025
7 checks passed
@ADmad ADmad deleted the phpstan branch November 12, 2025 04:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants