Skip to content

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

@SindlaXYZ
Copy link

Can someone review this pull request? My Sentry is filling up with errors because of these nullable types.

@xPaw
Copy link
Author

xPaw commented Feb 6, 2025

For now you can require this pull request with a commit hash:
composer require cloudflare/sdk:dev-master#541fb4e2c9942a3b660bb6a0db676f7c851c144c

@rixafy
Copy link

rixafy commented Mar 23, 2025

@jacobbednarz would you please merge this and tag new version?
The library is not compatible with PHP 8.4 as of this moment, it's been 4 months since PHP 8.4 was released.

@simPod
Copy link

simPod commented Oct 29, 2025

Is anyone using any alternative library? This one seems abandoned.

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.

4 participants