Skip to content

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

Open
samsonasik wants to merge 1 commit into
codeigniter4:developfrom
samsonasik:chore-enable-must-have-return-type-func
Open

refactor: Enable MustHaveReturnTypeFunctionRule StructArmed rule on system/Helpers#10521
samsonasik wants to merge 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
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.

2 participants