chore: bump utopia-php/http to 2.0.0-rc16#240
Conversation
rc15 split PSR-7 into a separate package (utopia-php/psr7) and rc16 replaced the Utopia HTTP request with a PSR-7 ServerRequest. Update the executor to consume the new request type: - Type-hint request actions with Psr\Http\Message\ServerRequestInterface instead of the removed Utopia\Http\Request. - PSR getHeaderLine() takes only a name and returns '' when absent, so apply header defaults explicitly (?: fallback) rather than passing a second argument. Response, Http, and Server APIs are unchanged. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Greptile SummaryThis PR migrates
Confidence Score: 5/5Safe to merge — the changes are a straightforward mechanical migration with no logic alterations and all three header call sites behave identically under PSR-7's empty-string-on-absent contract. All three getHeaderLine conversions are correct: PSR-7 returns '' for absent headers, so the ?: fallbacks exactly replicate the previous default-argument behaviour. The new utopia-php/psr7 transitive dependency is minimal and well-scoped. The project's PHP 8.5 floor already exceeds the library's new 8.4 minimum, and the author reports clean runs of PHPStan, Pint, Rector, and the unit test suite. No files require special attention. Important Files Changed
Reviews (1): Last reviewed commit: "chore: bump utopia-php/http to 2.0.0-rc1..." | Re-trigger Greptile |
What
Bumps
utopia-php/httpfrom2.0.0-rc5to2.0.0-rc16.The two breaking releases in between:
utopia-php/psr7, pulled in transitively).ServerRequest.Changes
Psr\Http\Message\ServerRequestInterfaceinstead of the now-removedUtopia\Http\Request.getHeaderLine()takes only a name and returns''when the header is absent, so header defaults are applied explicitly via?:instead of passing a second argument:x-executor-response-format→ falls back to0.10.0accept→ falls back tomultipart/form-dataauthorization→ PSR empty-string default (unchanged behavior)Response,Http, andServerAPIs are unchanged.Verification
composer analyze(PHPStan) — no errorscomposer format:check(Pint) — passedcomposer refactor:check(Rector) — cleancomposer test:unit— 12 tests, 57 assertions/v1/healthreturns 200, and the auth flow (which exercises the changed PSRgetHeaderLine) correctly returns 200 for a valid key and 401 for missing/invalid keys.Why
Unblocks the corresponding
utopia-php/httprc16 migration inappwrite-labs/edge, which currently can't move past rc5 because this package pins http to exactly rc5.🤖 Generated with Claude Code