Skip to content

[CLEANUP] Rector: Add return type void to function like without any return #597

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 1 commit into from
Jun 21, 2024

Conversation

ziegenberg
Copy link
Contributor

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

@ziegenberg ziegenberg force-pushed the add-type-coverage-level-13 branch from 1751503 to e83c4a5 Compare June 20, 2024 23:11
@ziegenberg ziegenberg requested a review from oliverklee June 20, 2024 23:12
Copy link
Collaborator

@JakeQZ JakeQZ left a comment

Choose a reason for hiding this comment

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

Should the Rector config file be updated - specifically to uncomment AddVoidReturnTypeWhereNoReturnRector::class?

@ziegenberg
Copy link
Contributor Author

Should the Rector config file be updated - specifically to uncomment AddVoidReturnTypeWhereNoReturnRector::class?

IMHO, this can be done at a later stage. First, I'm doing all the CLEANUP and, later, the TASK of configuring the rector. Also, @oliverklee surely wants to have TASK and CLEANUP in different PRs.

After this type series, we can set the following config:

    ->withSets(
        [
            SetList::TYPE_DECLARATION,
        ]
    )

@oliverklee oliverklee merged commit c69b1f8 into MyIntervals:main Jun 21, 2024
18 checks passed
@ziegenberg ziegenberg deleted the add-type-coverage-level-13 branch June 21, 2024 11:16
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.

3 participants