Skip to content

refactor: update rector, psalm and add strict types#159

Merged
michalsn merged 2 commits intocodeigniter4:developfrom
michalsn:update-rector-and-psalm
Feb 14, 2026
Merged

refactor: update rector, psalm and add strict types#159
michalsn merged 2 commits intocodeigniter4:developfrom
michalsn:update-rector-and-psalm

Conversation

@michalsn
Copy link
Member

Description
This PR enables declare(strict_types=1) and void return types across all source and test files. It updates Rector from PHP 7.4 to PHP 8.2 as the target, bumps the Psalm PHP version from 8.1 to 8.2, and raises the minimum framework requirement from ^4.2.3 to ^4.3. It also adds readonly to private properties where applicable.

Checklist:

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

@michalsn michalsn merged commit 458204d into codeigniter4:develop Feb 14, 2026
33 checks passed
@michalsn
Copy link
Member Author

Thank you @paulbalandan

@michalsn michalsn deleted the update-rector-and-psalm branch February 14, 2026 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants