-
Notifications
You must be signed in to change notification settings - Fork 44
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
PHP 8 compatibility #103
PHP 8 compatibility #103
Conversation
fix - Variable assignment found within a condition. Did you mean to do a comparison?
…quivalent of "false" for wp_enqueue_script; This means that the WordPress core version will be used which is not recommended for plugin or theme development.
…Security sections in the WordPress Developer Handbooks), found | | 'get_simple_local_avatar'.
…o a comparison? + unused var
…Security sections in the WordPress Developer Handbooks), found `get_simple_local_avatar`.
…Security sections in the WordPress Developer Handbooks), found `get_simple_local_avatar` another.
strategy: | ||
fail-fast: false | ||
matrix: | ||
php: [ '5.6', '7.0', '7.4', '8.0', '8.1' ] |
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.
You can remove this matrix here and from the places where it is used. See this Slack post for more details.
with: | ||
php-version: '7.2' | ||
coverage: none | ||
tools: prestissimo, composer:v2 |
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.
prestissimo
is unnecessary if we're using composer v2,
Refer to this for more details.
.github/workflows/lint.yml
Outdated
- name: Check PHPCS standard | ||
run: ./vendor/bin/phpcs -i | ||
- name: PHPCS check | ||
uses: chekalsky/phpcs-action@v1 |
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.
We're already using 10up/phpcs-composer in the project. Would be great to keep tools consistent.
Refer to this section for more details.
@Sidsector9 just a reminder, this is ready for review. |
Description of the Change
Upgrade the plugin to be compatible with the least supportive PHP v5.3 up to the PHP v8.1
Verification Process
Make sure the Github actions are passing. Also, test the full plugin functionalities.
Checklist:
Changelog Entry
Credits
Props @faisal-alvi @dkotter @Sidsector9