Skip to content

Require ext-curl and ext-json at runtime - #49

Merged
aflanagan merged 1 commit into
masterfrom
declare-curl-json-extensions
Nov 5, 2026
Merged

aflanagan merged 1 commit into
masterfrom
declare-curl-json-extensions

Conversation

@aflanagan

Copy link
Copy Markdown
Contributor

Moves ext-curl into require and adds ext-json there. lib/HttpClient.php calls curl_* and json_encode at runtime, but ext-curl was only listed in require-dev, and ext-json wasn't listed at all.

  • require.php stays >=7.2.5.
  • Verified the library on PHP 7.3 and 7.4 by running the test suite with the previous dev setup (PHPUnit 8.5, AspectMock 3.1): 23 tests OK. It also passes on 8.1 with the current dev setup, and lints and loads cleanly on 8.0.
  • The same library code passed master CI on PHP 7.2 on Nov 3 (aa08f7a).
  • The current dev tooling (AspectMock 5a078a6 and goaop 3.1.1) is development-only and doesn't change the runtime floor.

There is no composer.lock in this repo, and composer validate --strict passes.

@aflanagan
aflanagan merged commit a397cd1 into master Nov 5, 2026
4 checks 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.

1 participant