Skip to content
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

Merged
merged 58 commits into from
Apr 16, 2022
Merged

PHP 8 compatibility #103

merged 58 commits into from
Apr 16, 2022

Conversation

faisal-alvi
Copy link
Member

@faisal-alvi faisal-alvi commented Mar 23, 2022

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:

  • I have read the CONTRIBUTING document.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests passed.

Changelog Entry

Security - Plugin made compatible up to PHP 8.1

Credits

Props @faisal-alvi @dkotter @Sidsector9

@faisal-alvi faisal-alvi self-assigned this Mar 23, 2022
@faisal-alvi faisal-alvi added this to the Future Release milestone Mar 23, 2022
@faisal-alvi faisal-alvi added the type:enhancement New feature or request. label Mar 23, 2022
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'.
…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.
@faisal-alvi faisal-alvi requested review from a team and dkotter and removed request for a team March 25, 2022 05:50
@faisal-alvi faisal-alvi marked this pull request as ready for review March 25, 2022 05:50
strategy:
fail-fast: false
matrix:
php: [ '5.6', '7.0', '7.4', '8.0', '8.1' ]
Copy link
Member

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
Copy link
Member

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.

- name: Check PHPCS standard
run: ./vendor/bin/phpcs -i
- name: PHPCS check
uses: chekalsky/phpcs-action@v1
Copy link
Member

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.

@faisal-alvi faisal-alvi removed the request for review from dkotter April 4, 2022 11:01
@faisal-alvi
Copy link
Member Author

@Sidsector9 just a reminder, this is ready for review.

This was referenced Apr 15, 2022
@faisal-alvi faisal-alvi merged commit 098b57e into develop Apr 16, 2022
@faisal-alvi faisal-alvi deleted the Enhancement/php8-compat branch April 16, 2022 06:52
@faisal-alvi faisal-alvi modified the milestones: Future Release, 2.3.0 Jun 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement New feature or request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants