cakephp / phinx

PHP Database Migrations for Everyone
https://phinx.org
MIT License
4.46k stars 889 forks source link

Add/improve type declarations for PHP 8.1 #2218

Closed othercorey closed 1 year ago

othercorey commented 1 year ago

cakephp-codesniffer 5 is meant to be paired with cakephp 5 code. One of the key changes is requiring native type declarations where possible.

othercorey commented 1 year ago

@MasterOdin You can override the header settings for phinx from the cakephpcs defaults now if you want. I don't think there will be any large-scale changes after this.

You can also move away from cakephp-cs. It was useful for validating the type declarations and type-hints, but you could pull out the specific rules you want into a custom config.