Skip to content

Upgrade utopia-php/fetch from 0.4 to 0.5#225

Merged
ChiragAgg5k merged 2 commits intomainfrom
feat/upgrade-fetch-0.5
Mar 19, 2026
Merged

Upgrade utopia-php/fetch from 0.4 to 0.5#225
ChiragAgg5k merged 2 commits intomainfrom
feat/upgrade-fetch-0.5

Conversation

@ChiragAgg5k
Copy link
Member

Summary

  • Upgrades utopia-php/fetch from 0.4.2 to 0.5.1
  • Fixes breaking change: timeout units changed from seconds to milliseconds in 0.5
    • Updated setTimeout(60)setTimeout(60000) in test client

Breaking changes in fetch 0.5

  • Timeout units: setTimeout() and setConnectTimeout() now use milliseconds instead of seconds
  • $body parameter: fetch() now accepts array|string|null (was ?array) — backward compatible
  • New optional params: $timeoutMs and $connectTimeoutMs added to fetch() for per-request overrides
  • PHP requirement: Bumped from 8.0 to 8.1

Test plan

  • Verify e2e tests pass with updated timeout value
  • Confirm no other usages of fetch library setTimeout/setConnectTimeout exist in codebase

Timeout units changed from seconds to milliseconds in 0.5.
Updated test client setTimeout(60) to setTimeout(60000).
- Remove redundant null coalescing on System::getEnv with non-null default
- Break PHPStan type narrowing for file_exists inside async closure
@ChiragAgg5k ChiragAgg5k merged commit 97176c3 into main Mar 19, 2026
6 checks passed
@ChiragAgg5k ChiragAgg5k deleted the feat/upgrade-fetch-0.5 branch March 19, 2026 06:20
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.

2 participants