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

Explicitly declare nullable types to fix deprecation in PHP 8.4 #269

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

xPaw
Copy link

@xPaw xPaw commented Jan 2, 2025

PHP 8.4 deprecates implicitly nullable types.

You get a deprecation warning like so:

Cloudflare\API\Endpoints\Zones::cachePurge(): Implicitly marking parameter $hosts as nullable is deprecated, the explicit nullable type must be used instead in src/Endpoints/Zones.php:246

Nullable types are available since 7.1.0. There is CI action for PHP 7.0, but the composer requires has "php": ">=7.2.5"

@xPaw
Copy link
Author

xPaw commented Jan 7, 2025

@jacobbednarz can you take a look? an easy fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant