Skip to content

chore: allow utopia-php/cache 2.0.* alongside 1.0.*#100

Closed
ChiragAgg5k wants to merge 1 commit into
mainfrom
chore-bump-cache-2
Closed

chore: allow utopia-php/cache 2.0.* alongside 1.0.*#100
ChiragAgg5k wants to merge 1 commit into
mainfrom
chore-bump-cache-2

Conversation

@ChiragAgg5k
Copy link
Copy Markdown
Member

What

Widen the utopia-php/cache constraint from 1.0.* to 1.0.* || 2.0.*.

Why

utopia-php/cache 2.0.0 was released (release notes). It bumps the PHP floor to >=8.2, adds a CircuitBreaker adapter and a Feature\Telemetry propagation contract — all additive. The Utopia\Cache\Cache type used in the Git adapters here is unchanged.

This package's PHP floor remains >=8.0; allowing both 1.0.* and 2.0.* lets Composer pick cache 1.x on PHP 8.0/8.1 and cache 2.x on PHP 8.2+. Downstream consumers (e.g. appwrite/appwrite, which is on PHP 8.4+) can then pick up cache 2.0.

Test plan

  • CI passes against both cache 1.0.x and 2.0.x

@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps Bot commented May 12, 2026

Greptile Summary

This PR widens the utopia-php/cache version constraint in composer.json from 1.0.* to 1.0.* || 2.0.*, allowing Composer to resolve cache 2.x on PHP 8.2+ while still falling back to cache 1.x on PHP 8.0/8.1.

  • The one-line constraint change is correct; utopia-php/cache 2.0.0's PHP floor (>=8.2) means Composer will naturally select the appropriate version for the runtime.
  • The existing CI workflow (tests.yml) runs against a single fixed environment and does not include a matrix to validate behavior against both cache 1.x and 2.x explicitly, so the test plan item "CI passes against both cache 1.0.x and 2.0.x" is not yet automated.

Confidence Score: 5/5

Safe to merge — the single-line constraint change is additive and does not affect any runtime code paths.

The change only widens a version range in composer.json. The Utopia\Cache\Cache interface used by the Git adapters is unchanged between cache 1.x and 2.x, and Composer's platform constraints will naturally resolve cache 1.x on PHP 8.0/8.1 and allow cache 2.x on PHP 8.2+. No application logic is touched.

No files require special attention.

Important Files Changed

Filename Overview
composer.json Widens utopia-php/cache constraint from 1.0.* to `1.0.*

Reviews (1): Last reviewed commit: "chore: allow utopia-php/cache 2.0.* alon..." | Re-trigger Greptile

@ChiragAgg5k ChiragAgg5k deleted the chore-bump-cache-2 branch May 12, 2026 12:11
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