Skip to content

Add PHP 8 compatibility #3

Closed

Description

@jeffpaul

The plugin currently does not set a "Requires PHP", so we'll want to work on testing and adding compatibility for PHP 8 so that we can declare that more formally within the code.

Activity

  1. added
    type:enhancement
    on May 29, 2024
  2. added this to the 1.6.0 milestone on May 29, 2024
  3. dkotter commented on May 30, 2024

    @dkotter
    Contributor

    My recommendation here would be the following:

    1. Setup a local environment running PHP 7.4 and run through all plugin functionality, both in the admin and front-end. Take note of any warnings, errors, deprecation notices, etc that get logged and fix those
    2. Update that environment to PHP 8.3 and run through all tests again, making note of any new warnings, errors, deprecations, etc that get logged, fixing those

    A good majority of users are still on PHP 7.4 so I think it's worth the small amount of extra effort to test on 7.4 and 8.3. In addition, while we run PHPCompat on most of our plugins it doesn't actually support PHP 8.x+ yet, so that's nice to add but worth noting that we still need to run manually testing to verify PHP 8.x+ compat.

  4. self-assigned this
    on May 30, 2024
  5. dkotter commented on Jun 10, 2024

    @dkotter
    Contributor

    Talking with Mailchimp today, we are going to set PHP 7.0 as our minimum. The hope is to fairly quickly bump that to 7.4 but wanted to have smaller bumps rather than one large one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

type:enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions