From 03ebc4857a63bbbdbbeec308900b228cc80587cb Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Sat, 14 Mar 2026 00:49:31 +1300 Subject: [PATCH] fix: pin utopia-php/di and servers to prevent breaking upgrades The composer update pulled in utopia-php/di 0.3.1 which removed the Dependency class, causing fatal errors. Pin to 0.1.0 and servers 0.2.5. Co-Authored-By: Claude Opus 4.6 --- composer.json | 4 +++- composer.lock | 45 +++++++++++++++++++++------------------------ 2 files changed, 24 insertions(+), 25 deletions(-) diff --git a/composer.json b/composer.json index eced5b6387..c74d5681ec 100644 --- a/composer.json +++ b/composer.json @@ -94,7 +94,9 @@ "spomky-labs/otphp": "11.*", "webonyx/graphql-php": "14.11.*", "league/csv": "9.14.*", - "enshrined/svg-sanitize": "0.22.*" + "enshrined/svg-sanitize": "0.22.*", + "utopia-php/di": "0.1.0", + "utopia-php/servers": "0.2.5" }, "require-dev": { "ext-fileinfo": "*", diff --git a/composer.lock b/composer.lock index b86b94a833..9a32d151de 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "91746d74413c360396a1592a348d4d24", + "content-hash": "905187bcd7d187736f407a7e83d21b4e", "packages": [ { "name": "adhocore/jwt", @@ -3953,26 +3953,25 @@ }, { "name": "utopia-php/di", - "version": "0.3.1", + "version": "0.1.0", "source": { "type": "git", "url": "https://github.com/utopia-php/di.git", - "reference": "68873b7267842315d01d82a83b988bae525eab31" + "reference": "22490c95f7ac3898ed1c33f1b1b5dd577305ee31" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/di/zipball/68873b7267842315d01d82a83b988bae525eab31", - "reference": "68873b7267842315d01d82a83b988bae525eab31", + "url": "https://api.github.com/repos/utopia-php/di/zipball/22490c95f7ac3898ed1c33f1b1b5dd577305ee31", + "reference": "22490c95f7ac3898ed1c33f1b1b5dd577305ee31", "shasum": "" }, "require": { - "php": ">=8.2", - "psr/container": "^2.0" + "php": ">=8.2" }, "require-dev": { - "laravel/pint": "^1.27", + "laravel/pint": "^1.2", "phpbench/phpbench": "^1.2", - "phpstan/phpstan": "^2.1", + "phpstan/phpstan": "^1.10", "phpunit/phpunit": "^9.5.25", "swoole/ide-helper": "4.8.3" }, @@ -3989,18 +3988,16 @@ ], "description": "A simple and lite library for managing dependency injections", "keywords": [ - "PSR-11", - "container", - "dependency-injection", - "di", + "framework", + "http", "php", - "utopia" + "upf" ], "support": { "issues": "https://github.com/utopia-php/di/issues", - "source": "https://github.com/utopia-php/di/tree/0.3.1" + "source": "https://github.com/utopia-php/di/tree/0.1.0" }, - "time": "2026-03-13T05:47:23+00:00" + "time": "2024-08-08T14:35:19+00:00" }, { "name": "utopia-php/dns", @@ -4911,21 +4908,21 @@ }, { "name": "utopia-php/servers", - "version": "0.2.6", + "version": "0.2.5", "source": { "type": "git", "url": "https://github.com/utopia-php/servers.git", - "reference": "235be31200df9437fc96a1c270ffef4c64fafe52" + "reference": "4770e879a90685af4ba14e7e5d95d0a17c7fdf03" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/servers/zipball/235be31200df9437fc96a1c270ffef4c64fafe52", - "reference": "235be31200df9437fc96a1c270ffef4c64fafe52", + "url": "https://api.github.com/repos/utopia-php/servers/zipball/4770e879a90685af4ba14e7e5d95d0a17c7fdf03", + "reference": "4770e879a90685af4ba14e7e5d95d0a17c7fdf03", "shasum": "" }, "require": { - "php": ">=8.2", - "utopia-php/di": "0.3.*", + "php": ">=8.0", + "utopia-php/di": "0.1.*", "utopia-php/validators": "0.*" }, "require-dev": { @@ -4959,9 +4956,9 @@ ], "support": { "issues": "https://github.com/utopia-php/servers/issues", - "source": "https://github.com/utopia-php/servers/tree/0.2.6" + "source": "https://github.com/utopia-php/servers/tree/0.2.5" }, - "time": "2026-03-13T11:31:42+00:00" + "time": "2026-02-10T04:21:53+00:00" }, { "name": "utopia-php/span",