Fix Action-Scheduler PHP 8.4 Deprecations - Bump PHP minimum to 7.1 #1781
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
With PHP 8.4 I get a lot of deprecation messages like
PHP Deprecated: ActionScheduler_QueueCleaner::__construct(): Implicitly marking parameter $store as nullable is deprecated, the explicit nullable type must be used instead in /wp-content/plugins/stream/vendor/woocommerce/action-scheduler/classes/ActionScheduler_QueueCleaner.php on line 35
It was fixed in Action-Scheduler 3.9.0: https://github.com/woocommerce/action-scheduler/releases/tag/3.9.0
Action-Scheduler 3.9.0 requires PHP 7.1.
Changes
This pull request updates the minimum required PHP version for the project from 7.0 to 7.1 and bumps the required version of the
woocommerce/action-scheduler
dependency. These changes help ensure compatibility with newer PHP features and maintain dependency security.PHP version requirement updates:
composer.json
and theWP_STREAM_MIN_PHP_VERSION
constant instream.php
. [1] [2]Requires PHP: 7.1
header to the plugin filestream.php
for clearer documentation and compatibility checks.Dependency updates:
woocommerce/action-scheduler
from^3.8
to^3.9
incomposer.json
.Checklist
contributing.md
).Release Changelog