Skip to content

[CLEANUP] Rector: Add strict return type based native function or class method return #603

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 21, 2024

Conversation

ziegenberg
Copy link
Contributor

@ziegenberg ziegenberg commented Jun 21, 2024

This applies the rule ReturnTypeFromStrictNativeCallRector. For Details see:
https://github.com/rectorphp/rector/blob/main/docs/rector_rules_overview.md#returntypefromstrictnativecallrector

This PR is based on #602.

… string, int, float or bool

This applies the rule ReturnTypeFromStrictScalarReturnExprRector. For
Details see:
https://github.com/rectorphp/rector/blob/main/docs/rector_rules_overview.md#returntypefromstrictscalarreturnexprrector

Signed-off-by: Daniel Ziegenberg <[email protected]>
@ziegenberg ziegenberg force-pushed the add-type-coverage-level-22 branch from a3bb05d to 4ae2f71 Compare June 21, 2024 13:26
@ziegenberg ziegenberg force-pushed the add-type-coverage-level-22 branch from 4ae2f71 to d2106ed Compare June 21, 2024 13:31
@oliverklee oliverklee merged commit a06d326 into MyIntervals:main Jun 21, 2024
18 checks passed
@ziegenberg ziegenberg deleted the add-type-coverage-level-22 branch June 21, 2024 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants