Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"ext-mbstring": "*",
"utopia-php/framework": "0.33.*",
"utopia-php/cache": "0.13.*",
"utopia-php/pools": "0.8.*",
"utopia-php/pools": "1.*",
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🌐 Web query:

utopia-php/pools v1 PHP requirements breaking changes

💡 Result:

Summary: utopia-php/pools (v1) raised its minimum PHP requirement, so upgrading to v1 can break projects running older PHP. Packagist shows recent utopia packages (including pools) requiring PHP 8.3 (older Utopia packages at times require >=8.1/8.0), so you should expect a minimum of PHP 8.3 for latest releases — update your PHP or pin to an older pools release (e.g. 0.x) to avoid the break. [1]

References:

  • utopia-php/pools package info (Packagist) — shows current package requirements. [1]

🌐 Web query:

utopia-php/pools 1.0 release notes changelog

💡 Result:

I couldn't find a 1.0 release for utopia-php/pools. The package on Packagist shows current versions under 1.0 (latest listed 0.8.2). [1][2]

If you want, I can search the repository releases/tags on GitHub and return any CHANGELOG/Release notes (or confirm if a 1.0 tag exists).


🌐 Web query:

utopia-php/pools Stack adapter constructor breaking changes

💡 Result:

Do you want a summary of the breaking change + migration steps, or do you want me to find the exact GitHub/CHANGELOG entry and code examples?


🌐 Web query:

utopia-php/pools GitHub releases tags latest version

💡 Result:

Latest release/tag: 0.8.2 — released April 17, 2025. [1][2]

Sources:

  • Packagist entry for utopia-php/pools (root). [1]
  • Mirror Packagist listing for utopia-php/pools. [2]

🏁 Script executed:

# Check what versions are available via composer/packagist
curl -s "https://repo.packagist.org/p/utopia-php/pools.json" 2>/dev/null | jq '.packages["utopia-php/pools"] | keys | sort' 2>/dev/null || echo "Failed to fetch from Packagist API"

Repository: utopia-php/database

Length of output: 97


🌐 Web query:

site:github.com utopia-php/pools releases v1

💡 Result:

I couldn't find a GitHub release tagged "v1" for utopia-php/pools. The package exists (source: github.com/utopia-php/pools) and the published versions on Packagist / Libraries.io show releases in the 0.x series (latest listed 0.8.2). [1][2]

Sources:

  • Packagist listing for utopia-php/pools (shows package and versions). [1]
  • Libraries.io / Packagist mirror for utopia-php/pools (version history). [2]

Remove or correct the "1.*" constraint—utopia-php/pools v1 does not exist.

The constraint "utopia-php/pools": "1.*" references a non-existent version. The latest published release is 0.8.2; no v1.0 release exists. This constraint will fail immediately during composer install. Use a valid version constraint (e.g., "0.8.*" or "^0.8") or await an actual v1 release from the package maintainers.

🤖 Prompt for AI Agents
In `@composer.json` at line 42, The composer dependency "utopia-php/pools" is
pinned to a non-existent major version "1.*"; update the constraint in
composer.json for the package name "utopia-php/pools" to a valid release (e.g.,
"0.8.*" or "^0.8") so composer install won't fail—replace the "1.*" entry with
the chosen valid constraint and run composer validate/install to verify.

"utopia-php/mongo": "0.11.*"
},
"require-dev": {
Expand Down
33 changes: 17 additions & 16 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion tests/e2e/Adapter/PoolTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
use Utopia\Database\Exception\Duplicate;
use Utopia\Database\Exception\Limit;
use Utopia\Database\PDO;
use Utopia\Pools\Adapter\Stack;
use Utopia\Pools\Pool as UtopiaPool;

class PoolTest extends Base
Expand Down Expand Up @@ -43,7 +44,7 @@ public function getDatabase(): Database
$redis->flushAll();
$cache = new Cache(new RedisAdapter($redis));

$pool = new UtopiaPool('mysql', 10, function () {
$pool = new UtopiaPool(new Stack(), 'mysql', 10, function () {
$dbHost = 'mysql';
$dbPort = '3307';
$dbUser = 'root';
Expand Down