Skip to content

refactor: Enable MustHaveReturnTypeFunctionRule StructArmed rule on system/Helpers - #10521

Merged
samsonasik merged 1 commit into
codeigniter4:developfrom
samsonasik:chore-enable-must-have-return-type-func
Sep 4, 2026
Merged

refactor: Enable MustHaveReturnTypeFunctionRule StructArmed rule on system/Helpers#10521
samsonasik merged 1 commit into
codeigniter4:developfrom
samsonasik:chore-enable-must-have-return-type-func

Conversation

@samsonasik

Copy link
Copy Markdown
Member

Description

Ths PR enable MustHaveReturnTypeFunctionRule StructArmed rule on system/Helpers and add the return type to them. Functions doesn't have parent/child to check so should be safe to apply.

Just let me know if it needs to be marked as refactor :)

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value (without duplication)
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

@samsonasik

Copy link
Copy Markdown
Member Author

Ready to review/merge 👍

@paulbalandan paulbalandan left a comment

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.

A refactor please. Not sure if this can go to develop. Let's wait for @michalsn

@samsonasik samsonasik changed the title chore: Enable MustHaveReturnTypeFunctionRule StructArmed rule on system/Helpers refactor: Enable MustHaveReturnTypeFunctionRule StructArmed rule on system/Helpers Sep 4, 2026
@samsonasik
samsonasik force-pushed the chore-enable-must-have-return-type-func branch from c31d105 to 05a9cd7 Compare September 4, 2026 12:44
@samsonasik

Copy link
Copy Markdown
Member Author

@paulbalandan sure, I've updated PR title and commit to use refactor 👍

@paulbalandan paulbalandan added the refactor Pull requests that refactor code label Sep 4, 2026

@michalsn michalsn left a comment

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.

I see no issues with targeting this into develop.

@samsonasik

Copy link
Copy Markdown
Member Author

Thank you @paulbalandan @michalsn for the review, let's merge 👍

@samsonasik
samsonasik merged commit e7aa212 into codeigniter4:develop Sep 4, 2026
56 checks passed
@samsonasik
samsonasik deleted the chore-enable-must-have-return-type-func branch September 4, 2026 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor Pull requests that refactor code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants