From 208438320e7913fc56a6d4f008b978394ea5914d Mon Sep 17 00:00:00 2001 From: fogelito Date: Tue, 11 Aug 2026 09:19:08 +0300 Subject: [PATCH 1/4] lock --- composer.lock | 289 +++++++++++++++++++++++++------------------------- 1 file changed, 147 insertions(+), 142 deletions(-) diff --git a/composer.lock b/composer.lock index 662ebc6504..4fa0167fda 100644 --- a/composer.lock +++ b/composer.lock @@ -157,6 +157,7 @@ "issues": "https://github.com/appwrite/php-clamav/issues", "source": "https://github.com/appwrite/php-clamav/tree/2.0.0" }, + "abandoned": true, "time": "2023-02-24T09:50:42+00:00" }, { @@ -2368,16 +2369,16 @@ }, { "name": "symfony/http-client", - "version": "v7.4.15", + "version": "v7.4.16", "source": { "type": "git", "url": "https://github.com/symfony/http-client.git", - "reference": "817bb83ef06717f67ab72a3f03e3b63fbe138de1" + "reference": "c513ed0ba5d1784a6b55fc84190dbe4451b12f41" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-client/zipball/817bb83ef06717f67ab72a3f03e3b63fbe138de1", - "reference": "817bb83ef06717f67ab72a3f03e3b63fbe138de1", + "url": "https://api.github.com/repos/symfony/http-client/zipball/c513ed0ba5d1784a6b55fc84190dbe4451b12f41", + "reference": "c513ed0ba5d1784a6b55fc84190dbe4451b12f41", "shasum": "" }, "require": { @@ -2445,7 +2446,7 @@ "http" ], "support": { - "source": "https://github.com/symfony/http-client/tree/v7.4.15" + "source": "https://github.com/symfony/http-client/tree/v7.4.16" }, "funding": [ { @@ -2465,7 +2466,7 @@ "type": "tidelift" } ], - "time": "2026-07-29T07:12:33+00:00" + "time": "2026-07-29T16:20:51+00:00" }, { "name": "symfony/http-client-contracts", @@ -3271,33 +3272,32 @@ }, { "name": "utopia-php/cache", - "version": "4.0.0", + "version": "4.0.1", "source": { "type": "git", "url": "https://github.com/utopia-php/cache.git", - "reference": "2ab50440114a7699b8a017ee2ecd8bcd9d54ac5e" + "reference": "6f8cb03a5cb76e95b95a05103cd14cf782b8060f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/cache/zipball/2ab50440114a7699b8a017ee2ecd8bcd9d54ac5e", - "reference": "2ab50440114a7699b8a017ee2ecd8bcd9d54ac5e", + "url": "https://api.github.com/repos/utopia-php/cache/zipball/6f8cb03a5cb76e95b95a05103cd14cf782b8060f", + "reference": "6f8cb03a5cb76e95b95a05103cd14cf782b8060f", "shasum": "" }, "require": { "ext-json": "*", - "ext-memcached": "*", - "ext-redis": "*", - "php": ">=8.3", - "utopia-php/circuit-breaker": "0.3.*", - "utopia-php/pools": "2.*", - "utopia-php/telemetry": "*" + "php": ">=8.4", + "utopia-php/circuit-breaker": "^0.3", + "utopia-php/pools": "^2.0", + "utopia-php/telemetry": "^0.4" }, "require-dev": { - "laravel/pint": "1.2.*", - "phpstan/phpstan": "^1.12", - "phpunit/phpunit": "^9.3", - "swoole/ide-helper": "^6.0", - "vimeo/psalm": "4.13.1" + "swoole/ide-helper": "^6.0" + }, + "suggest": { + "ext-memcached": "Required for the Memcached and Hazelcast adapters.", + "ext-redis": "Required for the Redis, RedisCluster and Sharding adapters.", + "ext-swoole": "Required for the multiplexing Redis adapter (>=6.0)." }, "type": "library", "autoload": { @@ -3309,6 +3309,12 @@ "license": [ "MIT" ], + "authors": [ + { + "name": "Team Appwrite", + "email": "team@appwrite.io" + } + ], "description": "A simple cache library to manage application cache storing, loading and purging", "keywords": [ "cache", @@ -3319,32 +3325,29 @@ ], "support": { "issues": "https://github.com/utopia-php/cache/issues", - "source": "https://github.com/utopia-php/cache/tree/4.0.0" + "source": "https://github.com/utopia-php/cache/tree/4.0.1" }, - "time": "2026-07-31T13:04:45+00:00" + "time": "2026-08-04T00:06:02+00:00" }, { "name": "utopia-php/circuit-breaker", - "version": "0.3.1", + "version": "0.3.2", "source": { "type": "git", "url": "https://github.com/utopia-php/circuit-breaker.git", - "reference": "db5d77f6c99ebce2ee81bd8ed4ae8f41bd2b0828" + "reference": "5fbc3802471b0d1b4260bd9f5544514e6929b481" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/circuit-breaker/zipball/db5d77f6c99ebce2ee81bd8ed4ae8f41bd2b0828", - "reference": "db5d77f6c99ebce2ee81bd8ed4ae8f41bd2b0828", + "url": "https://api.github.com/repos/utopia-php/circuit-breaker/zipball/5fbc3802471b0d1b4260bd9f5544514e6929b481", + "reference": "5fbc3802471b0d1b4260bd9f5544514e6929b481", "shasum": "" }, "require": { "php": ">=8.2" }, "require-dev": { - "laravel/pint": "^1.29", - "phpstan/phpstan": "^2.1", - "phpunit/phpunit": "^10.0", - "utopia-php/telemetry": "^0.4" + "utopia-php/telemetry": "^0.4.6" }, "suggest": { "ext-opentelemetry": "Required by utopia-php/telemetry when using OpenTelemetry metrics.", @@ -3356,7 +3359,7 @@ "type": "library", "autoload": { "psr-4": { - "Utopia\\CircuitBreaker\\": "src/CircuitBreaker" + "Utopia\\CircuitBreaker\\": "src/CircuitBreaker/" } }, "notification-url": "https://packagist.org/downloads/", @@ -3381,9 +3384,9 @@ ], "support": { "issues": "https://github.com/utopia-php/circuit-breaker/issues", - "source": "https://github.com/utopia-php/circuit-breaker/tree/0.3.1" + "source": "https://github.com/utopia-php/circuit-breaker/tree/0.3.2" }, - "time": "2026-05-29T12:12:23+00:00" + "time": "2026-08-05T18:07:20+00:00" }, { "name": "utopia-php/cli", @@ -3635,16 +3638,16 @@ }, { "name": "utopia-php/database", - "version": "7.0.0", + "version": "7.1.1", "source": { "type": "git", "url": "https://github.com/utopia-php/database.git", - "reference": "40185b100f92c402a189d6f4f0962c63bbe5726b" + "reference": "80b5b3d85556d9d17d882e1bb972d239a634ebdd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/database/zipball/40185b100f92c402a189d6f4f0962c63bbe5726b", - "reference": "40185b100f92c402a189d6f4f0962c63bbe5726b", + "url": "https://api.github.com/repos/utopia-php/database/zipball/80b5b3d85556d9d17d882e1bb972d239a634ebdd", + "reference": "80b5b3d85556d9d17d882e1bb972d239a634ebdd", "shasum": "" }, "require": { @@ -3689,9 +3692,9 @@ ], "support": { "issues": "https://github.com/utopia-php/database/issues", - "source": "https://github.com/utopia-php/database/tree/7.0.0" + "source": "https://github.com/utopia-php/database/tree/7.1.1" }, - "time": "2026-07-31T13:33:10+00:00" + "time": "2026-08-09T01:36:59+00:00" }, { "name": "utopia-php/detector", @@ -4055,16 +4058,16 @@ }, { "name": "utopia-php/http", - "version": "2.0.0-rc19", + "version": "2.0.0-rc20", "source": { "type": "git", "url": "https://github.com/utopia-php/http.git", - "reference": "7a9419858c6c612a8d783024ad46740f857e4430" + "reference": "6a1c7fe9305fd5adad9ba97bae3f6a6faca7a711" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/http/zipball/7a9419858c6c612a8d783024ad46740f857e4430", - "reference": "7a9419858c6c612a8d783024ad46740f857e4430", + "url": "https://api.github.com/repos/utopia-php/http/zipball/6a1c7fe9305fd5adad9ba97bae3f6a6faca7a711", + "reference": "6a1c7fe9305fd5adad9ba97bae3f6a6faca7a711", "shasum": "" }, "require": { @@ -4102,9 +4105,9 @@ ], "support": { "issues": "https://github.com/utopia-php/http/issues", - "source": "https://github.com/utopia-php/http/tree/2.0.0-rc19" + "source": "https://github.com/utopia-php/http/tree/2.0.0-rc20" }, - "time": "2026-07-27T07:23:46+00:00" + "time": "2026-08-05T18:37:51+00:00" }, { "name": "utopia-php/image", @@ -4201,16 +4204,16 @@ }, { "name": "utopia-php/lock", - "version": "0.2.3", + "version": "0.2.4", "source": { "type": "git", "url": "https://github.com/utopia-php/lock.git", - "reference": "4eca3784d4c112655faf77adcf0fdbb186650487" + "reference": "49352091b93cc0400eeb2464c2aceb4203da14a3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/lock/zipball/4eca3784d4c112655faf77adcf0fdbb186650487", - "reference": "4eca3784d4c112655faf77adcf0fdbb186650487", + "url": "https://api.github.com/repos/utopia-php/lock/zipball/49352091b93cc0400eeb2464c2aceb4203da14a3", + "reference": "49352091b93cc0400eeb2464c2aceb4203da14a3", "shasum": "" }, "require": { @@ -4243,9 +4246,9 @@ "description": "A simple lock library to coordinate access to shared resources across coroutines, processes and hosts", "support": { "issues": "https://github.com/utopia-php/lock/issues", - "source": "https://github.com/utopia-php/lock/tree/0.2.3" + "source": "https://github.com/utopia-php/lock/tree/0.2.4" }, - "time": "2026-06-26T10:48:18+00:00" + "time": "2026-08-05T09:16:12+00:00" }, { "name": "utopia-php/logger", @@ -4413,16 +4416,16 @@ }, { "name": "utopia-php/mongo", - "version": "1.4.0", + "version": "1.5.1", "source": { "type": "git", "url": "https://github.com/utopia-php/mongo.git", - "reference": "78818fd295f2829aaad5b74c9094e8c6f603550d" + "reference": "3ece830d1d72d2c9f68c656738e285629b5c72a9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/mongo/zipball/78818fd295f2829aaad5b74c9094e8c6f603550d", - "reference": "78818fd295f2829aaad5b74c9094e8c6f603550d", + "url": "https://api.github.com/repos/utopia-php/mongo/zipball/3ece830d1d72d2c9f68c656738e285629b5c72a9", + "reference": "3ece830d1d72d2c9f68c656738e285629b5c72a9", "shasum": "" }, "require": { @@ -4468,22 +4471,22 @@ ], "support": { "issues": "https://github.com/utopia-php/mongo/issues", - "source": "https://github.com/utopia-php/mongo/tree/1.4.0" + "source": "https://github.com/utopia-php/mongo/tree/1.5.1" }, - "time": "2026-07-30T05:24:58+00:00" + "time": "2026-08-02T00:46:11+00:00" }, { "name": "utopia-php/platform", - "version": "1.0.0-rc16", + "version": "1.0.0-rc17", "source": { "type": "git", "url": "https://github.com/utopia-php/platform.git", - "reference": "0d270c05fdeef59b6404addd403dbe0eb0b1c0e1" + "reference": "d05e530794fdc655ed940fa8ab518a66e5cd0924" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/platform/zipball/0d270c05fdeef59b6404addd403dbe0eb0b1c0e1", - "reference": "0d270c05fdeef59b6404addd403dbe0eb0b1c0e1", + "url": "https://api.github.com/repos/utopia-php/platform/zipball/d05e530794fdc655ed940fa8ab518a66e5cd0924", + "reference": "d05e530794fdc655ed940fa8ab518a66e5cd0924", "shasum": "" }, "require": { @@ -4492,7 +4495,7 @@ "php": ">=8.5", "utopia-php/cli": "^0.24", "utopia-php/http": "^2.0@RC", - "utopia-php/queue": "0.23.* || 0.24.* || 1.0.*", + "utopia-php/queue": "0.23.* || 0.24.* || ^1.0.0", "utopia-php/servers": "^0.4" }, "type": "library", @@ -4515,27 +4518,27 @@ ], "support": { "issues": "https://github.com/utopia-php/platform/issues", - "source": "https://github.com/utopia-php/platform/tree/1.0.0-rc16" + "source": "https://github.com/utopia-php/platform/tree/1.0.0-rc17" }, - "time": "2026-08-04T06:38:05+00:00" + "time": "2026-08-04T06:47:02+00:00" }, { "name": "utopia-php/pools", - "version": "2.0.1", + "version": "2.0.2", "source": { "type": "git", "url": "https://github.com/utopia-php/pools.git", - "reference": "48905dac1b8f8050c2e07bdda32a018ca33982fc" + "reference": "86d43fcacd125232c0743e8c22695faf97285cf3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/pools/zipball/48905dac1b8f8050c2e07bdda32a018ca33982fc", - "reference": "48905dac1b8f8050c2e07bdda32a018ca33982fc", + "url": "https://api.github.com/repos/utopia-php/pools/zipball/86d43fcacd125232c0743e8c22695faf97285cf3", + "reference": "86d43fcacd125232c0743e8c22695faf97285cf3", "shasum": "" }, "require": { "php": ">=8.4", - "utopia-php/telemetry": "^0.4" + "utopia-php/telemetry": "^0.4.6" }, "require-dev": { "swoole/ide-helper": "6.*" @@ -4571,9 +4574,9 @@ ], "support": { "issues": "https://github.com/utopia-php/pools/issues", - "source": "https://github.com/utopia-php/pools/tree/2.0.1" + "source": "https://github.com/utopia-php/pools/tree/2.0.2" }, - "time": "2026-07-31T12:19:18+00:00" + "time": "2026-08-05T18:07:20+00:00" }, { "name": "utopia-php/preloader", @@ -4722,16 +4725,16 @@ }, { "name": "utopia-php/queue", - "version": "1.0.1", + "version": "1.1.3", "source": { "type": "git", "url": "https://github.com/utopia-php/queue.git", - "reference": "d7bd6d4b3b17d6d0a46aaf7449285705467efd37" + "reference": "fc32fce2616a56b84923761a77b8f0c8e66e403e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/queue/zipball/d7bd6d4b3b17d6d0a46aaf7449285705467efd37", - "reference": "d7bd6d4b3b17d6d0a46aaf7449285705467efd37", + "url": "https://api.github.com/repos/utopia-php/queue/zipball/fc32fce2616a56b84923761a77b8f0c8e66e403e", + "reference": "fc32fce2616a56b84923761a77b8f0c8e66e403e", "shasum": "" }, "require": { @@ -4780,9 +4783,9 @@ ], "support": { "issues": "https://github.com/utopia-php/queue/issues", - "source": "https://github.com/utopia-php/queue/tree/1.0.1" + "source": "https://github.com/utopia-php/queue/tree/1.1.3" }, - "time": "2026-08-04T08:52:40+00:00" + "time": "2026-08-05T12:34:31+00:00" }, { "name": "utopia-php/registry", @@ -4927,16 +4930,16 @@ }, { "name": "utopia-php/storage", - "version": "4.0.1", + "version": "4.0.2", "source": { "type": "git", "url": "https://github.com/utopia-php/storage.git", - "reference": "9684da5ab161ae9375d4f47541ef825451d69f2a" + "reference": "64a391f5dcf043458868322dfc4d402e4d154c4c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/storage/zipball/9684da5ab161ae9375d4f47541ef825451d69f2a", - "reference": "9684da5ab161ae9375d4f47541ef825451d69f2a", + "url": "https://api.github.com/repos/utopia-php/storage/zipball/64a391f5dcf043458868322dfc4d402e4d154c4c", + "reference": "64a391f5dcf043458868322dfc4d402e4d154c4c", "shasum": "" }, "require": { @@ -4948,7 +4951,7 @@ "psr/http-message": "^1.1 || ^2.0", "utopia-php/client": "0.2.* || 0.3.*", "utopia-php/psr7": "0.2.*", - "utopia-php/telemetry": "^0.4", + "utopia-php/telemetry": "^0.4.6", "utopia-php/validators": "0.3.*" }, "type": "library", @@ -4971,9 +4974,9 @@ ], "support": { "issues": "https://github.com/utopia-php/storage/issues", - "source": "https://github.com/utopia-php/storage/tree/4.0.1" + "source": "https://github.com/utopia-php/storage/tree/4.0.2" }, - "time": "2026-07-31T09:20:57+00:00" + "time": "2026-08-05T18:07:20+00:00" }, { "name": "utopia-php/system", @@ -5028,16 +5031,16 @@ }, { "name": "utopia-php/telemetry", - "version": "0.4.5", + "version": "0.4.6", "source": { "type": "git", "url": "https://github.com/utopia-php/telemetry.git", - "reference": "139943bffcd4f6dd8fb9ed247f946a1d151b006a" + "reference": "f96778a01792c32df0876fe1f38a79b9588445d8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/telemetry/zipball/139943bffcd4f6dd8fb9ed247f946a1d151b006a", - "reference": "139943bffcd4f6dd8fb9ed247f946a1d151b006a", + "url": "https://api.github.com/repos/utopia-php/telemetry/zipball/f96778a01792c32df0876fe1f38a79b9588445d8", + "reference": "f96778a01792c32df0876fe1f38a79b9588445d8", "shasum": "" }, "require": { @@ -5073,9 +5076,9 @@ ], "support": { "issues": "https://github.com/utopia-php/telemetry/issues", - "source": "https://github.com/utopia-php/telemetry/tree/0.4.5" + "source": "https://github.com/utopia-php/telemetry/tree/0.4.6" }, - "time": "2026-07-08T11:07:25+00:00" + "time": "2026-08-05T17:56:48+00:00" }, { "name": "utopia-php/user-agent", @@ -5417,16 +5420,16 @@ "packages-dev": [ { "name": "appwrite/sdk-generator", - "version": "2.10.1", + "version": "2.11.1", "source": { "type": "git", "url": "https://github.com/appwrite/sdk-generator.git", - "reference": "3019e3e939cc5f12a41dab98ded1043423467dd0" + "reference": "4bf377c6b8c4f9620d8e5fd525ab6160bdc95a41" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/3019e3e939cc5f12a41dab98ded1043423467dd0", - "reference": "3019e3e939cc5f12a41dab98ded1043423467dd0", + "url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/4bf377c6b8c4f9620d8e5fd525ab6160bdc95a41", + "reference": "4bf377c6b8c4f9620d8e5fd525ab6160bdc95a41", "shasum": "" }, "require": { @@ -5463,9 +5466,9 @@ "description": "SDK generator for Appwrite APIs across multiple programming languages and platforms", "support": { "issues": "https://github.com/appwrite/sdk-generator/issues", - "source": "https://github.com/appwrite/sdk-generator/tree/2.10.1" + "source": "https://github.com/appwrite/sdk-generator/tree/2.11.1" }, - "time": "2026-08-06T07:56:50+00:00" + "time": "2026-08-10T11:13:18+00:00" }, { "name": "brianium/paratest", @@ -5747,16 +5750,16 @@ }, { "name": "laravel/pint", - "version": "v1.29.3", + "version": "v1.30.5", "source": { "type": "git", "url": "https://github.com/laravel/pint.git", - "reference": "da1d1111a6aa2e082d2a388b194afe1ba0a05d14" + "reference": "fe4148c503a0e266353d61396b79bbf7f35122df" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/pint/zipball/da1d1111a6aa2e082d2a388b194afe1ba0a05d14", - "reference": "da1d1111a6aa2e082d2a388b194afe1ba0a05d14", + "url": "https://api.github.com/repos/laravel/pint/zipball/fe4148c503a0e266353d61396b79bbf7f35122df", + "reference": "fe4148c503a0e266353d61396b79bbf7f35122df", "shasum": "" }, "require": { @@ -5764,17 +5767,19 @@ "ext-mbstring": "*", "ext-tokenizer": "*", "ext-xml": "*", - "php": "^8.2.0" + "php": "^8.3.0" }, "require-dev": { - "friendsofphp/php-cs-fixer": "^3.95.8", - "illuminate/view": "^12.62.0", + "composer/semver": "^3.4.4", + "friendsofphp/php-cs-fixer": "^3.95.18", + "illuminate/view": "^13.24.0", "larastan/larastan": "^3.10.0", - "laravel-zero/framework": "^12.1.0", + "laravel-zero/framework": "^13.0.0", "laravel/agent-detector": "^2.0.2", + "laravel/prompts": "^0.3.22", "mockery/mockery": "^1.6.12", "nunomaduro/termwind": "^2.4.0", - "pestphp/pest": "^3.8.6" + "pestphp/pest": "^4.7.8" }, "bin": [ "builds/pint" @@ -5811,7 +5816,7 @@ "issues": "https://github.com/laravel/pint/issues", "source": "https://github.com/laravel/pint" }, - "time": "2026-06-16T15:34:04+00:00" + "time": "2026-08-10T15:35:50+00:00" }, { "name": "matthiasmullie/minify", @@ -6173,11 +6178,11 @@ }, { "name": "phpstan/phpstan", - "version": "2.2.6", + "version": "2.2.8", "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/a6e9b5a9420f6109c091e87d82683bd1a80b87ed", - "reference": "a6e9b5a9420f6109c091e87d82683bd1a80b87ed", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/e285254e60f33c21902efef4a926ca0987c06804", + "reference": "e285254e60f33c21902efef4a926ca0987c06804", "shasum": "" }, "require": { @@ -6233,7 +6238,7 @@ "type": "github" } ], - "time": "2026-07-26T21:22:49+00:00" + "time": "2026-08-04T22:21:45+00:00" }, { "name": "phpunit/php-code-coverage", @@ -6582,16 +6587,16 @@ }, { "name": "phpunit/phpunit", - "version": "12.5.32", + "version": "12.5.33", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "c02591dd7840ed124a98d7770753329ad28e9f8f" + "reference": "b98e028a26c5c5ba7e4a54be96ccf35f2914d184" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/c02591dd7840ed124a98d7770753329ad28e9f8f", - "reference": "c02591dd7840ed124a98d7770753329ad28e9f8f", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/b98e028a26c5c5ba7e4a54be96ccf35f2914d184", + "reference": "b98e028a26c5c5ba7e4a54be96ccf35f2914d184", "shasum": "" }, "require": { @@ -6660,7 +6665,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/12.5.32" + "source": "https://github.com/sebastianbergmann/phpunit/tree/12.5.33" }, "funding": [ { @@ -6668,20 +6673,20 @@ "type": "other" } ], - "time": "2026-07-25T06:54:13+00:00" + "time": "2026-07-28T13:58:09+00:00" }, { "name": "rector/rector", - "version": "2.5.8", + "version": "2.6.1", "source": { "type": "git", "url": "https://github.com/rectorphp/rector.git", - "reference": "861c77fd2a6d45317a401f4e0b617f947e8b6f96" + "reference": "b8e68f058bca43e01a2e1caa51ef022d6551ed95" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/rectorphp/rector/zipball/861c77fd2a6d45317a401f4e0b617f947e8b6f96", - "reference": "861c77fd2a6d45317a401f4e0b617f947e8b6f96", + "url": "https://api.github.com/repos/rectorphp/rector/zipball/b8e68f058bca43e01a2e1caa51ef022d6551ed95", + "reference": "b8e68f058bca43e01a2e1caa51ef022d6551ed95", "shasum": "" }, "require": { @@ -6720,7 +6725,7 @@ ], "support": { "issues": "https://github.com/rectorphp/rector/issues", - "source": "https://github.com/rectorphp/rector/tree/2.5.8" + "source": "https://github.com/rectorphp/rector/tree/2.6.1" }, "funding": [ { @@ -6728,7 +6733,7 @@ "type": "github" } ], - "time": "2026-07-27T06:19:16+00:00" + "time": "2026-08-03T17:30:34+00:00" }, { "name": "sebastian/cli-parser", @@ -7725,16 +7730,16 @@ }, { "name": "symfony/console", - "version": "v8.1.1", + "version": "v8.1.4", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "b711a8ab808b6c074c6b8caef70d0fd8d6b6d07d" + "reference": "68efa2ebfd9a362951eb5a8b09fd177c66ddec24" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/b711a8ab808b6c074c6b8caef70d0fd8d6b6d07d", - "reference": "b711a8ab808b6c074c6b8caef70d0fd8d6b6d07d", + "url": "https://api.github.com/repos/symfony/console/zipball/68efa2ebfd9a362951eb5a8b09fd177c66ddec24", + "reference": "68efa2ebfd9a362951eb5a8b09fd177c66ddec24", "shasum": "" }, "require": { @@ -7801,7 +7806,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v8.1.1" + "source": "https://github.com/symfony/console/tree/v8.1.4" }, "funding": [ { @@ -7821,7 +7826,7 @@ "type": "tidelift" } ], - "time": "2026-06-16T12:55:20+00:00" + "time": "2026-07-31T12:43:13+00:00" }, { "name": "symfony/polyfill-ctype", @@ -7908,16 +7913,16 @@ }, { "name": "symfony/polyfill-intl-grapheme", - "version": "v1.38.1", + "version": "v1.41.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-grapheme.git", - "reference": "e9247d281d694a5120554d9afaf54e070e88a603" + "reference": "bb899c1db0aa8127dc3afe8cda4a67eb24915f8d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/e9247d281d694a5120554d9afaf54e070e88a603", - "reference": "e9247d281d694a5120554d9afaf54e070e88a603", + "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/bb899c1db0aa8127dc3afe8cda4a67eb24915f8d", + "reference": "bb899c1db0aa8127dc3afe8cda4a67eb24915f8d", "shasum": "" }, "require": { @@ -7966,7 +7971,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.38.1" + "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.41.0" }, "funding": [ { @@ -7986,7 +7991,7 @@ "type": "tidelift" } ], - "time": "2026-05-26T05:58:03+00:00" + "time": "2026-07-28T08:25:59+00:00" }, { "name": "symfony/polyfill-intl-normalizer", @@ -8140,16 +8145,16 @@ }, { "name": "symfony/string", - "version": "v8.1.0", + "version": "v8.1.2", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "afd5944f4005862d961efb85c8bbd5c523c4e3c9" + "reference": "286a76b7255e5cc4bf0101a0bc5388ecf1c38ccc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/afd5944f4005862d961efb85c8bbd5c523c4e3c9", - "reference": "afd5944f4005862d961efb85c8bbd5c523c4e3c9", + "url": "https://api.github.com/repos/symfony/string/zipball/286a76b7255e5cc4bf0101a0bc5388ecf1c38ccc", + "reference": "286a76b7255e5cc4bf0101a0bc5388ecf1c38ccc", "shasum": "" }, "require": { @@ -8206,7 +8211,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v8.1.0" + "source": "https://github.com/symfony/string/tree/v8.1.2" }, "funding": [ { @@ -8226,7 +8231,7 @@ "type": "tidelift" } ], - "time": "2026-05-29T05:06:50+00:00" + "time": "2026-07-28T07:35:25+00:00" }, { "name": "textalk/websocket", @@ -8434,5 +8439,5 @@ "platform-dev": { "ext-fileinfo": "*" }, - "plugin-api-version": "2.9.0" + "plugin-api-version": "2.6.0" } From 5b53216f8ca16fe1d647f5f40b811c713eee3660 Mon Sep 17 00:00:00 2001 From: fogelito Date: Tue, 11 Aug 2026 09:21:27 +0300 Subject: [PATCH 2/4] lock --- composer.lock | 117 ++++++++++++++++++++++++++------------------------ 1 file changed, 60 insertions(+), 57 deletions(-) diff --git a/composer.lock b/composer.lock index fb6418cffd..f960ddbd42 100644 --- a/composer.lock +++ b/composer.lock @@ -157,6 +157,7 @@ "issues": "https://github.com/appwrite/php-clamav/issues", "source": "https://github.com/appwrite/php-clamav/tree/2.0.0" }, + "abandoned": true, "time": "2023-02-24T09:50:42+00:00" }, { @@ -3637,16 +3638,16 @@ }, { "name": "utopia-php/database", - "version": "7.1.2", + "version": "7.1.3", "source": { "type": "git", "url": "https://github.com/utopia-php/database.git", - "reference": "9eed1f1ed7da154ca7356c5f051bbc192e7b3c73" + "reference": "ce4e14e11cf8f9e6897015d5a7f8bb44a4b74949" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/database/zipball/9eed1f1ed7da154ca7356c5f051bbc192e7b3c73", - "reference": "9eed1f1ed7da154ca7356c5f051bbc192e7b3c73", + "url": "https://api.github.com/repos/utopia-php/database/zipball/ce4e14e11cf8f9e6897015d5a7f8bb44a4b74949", + "reference": "ce4e14e11cf8f9e6897015d5a7f8bb44a4b74949", "shasum": "" }, "require": { @@ -3691,9 +3692,9 @@ ], "support": { "issues": "https://github.com/utopia-php/database/issues", - "source": "https://github.com/utopia-php/database/tree/7.1.2" + "source": "https://github.com/utopia-php/database/tree/7.1.3" }, - "time": "2026-08-10T04:39:43+00:00" + "time": "2026-08-10T12:17:57+00:00" }, { "name": "utopia-php/detector", @@ -5419,16 +5420,16 @@ "packages-dev": [ { "name": "appwrite/sdk-generator", - "version": "2.10.1", + "version": "2.11.1", "source": { "type": "git", "url": "https://github.com/appwrite/sdk-generator.git", - "reference": "3019e3e939cc5f12a41dab98ded1043423467dd0" + "reference": "4bf377c6b8c4f9620d8e5fd525ab6160bdc95a41" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/3019e3e939cc5f12a41dab98ded1043423467dd0", - "reference": "3019e3e939cc5f12a41dab98ded1043423467dd0", + "url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/4bf377c6b8c4f9620d8e5fd525ab6160bdc95a41", + "reference": "4bf377c6b8c4f9620d8e5fd525ab6160bdc95a41", "shasum": "" }, "require": { @@ -5465,9 +5466,9 @@ "description": "SDK generator for Appwrite APIs across multiple programming languages and platforms", "support": { "issues": "https://github.com/appwrite/sdk-generator/issues", - "source": "https://github.com/appwrite/sdk-generator/tree/2.10.1" + "source": "https://github.com/appwrite/sdk-generator/tree/2.11.1" }, - "time": "2026-08-06T07:56:50+00:00" + "time": "2026-08-10T11:13:18+00:00" }, { "name": "brianium/paratest", @@ -5749,16 +5750,16 @@ }, { "name": "laravel/pint", - "version": "v1.29.3", + "version": "v1.30.5", "source": { "type": "git", "url": "https://github.com/laravel/pint.git", - "reference": "da1d1111a6aa2e082d2a388b194afe1ba0a05d14" + "reference": "fe4148c503a0e266353d61396b79bbf7f35122df" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/pint/zipball/da1d1111a6aa2e082d2a388b194afe1ba0a05d14", - "reference": "da1d1111a6aa2e082d2a388b194afe1ba0a05d14", + "url": "https://api.github.com/repos/laravel/pint/zipball/fe4148c503a0e266353d61396b79bbf7f35122df", + "reference": "fe4148c503a0e266353d61396b79bbf7f35122df", "shasum": "" }, "require": { @@ -5766,17 +5767,19 @@ "ext-mbstring": "*", "ext-tokenizer": "*", "ext-xml": "*", - "php": "^8.2.0" + "php": "^8.3.0" }, "require-dev": { - "friendsofphp/php-cs-fixer": "^3.95.8", - "illuminate/view": "^12.62.0", + "composer/semver": "^3.4.4", + "friendsofphp/php-cs-fixer": "^3.95.18", + "illuminate/view": "^13.24.0", "larastan/larastan": "^3.10.0", - "laravel-zero/framework": "^12.1.0", + "laravel-zero/framework": "^13.0.0", "laravel/agent-detector": "^2.0.2", + "laravel/prompts": "^0.3.22", "mockery/mockery": "^1.6.12", "nunomaduro/termwind": "^2.4.0", - "pestphp/pest": "^3.8.6" + "pestphp/pest": "^4.7.8" }, "bin": [ "builds/pint" @@ -5813,7 +5816,7 @@ "issues": "https://github.com/laravel/pint/issues", "source": "https://github.com/laravel/pint" }, - "time": "2026-06-16T15:34:04+00:00" + "time": "2026-08-10T15:35:50+00:00" }, { "name": "matthiasmullie/minify", @@ -6175,11 +6178,11 @@ }, { "name": "phpstan/phpstan", - "version": "2.2.6", + "version": "2.2.8", "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/a6e9b5a9420f6109c091e87d82683bd1a80b87ed", - "reference": "a6e9b5a9420f6109c091e87d82683bd1a80b87ed", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/e285254e60f33c21902efef4a926ca0987c06804", + "reference": "e285254e60f33c21902efef4a926ca0987c06804", "shasum": "" }, "require": { @@ -6235,7 +6238,7 @@ "type": "github" } ], - "time": "2026-07-26T21:22:49+00:00" + "time": "2026-08-04T22:21:45+00:00" }, { "name": "phpunit/php-code-coverage", @@ -6584,16 +6587,16 @@ }, { "name": "phpunit/phpunit", - "version": "12.5.32", + "version": "12.5.33", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "c02591dd7840ed124a98d7770753329ad28e9f8f" + "reference": "b98e028a26c5c5ba7e4a54be96ccf35f2914d184" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/c02591dd7840ed124a98d7770753329ad28e9f8f", - "reference": "c02591dd7840ed124a98d7770753329ad28e9f8f", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/b98e028a26c5c5ba7e4a54be96ccf35f2914d184", + "reference": "b98e028a26c5c5ba7e4a54be96ccf35f2914d184", "shasum": "" }, "require": { @@ -6662,7 +6665,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/12.5.32" + "source": "https://github.com/sebastianbergmann/phpunit/tree/12.5.33" }, "funding": [ { @@ -6670,20 +6673,20 @@ "type": "other" } ], - "time": "2026-07-25T06:54:13+00:00" + "time": "2026-07-28T13:58:09+00:00" }, { "name": "rector/rector", - "version": "2.5.8", + "version": "2.6.1", "source": { "type": "git", "url": "https://github.com/rectorphp/rector.git", - "reference": "861c77fd2a6d45317a401f4e0b617f947e8b6f96" + "reference": "b8e68f058bca43e01a2e1caa51ef022d6551ed95" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/rectorphp/rector/zipball/861c77fd2a6d45317a401f4e0b617f947e8b6f96", - "reference": "861c77fd2a6d45317a401f4e0b617f947e8b6f96", + "url": "https://api.github.com/repos/rectorphp/rector/zipball/b8e68f058bca43e01a2e1caa51ef022d6551ed95", + "reference": "b8e68f058bca43e01a2e1caa51ef022d6551ed95", "shasum": "" }, "require": { @@ -6722,7 +6725,7 @@ ], "support": { "issues": "https://github.com/rectorphp/rector/issues", - "source": "https://github.com/rectorphp/rector/tree/2.5.8" + "source": "https://github.com/rectorphp/rector/tree/2.6.1" }, "funding": [ { @@ -6730,7 +6733,7 @@ "type": "github" } ], - "time": "2026-07-27T06:19:16+00:00" + "time": "2026-08-03T17:30:34+00:00" }, { "name": "sebastian/cli-parser", @@ -7727,16 +7730,16 @@ }, { "name": "symfony/console", - "version": "v8.1.1", + "version": "v8.1.4", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "b711a8ab808b6c074c6b8caef70d0fd8d6b6d07d" + "reference": "68efa2ebfd9a362951eb5a8b09fd177c66ddec24" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/b711a8ab808b6c074c6b8caef70d0fd8d6b6d07d", - "reference": "b711a8ab808b6c074c6b8caef70d0fd8d6b6d07d", + "url": "https://api.github.com/repos/symfony/console/zipball/68efa2ebfd9a362951eb5a8b09fd177c66ddec24", + "reference": "68efa2ebfd9a362951eb5a8b09fd177c66ddec24", "shasum": "" }, "require": { @@ -7803,7 +7806,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v8.1.1" + "source": "https://github.com/symfony/console/tree/v8.1.4" }, "funding": [ { @@ -7823,7 +7826,7 @@ "type": "tidelift" } ], - "time": "2026-06-16T12:55:20+00:00" + "time": "2026-07-31T12:43:13+00:00" }, { "name": "symfony/polyfill-ctype", @@ -7910,16 +7913,16 @@ }, { "name": "symfony/polyfill-intl-grapheme", - "version": "v1.38.1", + "version": "v1.41.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-grapheme.git", - "reference": "e9247d281d694a5120554d9afaf54e070e88a603" + "reference": "bb899c1db0aa8127dc3afe8cda4a67eb24915f8d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/e9247d281d694a5120554d9afaf54e070e88a603", - "reference": "e9247d281d694a5120554d9afaf54e070e88a603", + "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/bb899c1db0aa8127dc3afe8cda4a67eb24915f8d", + "reference": "bb899c1db0aa8127dc3afe8cda4a67eb24915f8d", "shasum": "" }, "require": { @@ -7968,7 +7971,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.38.1" + "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.41.0" }, "funding": [ { @@ -7988,7 +7991,7 @@ "type": "tidelift" } ], - "time": "2026-05-26T05:58:03+00:00" + "time": "2026-07-28T08:25:59+00:00" }, { "name": "symfony/polyfill-intl-normalizer", @@ -8142,16 +8145,16 @@ }, { "name": "symfony/string", - "version": "v8.1.0", + "version": "v8.1.2", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "afd5944f4005862d961efb85c8bbd5c523c4e3c9" + "reference": "286a76b7255e5cc4bf0101a0bc5388ecf1c38ccc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/afd5944f4005862d961efb85c8bbd5c523c4e3c9", - "reference": "afd5944f4005862d961efb85c8bbd5c523c4e3c9", + "url": "https://api.github.com/repos/symfony/string/zipball/286a76b7255e5cc4bf0101a0bc5388ecf1c38ccc", + "reference": "286a76b7255e5cc4bf0101a0bc5388ecf1c38ccc", "shasum": "" }, "require": { @@ -8208,7 +8211,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v8.1.0" + "source": "https://github.com/symfony/string/tree/v8.1.2" }, "funding": [ { @@ -8228,7 +8231,7 @@ "type": "tidelift" } ], - "time": "2026-05-29T05:06:50+00:00" + "time": "2026-07-28T07:35:25+00:00" }, { "name": "textalk/websocket", @@ -8436,5 +8439,5 @@ "platform-dev": { "ext-fileinfo": "*" }, - "plugin-api-version": "2.9.0" + "plugin-api-version": "2.6.0" } From e8faf203789334753a369cd171933c599a01f44a Mon Sep 17 00:00:00 2001 From: fogelito Date: Tue, 11 Aug 2026 10:04:01 +0300 Subject: [PATCH 3/4] composer refactor --- tests/e2e/Services/Avatars/AvatarsBase.php | 36 ++++++++--------- .../e2e/Services/Databases/DatabasesBase.php | 16 ++++---- .../Transactions/TransactionsBase.php | 6 +-- .../Databases/VectorsDB/DatabasesBase.php | 4 +- .../Transactions/TransactionsBase.php | 6 +-- tests/e2e/Services/GraphQL/Base.php | 4 +- .../e2e/Services/Messaging/MessagingBase.php | 34 ++++++++-------- .../Services/Migrations/MigrationsBase.php | 6 +-- .../Services/ProjectWebhooks/WebhooksBase.php | 40 +++++++++---------- tests/e2e/Services/Proxy/ProxyBase.php | 2 +- tests/e2e/Services/Storage/StorageBase.php | 30 +++++++------- tests/e2e/Services/Teams/TeamsBase.php | 2 +- tests/e2e/Services/Tokens/TokensBase.php | 30 +++++++------- tests/e2e/Services/Users/UsersBase.php | 4 +- tests/e2e/Services/Webhooks/WebhooksBase.php | 12 +++--- 15 files changed, 116 insertions(+), 116 deletions(-) diff --git a/tests/e2e/Services/Avatars/AvatarsBase.php b/tests/e2e/Services/Avatars/AvatarsBase.php index 614349ae74..06ee4687f7 100644 --- a/tests/e2e/Services/Avatars/AvatarsBase.php +++ b/tests/e2e/Services/Avatars/AvatarsBase.php @@ -351,9 +351,9 @@ trait AvatarsBase $image = new \Imagick(); $image->readImageBlob($response['body']); - $this->assertEquals(400, $image->getImageWidth()); - $this->assertEquals(400, $image->getImageHeight()); - $this->assertEquals('PNG', $image->getImageFormat()); + $this->assertSame(400, $image->getImageWidth()); + $this->assertSame(400, $image->getImageHeight()); + $this->assertSame('PNG', $image->getImageFormat()); $this->assertSamePixels(__DIR__ . '/../../../resources/qr/qr-default.png', $response['body']); $response = $this->client->call(Client::METHOD_GET, '/avatars/qr', [ @@ -369,9 +369,9 @@ trait AvatarsBase $image = new \Imagick(); $image->readImageBlob($response['body']); - $this->assertEquals(200, $image->getImageWidth()); - $this->assertEquals(200, $image->getImageHeight()); - $this->assertEquals('PNG', $image->getImageFormat()); + $this->assertSame(200, $image->getImageWidth()); + $this->assertSame(200, $image->getImageHeight()); + $this->assertSame('PNG', $image->getImageFormat()); $this->assertSamePixels(__DIR__ . '/../../../resources/qr/qr-size-200.png', $response['body']); $response = $this->client->call(Client::METHOD_GET, '/avatars/qr', [ @@ -388,9 +388,9 @@ trait AvatarsBase $image = new \Imagick(); $image->readImageBlob($response['body']); - $this->assertEquals(200, $image->getImageWidth()); - $this->assertEquals(200, $image->getImageHeight()); - $this->assertEquals('PNG', $image->getImageFormat()); + $this->assertSame(200, $image->getImageWidth()); + $this->assertSame(200, $image->getImageHeight()); + $this->assertSame('PNG', $image->getImageFormat()); $this->assertSamePixels(__DIR__ . '/../../../resources/qr/qr-size-200-margin-10.png', $response['body']); $response = $this->client->call(Client::METHOD_GET, '/avatars/qr', [ @@ -404,9 +404,9 @@ trait AvatarsBase $image = new \Imagick(); $image->readImageBlob($response['body']); - $this->assertEquals(200, $image->getImageWidth()); - $this->assertEquals(200, $image->getImageHeight()); - $this->assertEquals('PNG', $image->getImageFormat()); + $this->assertSame(200, $image->getImageWidth()); + $this->assertSame(200, $image->getImageHeight()); + $this->assertSame('PNG', $image->getImageFormat()); $this->assertSamePixels(__DIR__ . '/../../../resources/qr/qr-size-200-margin-10.png', $response['body']); $this->assertEquals(200, $response['headers']['status-code']); @@ -536,9 +536,9 @@ trait AvatarsBase $image->readImageBlob($response['body']); $original = new \Imagick(__DIR__ . '/../../../resources/initials.png'); - $this->assertEquals($image->getImageWidth(), $original->getImageWidth()); - $this->assertEquals($image->getImageHeight(), $original->getImageHeight()); - $this->assertEquals('PNG', $image->getImageFormat()); + $this->assertSame($image->getImageWidth(), $original->getImageWidth()); + $this->assertSame($image->getImageHeight(), $original->getImageHeight()); + $this->assertSame('PNG', $image->getImageFormat()); } public function testSpecialCharsInitalImage() @@ -559,9 +559,9 @@ trait AvatarsBase $image->readImageBlob($response['body']); $original = new \Imagick(__DIR__ . '/../../../resources/initials.png'); - $this->assertEquals($image->getImageWidth(), $original->getImageWidth()); - $this->assertEquals($image->getImageHeight(), $original->getImageHeight()); - $this->assertEquals('PNG', $image->getImageFormat()); + $this->assertSame($image->getImageWidth(), $original->getImageWidth()); + $this->assertSame($image->getImageHeight(), $original->getImageHeight()); + $this->assertSame('PNG', $image->getImageFormat()); } public function testGetScreenshot(): array diff --git a/tests/e2e/Services/Databases/DatabasesBase.php b/tests/e2e/Services/Databases/DatabasesBase.php index c1a2be42ba..5e31035fce 100644 --- a/tests/e2e/Services/Databases/DatabasesBase.php +++ b/tests/e2e/Services/Databases/DatabasesBase.php @@ -1242,7 +1242,7 @@ trait DatabasesBase ], ]); $this->assertEquals(200, $response['headers']['status-code']); - $this->assertEquals(2, \count($response['body'][$this->getSchemaResource()])); + $this->assertSame(2, \count($response['body'][$this->getSchemaResource()])); $response = $this->client->call(Client::METHOD_GET, $this->getSchemaUrl($databaseId, $data['moviesId']), array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], @@ -2527,7 +2527,7 @@ trait DatabasesBase ], ]); $this->assertEquals(200, $response['headers']['status-code']); - $this->assertEquals(2, \count($response['body']['indexes'])); + $this->assertSame(2, \count($response['body']['indexes'])); $response = $this->client->call(Client::METHOD_GET, $this->getIndexUrl($databaseId, $data['moviesId']), array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], @@ -6863,7 +6863,7 @@ trait DatabasesBase $this->assertEquals(201, $person2['headers']['status-code']); $this->assertArrayHasKey('libraries', $person2['body']); - $this->assertEquals(2, count($person2['body']['libraries'])); + $this->assertSame(2, count($person2['body']['libraries'])); $response = $this->client->call(Client::METHOD_GET, $this->getRecordUrl($databaseId, $personCollection, $person2['body']['$id']), array_merge([ 'content-type' => 'application/json', @@ -6877,7 +6877,7 @@ trait DatabasesBase $this->assertEquals(200, $response['headers']['status-code']); $this->assertArrayNotHasKey('$collection', $response['body']); $this->assertArrayHasKey('libraries', $response['body']); - $this->assertEquals(2, count($response['body']['libraries'])); + $this->assertSame(2, count($response['body']['libraries'])); $response = $this->client->call(Client::METHOD_GET, $this->getRecordUrl($databaseId, $libraryCollection, $libraryDoc11Id), array_merge([ 'content-type' => 'application/json', @@ -7062,7 +7062,7 @@ trait DatabasesBase $this->assertEquals(200, $artist['headers']['status-code']); $this->assertEquals('Artist 1', $artist['body']['name']); $this->assertEquals($permissions, $artist['body']['$permissions']); - $this->assertEquals(1, count($artist['body']['albums'])); + $this->assertSame(1, count($artist['body']['albums'])); $this->assertEquals('album1', $artist['body']['albums'][0]['$id']); $this->assertEquals('Album 1', $artist['body']['albums'][0]['name']); $this->assertEquals($permissions, $artist['body']['albums'][0]['$permissions']); @@ -7222,7 +7222,7 @@ trait DatabasesBase $this->assertEquals(200, $player['headers']['status-code']); $this->assertEquals('Player 1', $player['body']['name']); $this->assertEquals($permissions, $player['body']['$permissions']); - $this->assertEquals(1, count($player['body']['sports'])); + $this->assertSame(1, count($player['body']['sports'])); $this->assertEquals('sport1', $player['body']['sports'][0]['$id']); $this->assertEquals('Sport 1', $player['body']['sports'][0]['name']); $this->assertEquals($permissions, $player['body']['sports'][0]['$permissions']); @@ -7251,10 +7251,10 @@ trait DatabasesBase ]); $this->assertEquals(200, $response['headers']['status-code']); - $this->assertEquals(1, count($response['body'][$this->getRecordResource()])); + $this->assertSame(1, count($response['body'][$this->getRecordResource()])); $this->assertNotEmpty($response['body'][$this->getRecordResource()][0]['$id']); $this->assertEquals('Stevie Wonder', $response['body'][$this->getRecordResource()][0]['fullName']); - $this->assertEquals(2, count($response['body'][$this->getRecordResource()][0]['libraries'])); + $this->assertSame(2, count($response['body'][$this->getRecordResource()][0]['libraries'])); $response = $this->client->call(Client::METHOD_GET, $this->getRecordUrl($data['databaseId'], $data['personCollection']), array_merge([ 'content-type' => 'application/json', diff --git a/tests/e2e/Services/Databases/Transactions/TransactionsBase.php b/tests/e2e/Services/Databases/Transactions/TransactionsBase.php index cbf0303438..5060c4c319 100644 --- a/tests/e2e/Services/Databases/Transactions/TransactionsBase.php +++ b/tests/e2e/Services/Databases/Transactions/TransactionsBase.php @@ -1223,9 +1223,9 @@ trait TransactionsBase } } - $this->assertEquals(0, $oldCategoryCount); - $this->assertEquals(4, $updatedCategoryCount); // 4 existing docs updated - $this->assertEquals(3, $newCategoryCount); // 3 new docs + $this->assertSame(0, $oldCategoryCount); + $this->assertSame(4, $updatedCategoryCount); // 4 existing docs updated + $this->assertSame(3, $newCategoryCount); // 3 new docs } /** diff --git a/tests/e2e/Services/Databases/VectorsDB/DatabasesBase.php b/tests/e2e/Services/Databases/VectorsDB/DatabasesBase.php index 1bdc77085b..ee50524176 100644 --- a/tests/e2e/Services/Databases/VectorsDB/DatabasesBase.php +++ b/tests/e2e/Services/Databases/VectorsDB/DatabasesBase.php @@ -187,7 +187,7 @@ trait DatabasesBase ] ]); $this->assertEquals(200, $page1['headers']['status-code']); - $this->assertEquals(1, \count($page1['body']['documents'] ?? [])); + $this->assertSame(1, \count($page1['body']['documents'] ?? [])); $page2 = $this->client->call(Client::METHOD_GET, "/vectorsdb/{$databaseId}/collections/{$collectionId}/documents", [ 'content-type' => 'application/json', @@ -201,7 +201,7 @@ trait DatabasesBase ] ]); $this->assertEquals(200, $page2['headers']['status-code']); - $this->assertEquals(1, \count($page2['body']['documents'] ?? [])); + $this->assertSame(1, \count($page2['body']['documents'] ?? [])); return $data; } diff --git a/tests/e2e/Services/Databases/VectorsDB/Transactions/TransactionsBase.php b/tests/e2e/Services/Databases/VectorsDB/Transactions/TransactionsBase.php index 70150a3bc8..b8cc9f6f0d 100644 --- a/tests/e2e/Services/Databases/VectorsDB/Transactions/TransactionsBase.php +++ b/tests/e2e/Services/Databases/VectorsDB/Transactions/TransactionsBase.php @@ -1050,9 +1050,9 @@ trait TransactionsBase } } - $this->assertEquals(0, $oldCategoryCount); - $this->assertEquals(4, $updatedCategoryCount); // 4 existing docs updated - $this->assertEquals(3, $newCategoryCount); // 3 new docs + $this->assertSame(0, $oldCategoryCount); + $this->assertSame(4, $updatedCategoryCount); // 4 existing docs updated + $this->assertSame(3, $newCategoryCount); // 3 new docs } /** diff --git a/tests/e2e/Services/GraphQL/Base.php b/tests/e2e/Services/GraphQL/Base.php index b9a2c3eb16..09d978fab4 100644 --- a/tests/e2e/Services/GraphQL/Base.php +++ b/tests/e2e/Services/GraphQL/Base.php @@ -514,8 +514,8 @@ trait Base $this->assertNotEmpty($image->output('png')); $this->assertIsArray($dimensions); - $this->assertEquals(100, $dimensions[0]); - $this->assertEquals(100, $dimensions[1]); + $this->assertSame(100, $dimensions[0]); + $this->assertSame(100, $dimensions[1]); } public function getQuery(string $name): string diff --git a/tests/e2e/Services/Messaging/MessagingBase.php b/tests/e2e/Services/Messaging/MessagingBase.php index 6b4d7e9466..dbf2e34aa1 100644 --- a/tests/e2e/Services/Messaging/MessagingBase.php +++ b/tests/e2e/Services/Messaging/MessagingBase.php @@ -1160,7 +1160,7 @@ trait MessagingBase ]); $this->assertEquals(201, $response2['headers']['status-code']); $this->assertEquals('my-app2', $response2['body']['name']); - $this->assertEquals(1, \count($response2['body']['subscribe'])); + $this->assertSame(1, \count($response2['body']['subscribe'])); } public function testUpdateTopic(): void @@ -1221,7 +1221,7 @@ trait MessagingBase ]); $this->assertEquals(200, $response['headers']['status-code']); - $this->assertEquals(0, \count($response['body']['topics'])); + $this->assertSame(0, \count($response['body']['topics'])); return $topicId; } @@ -1571,7 +1571,7 @@ trait MessagingBase $targetList = $response['body']; $this->assertEquals(2, $targetList['total']); - $this->assertEquals(2, count($targetList['targets'])); + $this->assertSame(2, count($targetList['targets'])); $this->assertEquals($message['targets'][0], $targetList['targets'][0]['$id']); $this->assertEquals($message['targets'][1], $targetList['targets'][1]['$id']); @@ -1588,7 +1588,7 @@ trait MessagingBase ] ]); $this->assertEquals(2, $response['body']['total']); - $this->assertEquals(1, count($response['body']['targets'])); + $this->assertSame(1, count($response['body']['targets'])); $this->assertEquals($targetList['targets'][1]['$id'], $response['body']['targets'][0]['$id']); // Test for empty targets @@ -1617,7 +1617,7 @@ trait MessagingBase $targetList = $response['body']; $this->assertEquals(0, $targetList['total']); - $this->assertEquals(0, count($targetList['targets'])); + $this->assertSame(0, count($targetList['targets'])); } public function testCreateDraftEmail(): void @@ -1638,7 +1638,7 @@ trait MessagingBase $user1 = $response['body']; - $this->assertEquals(1, \count($user1['targets'])); + $this->assertSame(1, \count($user1['targets'])); $targetId1 = $user1['targets'][0]['$id']; // Create User 2 @@ -1656,7 +1656,7 @@ trait MessagingBase $this->assertEquals(201, $response['headers']['status-code'], "Error creating user: " . var_export($response['body'], true)); $user2 = $response['body']; - $this->assertEquals(1, \count($user2['targets'])); + $this->assertSame(1, \count($user2['targets'])); $targetId2 = $user2['targets'][0]['$id']; // Create Email @@ -1692,7 +1692,7 @@ trait MessagingBase ]); $this->assertEquals(201, $user['headers']['status-code'], "Error creating user: " . var_export($user['body'], true)); - $this->assertEquals(1, \count($user['body']['targets'])); + $this->assertSame(1, \count($user['body']['targets'])); // Create push target $target = $this->client->call(Client::METHOD_POST, '/users/' . $user['body']['$id'] . '/targets', [ @@ -1939,7 +1939,7 @@ trait MessagingBase $this->assertEquals(200, $message['headers']['status-code']); $this->assertEquals(MessageStatus::SCHEDULED, $message['body']['status']); - $this->assertEquals( + $this->assertSame( (new \DateTime($scheduledAt))->getTimestamp(), (new \DateTime($message['body']['scheduledAt']))->getTimestamp() ); @@ -1990,7 +1990,7 @@ trait MessagingBase $this->assertEquals(200, $message['headers']['status-code']); $this->assertEquals(MessageStatus::SCHEDULED, $message['body']['status']); - $this->assertEquals( + $this->assertSame( (new \DateTime($scheduledAt))->getTimestamp(), (new \DateTime($message['body']['scheduledAt']))->getTimestamp() ); @@ -2007,7 +2007,7 @@ trait MessagingBase ]); $this->assertEquals(200, $response['headers']['status-code']); $this->assertEquals(MessageStatus::SCHEDULED, $response['body']['status']); - $this->assertEquals( + $this->assertSame( (new \DateTime($scheduledAt))->getTimestamp(), (new \DateTime($response['body']['scheduledAt']))->getTimestamp() ); @@ -2119,7 +2119,7 @@ trait MessagingBase $this->assertEquals(200, $message['headers']['status-code']); $this->assertEquals(1, $message['body']['deliveredTotal']); - $this->assertEquals(0, \count($message['body']['deliveryErrors'])); + $this->assertSame(0, \count($message['body']['deliveryErrors'])); return [ 'message' => $email['body'], @@ -2190,7 +2190,7 @@ trait MessagingBase $this->assertEquals(200, $message['headers']['status-code']); $this->assertEquals(1, $message['body']['deliveredTotal']); - $this->assertEquals(0, \count($message['body']['deliveryErrors'])); + $this->assertSame(0, \count($message['body']['deliveryErrors'])); } public function testSendSMS(): void @@ -2308,7 +2308,7 @@ trait MessagingBase $this->assertEquals(200, $message['headers']['status-code']); $this->assertEquals(1, $message['body']['deliveredTotal']); - $this->assertEquals(0, \count($message['body']['deliveryErrors'])); + $this->assertSame(0, \count($message['body']['deliveryErrors'])); } public function testUpdateSMS(): void @@ -2371,7 +2371,7 @@ trait MessagingBase $this->assertEquals(200, $message['headers']['status-code']); $this->assertEquals(1, $message['body']['deliveredTotal']); - $this->assertEquals(0, \count($message['body']['deliveryErrors'])); + $this->assertSame(0, \count($message['body']['deliveryErrors'])); } public function testSendPushNotification(): void @@ -2486,7 +2486,7 @@ trait MessagingBase $this->assertEquals(200, $message['headers']['status-code']); $this->assertEquals(1, $message['body']['deliveredTotal']); - $this->assertEquals(0, \count($message['body']['deliveryErrors'])); + $this->assertSame(0, \count($message['body']['deliveryErrors'])); } public function testCreatePushNotificationWithUsersRecipients(): void @@ -2663,7 +2663,7 @@ trait MessagingBase $this->assertEquals(200, $message['headers']['status-code']); $this->assertEquals(1, $message['body']['deliveredTotal']); - $this->assertEquals(0, \count($message['body']['deliveryErrors'])); + $this->assertSame(0, \count($message['body']['deliveryErrors'])); } /** diff --git a/tests/e2e/Services/Migrations/MigrationsBase.php b/tests/e2e/Services/Migrations/MigrationsBase.php index 051729cc98..53fce889a6 100644 --- a/tests/e2e/Services/Migrations/MigrationsBase.php +++ b/tests/e2e/Services/Migrations/MigrationsBase.php @@ -4926,7 +4926,7 @@ trait MigrationsBase $this->assertEquals(201, $user['headers']['status-code']); $userId = $user['body']['$id']; - $this->assertEquals(1, \count($user['body']['targets'])); + $this->assertSame(1, \count($user['body']['targets'])); $targetId = $user['body']['targets'][0]['$id']; $provider = $this->client->call(Client::METHOD_POST, '/messaging/providers/sendgrid', [ @@ -5050,7 +5050,7 @@ trait MigrationsBase $this->assertEquals(201, $user['headers']['status-code']); $userId = $user['body']['$id']; - $this->assertEquals(1, \count($user['body']['targets'])); + $this->assertSame(1, \count($user['body']['targets'])); $targetId = $user['body']['targets'][0]['$id']; $provider = $this->client->call(Client::METHOD_POST, '/messaging/providers/sendgrid', [ @@ -5433,7 +5433,7 @@ trait MigrationsBase $this->assertEquals($messageId, $response['body']['$id']); $this->assertEquals('scheduled', $response['body']['status']); $this->assertEquals('Migration Scheduled Email', $response['body']['data']['subject']); - $this->assertEquals( + $this->assertSame( (new \DateTime($futureDate))->getTimestamp(), (new \DateTime($response['body']['scheduledAt']))->getTimestamp(), ); diff --git a/tests/e2e/Services/ProjectWebhooks/WebhooksBase.php b/tests/e2e/Services/ProjectWebhooks/WebhooksBase.php index e852cf093b..b040cbfe1d 100644 --- a/tests/e2e/Services/ProjectWebhooks/WebhooksBase.php +++ b/tests/e2e/Services/ProjectWebhooks/WebhooksBase.php @@ -436,7 +436,7 @@ trait WebhooksBase $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Signature'], $signatureExpected); $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Id'] ?? '', $this->getProject()['webhookId']); $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Project-Id'] ?? '', $this->getProject()['$id']); - $this->assertEquals(empty($webhook['headers']['X-Appwrite-Webhook-User-Id'] ?? ''), true); + $this->assertSame(empty($webhook['headers']['X-Appwrite-Webhook-User-Id'] ?? ''), true); $this->assertNotEmpty($webhook['data']['$id']); $this->assertEquals($webhook['data']['name'], 'Actors'); $this->assertIsArray($webhook['data']['$permissions']); @@ -617,7 +617,7 @@ trait WebhooksBase $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Signature'], $signatureExpected); $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Id'] ?? '', $this->getProject()['webhookId']); $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Project-Id'] ?? '', $this->getProject()['$id']); - $this->assertEquals(empty($webhook['headers']['X-Appwrite-Webhook-User-Id'] ?? ''), ('server' === $this->getSide())); + $this->assertSame(empty($webhook['headers']['X-Appwrite-Webhook-User-Id'] ?? ''), ('server' === $this->getSide())); $this->assertNotEmpty($webhook['data']['$id']); $this->assertEquals($webhook['data']['firstName'], 'Chris'); $this->assertEquals($webhook['data']['lastName'], 'Evans'); @@ -676,7 +676,7 @@ trait WebhooksBase $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Signature'], $signatureExpected); $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Id'] ?? '', $this->getProject()['webhookId']); $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Project-Id'] ?? '', $this->getProject()['$id']); - $this->assertEquals(empty($webhook['headers']['X-Appwrite-Webhook-User-Id'] ?? ''), ('server' === $this->getSide())); + $this->assertSame(empty($webhook['headers']['X-Appwrite-Webhook-User-Id'] ?? ''), ('server' === $this->getSide())); $this->assertNotEmpty($webhook['data']['$id']); $this->assertEquals($webhook['data']['firstName'], 'Chris1'); $this->assertEquals($webhook['data']['lastName'], 'Evans2'); @@ -743,7 +743,7 @@ trait WebhooksBase $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Signature'], $signatureExpected); $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Id'] ?? '', $this->getProject()['webhookId']); $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Project-Id'] ?? '', $this->getProject()['$id']); - $this->assertEquals(empty($webhook['headers']['X-Appwrite-Webhook-User-Id'] ?? ''), ('server' === $this->getSide())); + $this->assertSame(empty($webhook['headers']['X-Appwrite-Webhook-User-Id'] ?? ''), ('server' === $this->getSide())); $this->assertNotEmpty($webhook['data']['$id']); $this->assertEquals($webhook['data']['firstName'], 'Bradly'); $this->assertEquals($webhook['data']['lastName'], 'Cooper'); @@ -805,7 +805,7 @@ trait WebhooksBase $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Signature'], $signatureExpected); $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Id'] ?? '', $this->getProject()['webhookId']); $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Project-Id'] ?? '', $this->getProject()['$id']); - $this->assertEquals(empty($webhook['headers']['X-Appwrite-Webhook-User-Id'] ?? ''), true); + $this->assertSame(empty($webhook['headers']['X-Appwrite-Webhook-User-Id'] ?? ''), true); $this->assertNotEmpty($webhook['data']['$id']); $this->assertEquals($webhook['data']['name'], 'Actors'); $this->assertIsArray($webhook['data']['$permissions']); @@ -984,7 +984,7 @@ trait WebhooksBase $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Signature'], $signatureExpected); $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Id'] ?? '', $this->getProject()['webhookId']); $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Project-Id'] ?? '', $this->getProject()['$id']); - $this->assertEquals(empty($webhook['headers']['X-Appwrite-Webhook-User-Id'] ?? ''), ('server' === $this->getSide())); + $this->assertSame(empty($webhook['headers']['X-Appwrite-Webhook-User-Id'] ?? ''), ('server' === $this->getSide())); $this->assertNotEmpty($webhook['data']['$id']); $this->assertEquals($webhook['data']['firstName'], 'Chris'); $this->assertEquals($webhook['data']['lastName'], 'Evans'); @@ -1043,7 +1043,7 @@ trait WebhooksBase $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Signature'], $signatureExpected); $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Id'] ?? '', $this->getProject()['webhookId']); $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Project-Id'] ?? '', $this->getProject()['$id']); - $this->assertEquals(empty($webhook['headers']['X-Appwrite-Webhook-User-Id'] ?? ''), ('server' === $this->getSide())); + $this->assertSame(empty($webhook['headers']['X-Appwrite-Webhook-User-Id'] ?? ''), ('server' === $this->getSide())); $this->assertNotEmpty($webhook['data']['$id']); $this->assertEquals($webhook['data']['firstName'], 'Chris1'); $this->assertEquals($webhook['data']['lastName'], 'Evans2'); @@ -1110,7 +1110,7 @@ trait WebhooksBase $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Signature'], $signatureExpected); $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Id'] ?? '', $this->getProject()['webhookId']); $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Project-Id'] ?? '', $this->getProject()['$id']); - $this->assertEquals(empty($webhook['headers']['X-Appwrite-Webhook-User-Id'] ?? ''), ('server' === $this->getSide())); + $this->assertSame(empty($webhook['headers']['X-Appwrite-Webhook-User-Id'] ?? ''), ('server' === $this->getSide())); $this->assertNotEmpty($webhook['data']['$id']); $this->assertEquals($webhook['data']['firstName'], 'Bradly'); $this->assertEquals($webhook['data']['lastName'], 'Cooper'); @@ -1156,7 +1156,7 @@ trait WebhooksBase $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Signature'], $signatureExpected); $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Id'] ?? '', $this->getProject()['webhookId']); $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Project-Id'] ?? '', $this->getProject()['$id']); - $this->assertEquals(empty($webhook['headers']['X-Appwrite-Webhook-User-Id'] ?? ''), true); + $this->assertSame(empty($webhook['headers']['X-Appwrite-Webhook-User-Id'] ?? ''), true); $this->assertNotEmpty($webhook['data']['$id']); $this->assertEquals('Test Bucket', $webhook['data']['name']); $this->assertEquals(true, $webhook['data']['enabled']); @@ -1198,7 +1198,7 @@ trait WebhooksBase $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Signature'], $signatureExpected); $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Id'] ?? '', $this->getProject()['webhookId']); $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Project-Id'] ?? '', $this->getProject()['$id']); - $this->assertEquals(empty($webhook['headers']['X-Appwrite-Webhook-User-Id'] ?? ''), true); + $this->assertSame(empty($webhook['headers']['X-Appwrite-Webhook-User-Id'] ?? ''), true); $this->assertNotEmpty($webhook['data']['$id']); $this->assertEquals('Test Bucket Updated', $webhook['data']['name']); $this->assertEquals(false, $webhook['data']['enabled']); @@ -1252,7 +1252,7 @@ trait WebhooksBase $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Signature'], $signatureExpected); $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Id'] ?? '', $this->getProject()['webhookId']); $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Project-Id'] ?? '', $this->getProject()['$id']); - $this->assertEquals(empty($webhook['headers']['X-Appwrite-Webhook-User-Id'] ?? ''), ('server' === $this->getSide())); + $this->assertSame(empty($webhook['headers']['X-Appwrite-Webhook-User-Id'] ?? ''), ('server' === $this->getSide())); $this->assertNotEmpty($webhook['data']['$id']); $this->assertIsArray($webhook['data']['$permissions']); $this->assertEquals($webhook['data']['name'], 'logo.png'); @@ -1306,7 +1306,7 @@ trait WebhooksBase $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Signature'], $signatureExpected); $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Id'] ?? '', $this->getProject()['webhookId']); $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Project-Id'] ?? '', $this->getProject()['$id']); - $this->assertEquals(empty($webhook['headers']['X-Appwrite-Webhook-User-Id'] ?? ''), ('server' === $this->getSide())); + $this->assertSame(empty($webhook['headers']['X-Appwrite-Webhook-User-Id'] ?? ''), ('server' === $this->getSide())); $this->assertNotEmpty($webhook['data']['$id']); $this->assertIsArray($webhook['data']['$permissions']); $this->assertEquals($webhook['data']['name'], 'logo.png'); @@ -1354,7 +1354,7 @@ trait WebhooksBase $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Signature'], $signatureExpected); $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Id'] ?? '', $this->getProject()['webhookId']); $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Project-Id'] ?? '', $this->getProject()['$id']); - $this->assertEquals(empty($webhook['headers']['X-Appwrite-Webhook-User-Id'] ?? ''), ('server' === $this->getSide())); + $this->assertSame(empty($webhook['headers']['X-Appwrite-Webhook-User-Id'] ?? ''), ('server' === $this->getSide())); $this->assertNotEmpty($webhook['data']['$id']); $this->assertIsArray($webhook['data']['$permissions']); $this->assertEquals($webhook['data']['name'], 'logo.png'); @@ -1406,7 +1406,7 @@ trait WebhooksBase $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Signature'], $signatureExpected); $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Id'] ?? '', $this->getProject()['webhookId']); $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Project-Id'] ?? '', $this->getProject()['$id']); - $this->assertEquals(empty($webhook['headers']['X-Appwrite-Webhook-User-Id'] ?? ''), true); + $this->assertSame(empty($webhook['headers']['X-Appwrite-Webhook-User-Id'] ?? ''), true); $this->assertNotEmpty($webhook['data']['$id']); $this->assertEquals('Test Bucket Updated', $webhook['data']['name']); $this->assertEquals(true, $webhook['data']['enabled']); @@ -1444,7 +1444,7 @@ trait WebhooksBase $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Signature'], $signatureExpected); $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Id'] ?? '', $this->getProject()['webhookId']); $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Project-Id'] ?? '', $this->getProject()['$id']); - $this->assertEquals(empty($webhook['headers']['X-Appwrite-Webhook-User-Id'] ?? ''), ('server' === $this->getSide())); + $this->assertSame(empty($webhook['headers']['X-Appwrite-Webhook-User-Id'] ?? ''), ('server' === $this->getSide())); $this->assertNotEmpty($webhook['data']['$id']); $this->assertEquals('Arsenal', $webhook['data']['name']); $this->assertGreaterThan(-1, $webhook['data']['total']); @@ -1483,7 +1483,7 @@ trait WebhooksBase $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Signature'], $signatureExpected); $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Id'] ?? '', $this->getProject()['webhookId']); $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Project-Id'] ?? '', $this->getProject()['$id']); - $this->assertEquals(empty($webhook['headers']['X-Appwrite-Webhook-User-Id'] ?? ''), ('server' === $this->getSide())); + $this->assertSame(empty($webhook['headers']['X-Appwrite-Webhook-User-Id'] ?? ''), ('server' === $this->getSide())); $this->assertNotEmpty($webhook['data']['$id']); $this->assertEquals('Demo New', $webhook['data']['name']); $this->assertGreaterThan(-1, $webhook['data']['total']); @@ -1528,7 +1528,7 @@ trait WebhooksBase $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Signature'], $signatureExpected); $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Id'] ?? '', $this->getProject()['webhookId']); $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Project-Id'] ?? '', $this->getProject()['$id']); - $this->assertEquals(empty($webhook['headers']['X-Appwrite-Webhook-User-Id'] ?? ''), ('server' === $this->getSide())); + $this->assertSame(empty($webhook['headers']['X-Appwrite-Webhook-User-Id'] ?? ''), ('server' === $this->getSide())); $this->assertEquals($webhook['data'], [ 'prefKey1' => 'prefValue1', 'prefKey2' => 'prefValue2', @@ -1571,7 +1571,7 @@ trait WebhooksBase $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Signature'], $signatureExpected); $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Id'] ?? '', $this->getProject()['webhookId']); $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Project-Id'] ?? '', $this->getProject()['$id']); - $this->assertEquals(empty($webhook['headers']['X-Appwrite-Webhook-User-Id'] ?? ''), ('server' === $this->getSide())); + $this->assertSame(empty($webhook['headers']['X-Appwrite-Webhook-User-Id'] ?? ''), ('server' === $this->getSide())); $this->assertNotEmpty($webhook['data']['$id']); $this->assertEquals('Chelsea', $webhook['data']['name']); $this->assertGreaterThan(-1, $webhook['data']['total']); @@ -1639,7 +1639,7 @@ trait WebhooksBase $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Signature'], $signatureExpected); $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Id'] ?? '', $this->getProject()['webhookId']); $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Project-Id'] ?? '', $this->getProject()['$id']); - $this->assertEquals(empty($webhook['headers']['X-Appwrite-Webhook-User-Id'] ?? ''), ('server' === $this->getSide())); + $this->assertSame(empty($webhook['headers']['X-Appwrite-Webhook-User-Id'] ?? ''), ('server' === $this->getSide())); $this->assertNotEmpty($webhook['data']['$id']); $this->assertNotEmpty($webhook['data']['userId']); $this->assertNotEmpty($webhook['data']['teamId']); @@ -1700,7 +1700,7 @@ trait WebhooksBase $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Signature'], $signatureExpected); $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Id'] ?? '', $this->getProject()['webhookId']); $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Project-Id'] ?? '', $this->getProject()['$id']); - $this->assertEquals(empty($webhook['headers']['X-Appwrite-Webhook-User-Id'] ?? ''), ('server' === $this->getSide())); + $this->assertSame(empty($webhook['headers']['X-Appwrite-Webhook-User-Id'] ?? ''), ('server' === $this->getSide())); $this->assertNotEmpty($webhook['data']['$id']); $this->assertNotEmpty($webhook['data']['userId']); $this->assertNotEmpty($webhook['data']['teamId']); diff --git a/tests/e2e/Services/Proxy/ProxyBase.php b/tests/e2e/Services/Proxy/ProxyBase.php index d0e4c0d793..1d5d97377c 100644 --- a/tests/e2e/Services/Proxy/ProxyBase.php +++ b/tests/e2e/Services/Proxy/ProxyBase.php @@ -35,7 +35,7 @@ trait ProxyBase ] ]); $this->assertEquals(200, $rules['headers']['status-code']); - $this->assertEquals(0, count($rules['body']['rules'])); + $this->assertSame(0, count($rules['body']['rules'])); $this->assertEquals(0, $rules['body']['total']); } } diff --git a/tests/e2e/Services/Storage/StorageBase.php b/tests/e2e/Services/Storage/StorageBase.php index 9455673468..caa62fed5b 100644 --- a/tests/e2e/Services/Storage/StorageBase.php +++ b/tests/e2e/Services/Storage/StorageBase.php @@ -741,7 +741,7 @@ trait StorageBase ], ]); $this->assertEquals(200, $files['headers']['status-code']); - $this->assertEquals(1, count($files['body']['files'])); + $this->assertSame(1, count($files['body']['files'])); $files = $this->client->call(Client::METHOD_GET, '/storage/buckets/' . $data['bucketId'] . '/files', array_merge([ 'content-type' => 'application/json', @@ -752,7 +752,7 @@ trait StorageBase ], ]); $this->assertEquals(200, $files['headers']['status-code']); - $this->assertEquals(1, count($files['body']['files'])); + $this->assertSame(1, count($files['body']['files'])); $files = $this->client->call(Client::METHOD_GET, '/storage/buckets/' . $data['bucketId'] . '/files', array_merge([ 'content-type' => 'application/json', @@ -763,7 +763,7 @@ trait StorageBase ], ]); $this->assertEquals(200, $files['headers']['status-code']); - $this->assertEquals(1, count($files['body']['files'])); + $this->assertSame(1, count($files['body']['files'])); $files = $this->client->call(Client::METHOD_GET, '/storage/buckets/' . $data['bucketId'] . '/files', array_merge([ 'content-type' => 'application/json', @@ -774,7 +774,7 @@ trait StorageBase ], ]); $this->assertEquals(200, $files['headers']['status-code']); - $this->assertEquals(0, count($files['body']['files'])); + $this->assertSame(0, count($files['body']['files'])); /** * Test for FAILURE unknown Bucket @@ -864,9 +864,9 @@ trait StorageBase $image->readImageBlob($file3['body']); $original = new \Imagick(__DIR__ . '/../../../resources/logo-after.png'); - $this->assertEquals($image->getImageWidth(), $original->getImageWidth()); - $this->assertEquals($image->getImageHeight(), $original->getImageHeight()); - $this->assertEquals('PNG', $image->getImageFormat()); + $this->assertSame($image->getImageWidth(), $original->getImageWidth()); + $this->assertSame($image->getImageHeight(), $original->getImageHeight()); + $this->assertSame('PNG', $image->getImageFormat()); $file4 = $this->client->call(Client::METHOD_GET, '/storage/buckets/' . $bucketId . '/files/' . $data['fileId'] . '/preview', array_merge([ 'content-type' => 'application/json', @@ -887,9 +887,9 @@ trait StorageBase $image->readImageBlob($file4['body']); $original = new \Imagick(__DIR__ . '/../../../resources/logo-after.jpg'); - $this->assertEquals($image->getImageWidth(), $original->getImageWidth()); - $this->assertEquals($image->getImageHeight(), $original->getImageHeight()); - $this->assertEquals('JPEG', $image->getImageFormat()); + $this->assertSame($image->getImageWidth(), $original->getImageWidth()); + $this->assertSame($image->getImageHeight(), $original->getImageHeight()); + $this->assertSame('JPEG', $image->getImageFormat()); $file5 = $this->client->call(Client::METHOD_GET, '/storage/buckets/' . $bucketId . '/files/' . $data['fileId'] . '/download', array_merge([ 'content-type' => 'application/json', @@ -974,9 +974,9 @@ trait StorageBase $image->readImageBlob($file7['body']); $original = new \Imagick(__DIR__ . '/../../../resources/logo-after.png'); - $this->assertEquals($image->getImageWidth(), $original->getImageWidth()); - $this->assertEquals($image->getImageHeight(), $original->getImageHeight()); - $this->assertEquals('PNG', $image->getImageFormat()); + $this->assertSame($image->getImageWidth(), $original->getImageWidth()); + $this->assertSame($image->getImageHeight(), $original->getImageHeight()); + $this->assertSame('PNG', $image->getImageFormat()); /** * Test large files decompress successfully @@ -1131,7 +1131,7 @@ trait StorageBase $imageAfter = new \Imagick(); $imageAfter->readImageBlob($file3['body']); - $this->assertNotEquals($imageBefore->getImageBlob(), $imageAfter->getImageBlob()); + $this->assertNotSame($imageBefore->getImageBlob(), $imageAfter->getImageBlob()); } public function testFilePreviewCacheControlOnCacheHit(): void @@ -1874,7 +1874,7 @@ trait StorageBase ])); $this->assertEquals(200, $download['headers']['status-code']); - $this->assertEquals($totalSize, strlen($download['body'])); + $this->assertSame($totalSize, strlen($download['body'])); $this->assertEquals(hash_file('sha256', $source), hash('sha256', $download['body'])); } finally { if (isset($bucketId)) { diff --git a/tests/e2e/Services/Teams/TeamsBase.php b/tests/e2e/Services/Teams/TeamsBase.php index 9def4b6c48..7e8dc69a3e 100644 --- a/tests/e2e/Services/Teams/TeamsBase.php +++ b/tests/e2e/Services/Teams/TeamsBase.php @@ -225,7 +225,7 @@ trait TeamsBase ]); $this->assertEquals(200, $response['headers']['status-code']); - $this->assertEquals(2, count($response['body']['teams'])); + $this->assertSame(2, count($response['body']['teams'])); $response = $this->client->call(Client::METHOD_GET, '/teams', array_merge([ 'content-type' => 'application/json', diff --git a/tests/e2e/Services/Tokens/TokensBase.php b/tests/e2e/Services/Tokens/TokensBase.php index 1fcdeb347f..6b85241ef1 100644 --- a/tests/e2e/Services/Tokens/TokensBase.php +++ b/tests/e2e/Services/Tokens/TokensBase.php @@ -218,9 +218,9 @@ trait TokensBase $image->readImageBlob($filePreview['body']); $original = new \Imagick(__DIR__ . '/../../../resources/logo.png'); - $this->assertEquals($image->getImageWidth(), $original->getImageWidth()); - $this->assertEquals($image->getImageHeight(), $original->getImageHeight()); - $this->assertEquals('PNG', $image->getImageFormat()); + $this->assertSame($image->getImageWidth(), $original->getImageWidth()); + $this->assertSame($image->getImageHeight(), $original->getImageHeight()); + $this->assertSame('PNG', $image->getImageFormat()); } public function testCustomPreviewFileWithToken(): void @@ -255,9 +255,9 @@ trait TokensBase $image->readImageBlob($customFilePreview['body']); $original = new \Imagick(__DIR__ . '/../../../resources/logo-after.png'); - $this->assertEquals($image->getImageWidth(), $original->getImageWidth()); - $this->assertEquals($image->getImageHeight(), $original->getImageHeight()); - $this->assertEquals('PNG', $image->getImageFormat()); + $this->assertSame($image->getImageWidth(), $original->getImageWidth()); + $this->assertSame($image->getImageHeight(), $original->getImageHeight()); + $this->assertSame('PNG', $image->getImageFormat()); } public function testViewFileWithToken(): void @@ -283,9 +283,9 @@ trait TokensBase $image->readImageBlob($fileView['body']); $original = new \Imagick(__DIR__ . '/../../../resources/logo.png'); - $this->assertEquals($image->getImageWidth(), $original->getImageWidth()); - $this->assertEquals($image->getImageHeight(), $original->getImageHeight()); - $this->assertEquals('PNG', $image->getImageFormat()); + $this->assertSame($image->getImageWidth(), $original->getImageWidth()); + $this->assertSame($image->getImageHeight(), $original->getImageHeight()); + $this->assertSame('PNG', $image->getImageFormat()); } public function testDownloadFileWithToken(): void @@ -311,9 +311,9 @@ trait TokensBase $image->readImageBlob($fileDownload['body']); $original = new \Imagick(__DIR__ . '/../../../resources/logo.png'); - $this->assertEquals($image->getImageWidth(), $original->getImageWidth()); - $this->assertEquals($image->getImageHeight(), $original->getImageHeight()); - $this->assertEquals('PNG', $image->getImageFormat()); + $this->assertSame($image->getImageWidth(), $original->getImageWidth()); + $this->assertSame($image->getImageHeight(), $original->getImageHeight()); + $this->assertSame('PNG', $image->getImageFormat()); } public function testFileAccessWithFileSecurity(): void @@ -392,9 +392,9 @@ trait TokensBase $image->readImageBlob($response['body']); $original = new \Imagick(__DIR__ . '/../../../resources/logo.png'); - $this->assertEquals($original->getImageWidth(), $image->getImageWidth()); - $this->assertEquals($original->getImageHeight(), $image->getImageHeight()); - $this->assertEquals('PNG', $image->getImageFormat()); + $this->assertSame($original->getImageWidth(), $image->getImageWidth()); + $this->assertSame($original->getImageHeight(), $image->getImageHeight()); + $this->assertSame('PNG', $image->getImageFormat()); } } diff --git a/tests/e2e/Services/Users/UsersBase.php b/tests/e2e/Services/Users/UsersBase.php index 57baf4b6f2..be39b35cae 100644 --- a/tests/e2e/Services/Users/UsersBase.php +++ b/tests/e2e/Services/Users/UsersBase.php @@ -327,7 +327,7 @@ trait UsersBase // Test empty prefs is object not array $bodyString = $user['body']; $prefs = substr($bodyString, strpos($bodyString, '"prefs":') + 8, 2); - $this->assertEquals('{}', $prefs); + $this->assertSame('{}', $prefs); $body = json_decode($bodyString, true); @@ -562,7 +562,7 @@ trait UsersBase $this->assertEquals(201, $token['headers']['status-code']); $this->assertEquals($data['userId'], $token['body']['userId']); - $this->assertEquals(15, strlen($token['body']['secret'])); + $this->assertSame(15, strlen($token['body']['secret'])); $this->assertNotEmpty($token['body']['expire']); /** diff --git a/tests/e2e/Services/Webhooks/WebhooksBase.php b/tests/e2e/Services/Webhooks/WebhooksBase.php index f926a97c81..6e4bd6dc37 100644 --- a/tests/e2e/Services/Webhooks/WebhooksBase.php +++ b/tests/e2e/Services/Webhooks/WebhooksBase.php @@ -39,7 +39,7 @@ trait WebhooksBase $this->assertEquals('', $webhook['body']['authUsername']); $this->assertEquals('', $webhook['body']['authPassword']); $this->assertNotEmpty($webhook['body']['secret']); - $this->assertEquals(128, \strlen($webhook['body']['secret'])); + $this->assertSame(128, \strlen($webhook['body']['secret'])); $this->assertEquals(0, $webhook['body']['attempts']); $this->assertEquals('', $webhook['body']['logs']); @@ -683,7 +683,7 @@ trait WebhooksBase $originalSecret = $webhook['body']['secret']; $this->assertNotEmpty($originalSecret); - $this->assertEquals(128, \strlen($originalSecret)); + $this->assertSame(128, \strlen($originalSecret)); // Update secret $updated = $this->updateWebhookSecret($webhookId); @@ -691,7 +691,7 @@ trait WebhooksBase $this->assertEquals(200, $updated['headers']['status-code']); $this->assertEquals($webhookId, $updated['body']['$id']); $this->assertNotEmpty($updated['body']['secret']); - $this->assertEquals(128, \strlen($updated['body']['secret'])); + $this->assertSame(128, \strlen($updated['body']['secret'])); $this->assertNotEquals($originalSecret, $updated['body']['secret']); // Verify secret is not exposed via GET @@ -726,7 +726,7 @@ trait WebhooksBase $webhookId = $webhook['body']['$id']; $originalSecret = $webhook['body']['secret']; $this->assertNotEmpty($originalSecret); - $this->assertEquals(128, \strlen($originalSecret)); + $this->assertSame(128, \strlen($originalSecret)); // Step 1: Trigger user creation with the original auto-generated secret $email1 = uniqid() . 'rotation1@localhost.test'; @@ -1908,7 +1908,7 @@ trait WebhooksBase $this->assertEquals('olduser', $webhook['body']['httpUser']); $this->assertEquals('oldpass', $webhook['body']['httpPass']); $this->assertNotEmpty($webhook['body']['signatureKey']); - $this->assertEquals(128, \strlen($webhook['body']['signatureKey'])); + $this->assertSame(128, \strlen($webhook['body']['signatureKey'])); // Cleanup $this->deleteWebhook($webhook['body']['$id']); @@ -2108,7 +2108,7 @@ trait WebhooksBase $this->assertArrayNotHasKey('authPassword', $updated['body']); $this->assertNotEmpty($updated['body']['signatureKey']); - $this->assertEquals(128, \strlen($updated['body']['signatureKey'])); + $this->assertSame(128, \strlen($updated['body']['signatureKey'])); // Cleanup $this->deleteWebhook($webhookId); From 135be0160cb4548723e56a407314a43c709334eb Mon Sep 17 00:00:00 2001 From: fogelito Date: Tue, 11 Aug 2026 10:17:15 +0300 Subject: [PATCH 4/4] checks --- composer.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/composer.json b/composer.json index 8aea34b8c2..258948e461 100644 --- a/composer.json +++ b/composer.json @@ -131,6 +131,9 @@ "config": { "platform": { }, + "audit": { + "abandoned": "report" + }, "allow-plugins": { "php-http/discovery": true, "tbachert/spi": true