Skip to content

chore: bump utopia-php/cache to ^3.0#104

Merged
loks0n merged 2 commits into
mainfrom
chore/bump-cache-3
May 17, 2026
Merged

chore: bump utopia-php/cache to ^3.0#104
loks0n merged 2 commits into
mainfrom
chore/bump-cache-3

Conversation

@loks0n
Copy link
Copy Markdown
Contributor

@loks0n loks0n commented May 17, 2026

Summary

  • Bump utopia-php/cache constraint from ^2.0 to ^3.0.

Breaking changes review

The 3.0 release (PR #71) extracted retry methods (setMaxRetries, setRetryDelay, getMaxRetries, getRetryDelay) and the MIN_RETRIES/MAX_RETRIES constants off the base Adapter interface into a new Feature\Retryable interface. This repo only calls Cache::load() and Cache::save() (in src/VCS/Adapter/Git/GitHub.php), whose signatures are unchanged — so no code changes are required.

Test plan

  • composer install
  • composer test

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps Bot commented May 17, 2026

Greptile Summary

This PR bumps the utopia-php/cache dependency from ^2.0 to ^3.0, picking up the 3.0 refactor that moved retry-related methods into a separate Feature\Retryable interface. No source-code changes are needed since only Cache::load() and Cache::save() are used in this repo.

  • The version constraint in composer.json and the resolved entry in composer.lock are both updated to 3.0.0.
  • utopia-php/cache 3.0.0 raises its own PHP requirement to >=8.3, but the project's declared minimum remains >=8.2, creating a platform conflict for consumers on PHP 8.2.

Confidence Score: 4/5

Safe to merge after updating the declared PHP minimum to >=8.3 to match the transitive dependency.

The new utopia-php/cache 3.0.0 requires PHP >=8.3, but this package still advertises PHP >=8.2. Any consumer running PHP 8.2 will hit a platform conflict on install. The fix is a one-line change to composer.json.

composer.json — the PHP platform constraint needs to be updated from >=8.2 to >=8.3.

Important Files Changed

Filename Overview
composer.json Bumps utopia-php/cache constraint to ^3.0, but the project's declared PHP minimum (>=8.2) is now lower than the transitive dependency's requirement (>=8.3), causing a platform conflict for PHP 8.2 consumers.
composer.lock Lock file correctly updated to utopia-php/cache 3.0.0 with new git reference; no other package versions changed.

Reviews (2): Last reviewed commit: "chore: update composer.lock for cache 3...." | Re-trigger Greptile

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Comment thread composer.json
@@ -29,7 +29,7 @@
"require": {
"php": ">=8.2",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 The new utopia-php/cache 3.0.0 declares "php": ">=8.3" in its own composer.json (visible in the lock file diff), but this project still advertises "php": ">=8.2". A consumer running PHP 8.2 will get a dependency-resolution conflict when they composer require utopia-php/vcs, because Composer will refuse to install a transitive dependency whose platform requirement is not satisfied. The minimum PHP version for this package should be raised to match.

Suggested change
"php": ">=8.2",
"php": ">=8.3",

@loks0n loks0n merged commit 49d7751 into main May 17, 2026
3 of 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