You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.*
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Widen the
utopia-php/cacheconstraint from1.0.*to1.0.* || 2.0.*.Why
utopia-php/cache2.0.0 was released (release notes). It bumps the PHP floor to>=8.2, adds aCircuitBreakeradapter and aFeature\Telemetrypropagation contract — all additive. TheUtopia\Cache\Cachetype used in the Git adapters here is unchanged.This package's PHP floor remains
>=8.0; allowing both1.0.*and2.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