Skip to content

Require PHP 8.5.12 - #24

Merged
decim92 merged 1 commit into
mainfrom
cursor/php-8-5-12-5590
Oct 22, 2026
Merged

decim92 merged 1 commit into
mainfrom
cursor/php-8-5-12-5590

Conversation

@alejouribesanchez

Copy link
Copy Markdown
Collaborator

Summary

Moves the PHP SDK onto PHP 8.5.12, the current 8.5 security release.

  • Composer now requires php: >=8.5.12. The README badge and API coverage note match that minimum.
  • Pull request and main workflows install 8.5.12 and publish coverage badges from that job.
  • The dev image is php:8.5.12-cli-bookworm with Xdebug 3.5.3. The image build checks that PHP_VERSION is exactly 8.5.12 and that curl, mbstring, fileinfo, dom, and Xdebug are loaded.
  • Nullable parameters that were implicit (Type $name = null) are now explicit (?Type $name = null). Call sites are unchanged.
  • tests/ClientCoverageTest.php no longer calls ReflectionMethod::setAccessible(), which PHP 8.5 deprecates.

Test plan

  • composer validate --strict on PHP 8.5.12
  • ./vendor/bin/phpunit --display-all-issues on PHP 8.5.12 with Xdebug 3.5.3: 179 tests, 676 assertions, no deprecations
  • CI on 8.5.12 via shivammathur/setup-php
  • Dev image build (php:8.5.12-cli-bookworm) was not run in this environment (no Docker daemon)

Slack Thread

Open in Web Open in Cursor 

Require PHP 8.5.12, run CI on that release, and base the dev
image on the official 8.5.12 CLI image. Mark nullable parameters
explicitly and drop ReflectionMethod::setAccessible(), which
PHP 8.5 deprecates.

Co-authored-by: Alejandro Uribe Sánchez <alejouribesanchez@gmail.com>
@alejouribesanchez
alejouribesanchez marked this pull request as ready for review October 22, 2026 16:23
@decim92
decim92 merged commit 4dab385 into main Oct 22, 2026
1 check passed
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.

3 participants