Skip to content

Conversation

@kenjis
Copy link
Member

@kenjis kenjis commented Aug 14, 2022

  • add void_return rule for php-cs-fixer
  • add missing return types
  • add doc comments

@kenjis kenjis added the refactor Pull requests that refactor code label Aug 14, 2022
Copy link
Member

@paulbalandan paulbalandan left a comment

Choose a reason for hiding this comment

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

To automate this for void returns, you can use the void_return rule of php-cs-fixer. However, that rule can break public API.

@kenjis kenjis marked this pull request as draft August 15, 2022 05:10
@kenjis kenjis marked this pull request as ready for review August 15, 2022 05:36
@kenjis
Copy link
Member Author

kenjis commented Aug 15, 2022

@paulbalandan Shield is under pre-release. We don't care small breaking changes so much.

Copy link
Member

@MGatner MGatner left a comment

Choose a reason for hiding this comment

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

I usually run this manually with Psalm's CLI arguments, but maybe we should think about making this change in DevKit.

@kenjis kenjis merged commit 7b9892f into codeigniter4:develop Aug 16, 2022
@kenjis kenjis deleted the fix-return-types branch August 16, 2022 06:49
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.

4 participants