-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix PHP 8 compatibility #72
Conversation
@@ -2,10 +2,9 @@ | |||
|
|||
class WidgetContextWordCount { | |||
|
|||
private static $instance; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wasn't referenced anywhere.
@@ -32,7 +32,7 @@ jobs: | |||
run: npm run lint | |||
|
|||
- name: Test | |||
run: npm run test | |||
run: composer test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The npm test
script now runs things inside the Docker environment.
"mockery/mockery": "^0.9.5", | ||
"php-coveralls/php-coveralls": "^2.4", | ||
"phpcompatibility/php-compatibility": "^9.3", | ||
"phpcompatibility/php-compatibility": "dev-develop as 9.99.99", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needed for PHP 8+ checks since it only lives in the develop
.
@@ -3,7 +3,7 @@ version: '3' | |||
services: | |||
|
|||
mysql: | |||
image: mysql:5 | |||
image: mysql:8.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This supports arm machines now.
@@ -14,7 +14,7 @@ services: | |||
MYSQL_ROOT_PASSWORD: password | |||
|
|||
wordpress: | |||
image: wordpress:latest | |||
image: wordpress:php7.4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lock to a known PHP version to support phpunit tests at the current version.
Fixes #71.
phpcompatibility/php-compatibility
to check for PHP 8 issues.