Skip to content

Test the data provider ignore extension with MissingImplementedMethodReturnTypehintRule too - #376

Merged
ondrejmirtes merged 1 commit into
2.1.xfrom
missing-return-type-on-return-statements
Dec 2, 2026
Merged

ondrejmirtes merged 1 commit into
2.1.xfrom
missing-return-type-on-return-statements

Conversation

@ondrejmirtes

Copy link
Copy Markdown
Member

phpstan/phpstan-src#7283 reports missing return types of methods with a body in the new MissingImplementedMethodReturnTypehintRule, so the error's type can be inferred from the returned values. MissingMethodReturnTypehintRule only reports methods without a body now.

This test runs both rules when the new one exists, so it passes with the released PHPStan and with that PR. The extension itself needs no change, because it reads the method from the scope.

Amp thread: https://ampcode.com/threads/T-01a22c96-9e21-771f-9a29-4627539ba301

…ReturnTypehintRule too

PHPStan reports missing return types of methods with a body in MissingImplementedMethodReturnTypehintRule
since phpstan/phpstan-src#7283.

Amp-Thread-ID: https://ampcode.com/threads/T-01a22c96-9e21-771f-9a29-4627539ba301
@ondrejmirtes
ondrejmirtes merged commit 68ab89b into 2.1.x Dec 2, 2026
113 checks passed
@ondrejmirtes
ondrejmirtes deleted the missing-return-type-on-return-statements branch December 2, 2026 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant