Skip to content

PHP 8.1 support#173

Merged
markstory merged 5 commits into
cakephp:masterfrom
lilHermit:php8-support
Aug 30, 2022
Merged

PHP 8.1 support#173
markstory merged 5 commits into
cakephp:masterfrom
lilHermit:php8-support

Conversation

@lilHermit
Copy link
Copy Markdown
Contributor

  • Fixed the PHP 8.1 deprecation of passing non-string to ctype_digit
  • Updated testsuite to CakePHP 4.3+

Refs

https://wiki.php.net/rfc/deprecations_php_8_1#ctype_function_family_accepts_int_parameters
https://www.php.net/manual/en/function.ctype-digit.php

Copy link
Copy Markdown
Member

@markstory markstory left a comment

Choose a reason for hiding this comment

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

Looks good to me.

Comment thread composer.json
"require": {
"php": "^7.2",
"php": ">=7.4.0",
"cakephp/cakephp": "^4.0",
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.

Should we pin this to ^4.3 ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@markstory You mean cakephp/cakephp ^4.3 ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The only reason I didn't was because only the tests need CakePHP 4.3, but that's really a decision for you guys

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.

Doesn't changing the min PHP version effectively bump up the cake version as well though?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I've rebased the PHP version to >=7.2 so we don't force a cakephp version bump

@markstory markstory merged commit 3eae9a9 into cakephp:master Aug 30, 2022
@lilHermit lilHermit deleted the php8-support branch September 1, 2022 06:50
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.

3 participants