From 49c17d61f04bcd52fefa28bb438cc862a0b889f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Mon, 16 Nov 2026 14:49:53 +0100 Subject: [PATCH] chore(tests): upgrade to Pest 5, PHPUnit 13, pest-plugin-phpstan and phpstan-webmozart-assert --- .../Actions/Common/ChangeModelOrderInput.php | 3 - .../Common/ChangeModelOrderPositionInput.php | 2 - .../Actions/Common/ToggleModelStarInput.php | 3 - .../Actions/Common/ToggleModelStatusInput.php | 3 - composer.json | 12 +- composer.lock | 1541 ++++++++++------- domain/Models/ValueObjects/DiscountValue.php | 2 +- phpstan.neon | 3 +- tests/Architecture/ApplicationTest.php | 203 ++- tests/Architecture/CodingStandardsTest.php | 83 +- tests/Architecture/DomainTest.php | 139 +- tests/Architecture/InfraTest.php | 11 +- tests/Architecture/NamingConventionsTest.php | 231 ++- 13 files changed, 1298 insertions(+), 938 deletions(-) diff --git a/app/Cqs/Actions/Common/ChangeModelOrderInput.php b/app/Cqs/Actions/Common/ChangeModelOrderInput.php index a640a04a..4d4470bb 100644 --- a/app/Cqs/Actions/Common/ChangeModelOrderInput.php +++ b/app/Cqs/Actions/Common/ChangeModelOrderInput.php @@ -7,7 +7,6 @@ namespace App\Cqs\Actions\Common; use App\Contracts\ActionInput; use App\Interfaces\ModelWithOrder; use Illuminate\Database\Eloquent\Model; -use Webmozart\Assert\Assert; final readonly class ChangeModelOrderInput implements ActionInput { @@ -15,7 +14,5 @@ final readonly class ChangeModelOrderInput implements ActionInput public Model & ModelWithOrder $model, public \SortDirection $direction, ) { - Assert::isInstanceOf($this->model, Model::class); - Assert::isInstanceOf($this->model, ModelWithOrder::class); } } diff --git a/app/Cqs/Actions/Common/ChangeModelOrderPositionInput.php b/app/Cqs/Actions/Common/ChangeModelOrderPositionInput.php index 23ff8799..b15756f9 100644 --- a/app/Cqs/Actions/Common/ChangeModelOrderPositionInput.php +++ b/app/Cqs/Actions/Common/ChangeModelOrderPositionInput.php @@ -15,8 +15,6 @@ final readonly class ChangeModelOrderPositionInput implements ActionInput public Model & ModelWithOrder $model, public int $targetOrder, ) { - Assert::isInstanceOf($this->model, Model::class); - Assert::isInstanceOf($this->model, ModelWithOrder::class); Assert::greaterThanEq($this->targetOrder, 1); } } diff --git a/app/Cqs/Actions/Common/ToggleModelStarInput.php b/app/Cqs/Actions/Common/ToggleModelStarInput.php index 14b6a1ef..616b8b42 100644 --- a/app/Cqs/Actions/Common/ToggleModelStarInput.php +++ b/app/Cqs/Actions/Common/ToggleModelStarInput.php @@ -7,14 +7,11 @@ namespace App\Cqs\Actions\Common; use App\Contracts\ActionInput; use App\Interfaces\ModelWithStar; use Illuminate\Database\Eloquent\Model; -use Webmozart\Assert\Assert; final readonly class ToggleModelStarInput implements ActionInput { public function __construct( public Model & ModelWithStar $model, ) { - Assert::isInstanceOf($this->model, Model::class); - Assert::isInstanceOf($this->model, ModelWithStar::class); } } diff --git a/app/Cqs/Actions/Common/ToggleModelStatusInput.php b/app/Cqs/Actions/Common/ToggleModelStatusInput.php index 293cae51..73d66a4a 100644 --- a/app/Cqs/Actions/Common/ToggleModelStatusInput.php +++ b/app/Cqs/Actions/Common/ToggleModelStatusInput.php @@ -7,14 +7,11 @@ namespace App\Cqs\Actions\Common; use App\Contracts\ActionInput; use App\Interfaces\ModelWithStatus; use Illuminate\Database\Eloquent\Model; -use Webmozart\Assert\Assert; final readonly class ToggleModelStatusInput implements ActionInput { public function __construct( public Model & ModelWithStatus $model, ) { - Assert::isInstanceOf($this->model, Model::class); - Assert::isInstanceOf($this->model, ModelWithStatus::class); } } diff --git a/composer.json b/composer.json index 5e691fec..96aa2a36 100644 --- a/composer.json +++ b/composer.json @@ -44,13 +44,15 @@ "mockery/mockery": "^1.6", "nunomaduro/collision": "^8.6", "nunomaduro/mock-final-classes": "^1.2", - "pestphp/pest": "^4.0", - "pestphp/pest-plugin-faker": "^4.0", - "pestphp/pest-plugin-laravel": "^4.0", - "pestphp/pest-plugin-type-coverage": "^4.0", + "pestphp/pest": "^5.0", + "pestphp/pest-plugin-faker": "^5.0", + "pestphp/pest-plugin-laravel": "^5.0", + "pestphp/pest-plugin-phpstan": "^5.0", + "pestphp/pest-plugin-type-coverage": "^5.0", "php-parallel-lint/php-parallel-lint": "^1.4", "phpstan/phpstan-mockery": "^2.0", - "phpunit/phpunit": "^12.5", + "phpstan/phpstan-webmozart-assert": "^2.0", + "phpunit/phpunit": "^13.0", "slevomat/coding-standard": "^8.30", "spatie/laravel-ignition": "^2.0" }, diff --git a/composer.lock b/composer.lock index fb6a68c9..54c115a3 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": "5a27a0a2588a9b83fa85e242925d5128", + "content-hash": "dce4eeb75bd161f29c2bd6141296349c", "packages": [ { "name": "aws/aws-crt-php", @@ -281,7 +281,8 @@ "type": "github" } ], - "time": "2026-09-12T10:28:18+00:00" + "time": "2026-09-12T10:28:18+00:00", + "published-time": "2026-09-12T12:23:30+00:00" }, { "name": "carbonphp/carbon-doctrine-types", @@ -355,7 +356,8 @@ "type": "tidelift" } ], - "time": "2026-09-06T14:11:38+00:00" + "time": "2026-09-06T14:11:38+00:00", + "published-time": "2026-09-06T14:15:00+00:00" }, { "name": "composer/pcre", @@ -583,7 +585,8 @@ "issues": "https://github.com/dflydev/dflydev-dot-access-data/issues", "source": "https://github.com/dflydev/dflydev-dot-access-data/tree/v3.0.3" }, - "time": "2024-07-08T12:26:09+00:00" + "time": "2024-07-08T12:26:09+00:00", + "published-time": "2024-07-08T12:27:13+00:00" }, { "name": "diglactic/laravel-breadcrumbs", @@ -743,7 +746,8 @@ "type": "tidelift" } ], - "time": "2026-10-26T08:14:14+00:00" + "time": "2026-10-26T08:14:14+00:00", + "published-time": "2026-10-26T20:06:59+00:00" }, { "name": "doctrine/lexer", @@ -818,7 +822,8 @@ "type": "tidelift" } ], - "time": "2026-10-01T06:59:29+00:00" + "time": "2026-10-01T06:59:29+00:00", + "published-time": "2026-10-01T07:01:28+00:00" }, { "name": "dragonmantank/cron-expression", @@ -882,7 +887,8 @@ "type": "github" } ], - "time": "2026-10-19T17:53:57+00:00" + "time": "2026-10-19T17:53:57+00:00", + "published-time": "2026-10-19T17:54:31+00:00" }, { "name": "dxw/cidr", @@ -1045,7 +1051,8 @@ "type": "github" } ], - "time": "2025-03-06T22:45:56+00:00" + "time": "2025-03-06T22:45:56+00:00", + "published-time": "2025-03-20T21:39:03+00:00" }, { "name": "ezyang/htmlpurifier", @@ -1230,7 +1237,8 @@ "type": "github" } ], - "time": "2025-12-03T09:33:47+00:00" + "time": "2025-12-03T09:33:47+00:00", + "published-time": "2025-12-03T09:37:01+00:00" }, { "name": "giggsey/libphonenumber-for-php-lite", @@ -1370,7 +1378,8 @@ "type": "tidelift" } ], - "time": "2026-08-24T09:06:52+00:00" + "time": "2026-08-24T09:06:52+00:00", + "published-time": "2026-08-24T09:07:57+00:00" }, { "name": "guzzlehttp/guzzle", @@ -1498,7 +1507,8 @@ "type": "tidelift" } ], - "time": "2026-10-25T21:35:21+00:00" + "time": "2026-10-25T21:35:21+00:00", + "published-time": "2026-10-25T21:37:23+00:00" }, { "name": "guzzlehttp/promises", @@ -1582,7 +1592,8 @@ "type": "tidelift" } ], - "time": "2026-10-18T12:46:59+00:00" + "time": "2026-10-18T12:46:59+00:00", + "published-time": "2026-10-18T12:47:39+00:00" }, { "name": "guzzlehttp/psr7", @@ -1701,7 +1712,8 @@ "type": "tidelift" } ], - "time": "2026-11-12T15:57:42+00:00" + "time": "2026-11-12T15:57:42+00:00", + "published-time": "2026-11-12T15:58:42+00:00" }, { "name": "guzzlehttp/uri-template", @@ -1787,7 +1799,8 @@ "type": "tidelift" } ], - "time": "2026-08-24T17:13:02+00:00" + "time": "2026-08-24T17:13:02+00:00", + "published-time": "2026-08-24T17:13:22+00:00" }, { "name": "intervention/gif", @@ -1991,7 +2004,8 @@ "issues": "https://github.com/Jean85/pretty-package-versions/issues", "source": "https://github.com/Jean85/pretty-package-versions/tree/2.1.1" }, - "time": "2025-03-19T14:43:43+00:00" + "time": "2025-03-19T14:43:43+00:00", + "published-time": "2025-03-19T14:50:06+00:00" }, { "name": "kwaadpepper/serial-int-caster", @@ -2269,7 +2283,8 @@ "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" }, - "time": "2026-11-10T15:54:30+00:00" + "time": "2026-11-10T15:54:30+00:00", + "published-time": "2026-11-10T15:55:04+00:00" }, { "name": "laravel/prompts", @@ -2327,7 +2342,8 @@ "support": { "source": "https://github.com/laravel/prompts/tree/v0.3.27" }, - "time": "2026-11-09T16:07:10+00:00" + "time": "2026-11-09T16:07:10+00:00", + "published-time": "2026-11-09T16:09:07+00:00" }, { "name": "laravel/serializable-closure", @@ -2388,7 +2404,8 @@ "issues": "https://github.com/laravel/serializable-closure/issues", "source": "https://github.com/laravel/serializable-closure" }, - "time": "2026-10-14T21:20:29+00:00" + "time": "2026-10-14T21:20:29+00:00", + "published-time": "2026-11-10T16:11:08+00:00" }, { "name": "laravel/tinker", @@ -2678,7 +2695,8 @@ "type": "tidelift" } ], - "time": "2026-10-31T13:35:37+00:00" + "time": "2026-10-31T13:35:37+00:00", + "published-time": "2026-10-31T13:35:57+00:00" }, { "name": "league/config", @@ -2760,7 +2778,8 @@ "type": "github" } ], - "time": "2022-12-11T20:36:23+00:00" + "time": "2022-12-11T20:36:23+00:00", + "published-time": "2022-12-11T20:36:45+00:00" }, { "name": "league/csv", @@ -2938,7 +2957,8 @@ "issues": "https://github.com/thephpleague/flysystem/issues", "source": "https://github.com/thephpleague/flysystem/tree/3.36.0" }, - "time": "2026-09-02T08:00:27+00:00" + "time": "2026-09-02T08:00:27+00:00", + "published-time": "2026-09-02T08:01:40+00:00" }, { "name": "league/flysystem-aws-s3-v3", @@ -3042,7 +3062,8 @@ "support": { "source": "https://github.com/thephpleague/flysystem-local/tree/3.35.3" }, - "time": "2026-08-12T13:29:21+00:00" + "time": "2026-08-12T13:29:21+00:00", + "published-time": "2026-08-22T12:57:18+00:00" }, { "name": "league/flysystem-path-prefixing", @@ -3144,7 +3165,8 @@ "type": "tidelift" } ], - "time": "2026-07-09T11:49:27+00:00" + "time": "2026-07-09T11:49:27+00:00", + "published-time": "2026-07-09T11:50:09+00:00" }, { "name": "league/uri", @@ -3243,7 +3265,8 @@ "type": "github" } ], - "time": "2026-11-04T12:45:07+00:00" + "time": "2026-11-04T12:45:07+00:00", + "published-time": "2026-11-04T13:02:21+00:00" }, { "name": "league/uri-interfaces", @@ -3327,7 +3350,8 @@ "type": "github" } ], - "time": "2026-11-04T12:45:07+00:00" + "time": "2026-11-04T12:45:07+00:00", + "published-time": "2026-11-04T13:02:27+00:00" }, { "name": "maatwebsite/excel", @@ -4108,16 +4132,16 @@ }, { "name": "monolog/monolog", - "version": "3.12.1", + "version": "3.13.0", "source": { "type": "git", "url": "https://github.com/Seldaek/monolog.git", - "reference": "d7059e4c691d05ea1222b5124bed0f961be46e15" + "reference": "1f5f55bb4a9a230ff6d8a4ceccea31d10b0142ac" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Seldaek/monolog/zipball/d7059e4c691d05ea1222b5124bed0f961be46e15", - "reference": "d7059e4c691d05ea1222b5124bed0f961be46e15", + "url": "https://api.github.com/repos/Seldaek/monolog/zipball/1f5f55bb4a9a230ff6d8a4ceccea31d10b0142ac", + "reference": "1f5f55bb4a9a230ff6d8a4ceccea31d10b0142ac", "shasum": "" }, "require": { @@ -4197,7 +4221,7 @@ ], "support": { "issues": "https://github.com/Seldaek/monolog/issues", - "source": "https://github.com/Seldaek/monolog/tree/3.12.1" + "source": "https://github.com/Seldaek/monolog/tree/3.13.0" }, "funding": [ { @@ -4209,7 +4233,8 @@ "type": "tidelift" } ], - "time": "2026-09-29T19:21:12+00:00" + "time": "2026-11-16T10:43:05+00:00", + "published-time": "2026-11-16T10:45:37+00:00" }, { "name": "mtdowling/jmespath.php", @@ -4381,7 +4406,8 @@ "type": "tidelift" } ], - "time": "2026-10-25T14:32:48+00:00" + "time": "2026-10-25T14:32:48+00:00", + "published-time": "2026-10-25T14:41:05+00:00" }, { "name": "nette/schema", @@ -4448,7 +4474,8 @@ "issues": "https://github.com/nette/schema/issues", "source": "https://github.com/nette/schema/tree/v1.4.0" }, - "time": "2026-10-22T02:12:50+00:00" + "time": "2026-10-22T02:12:50+00:00", + "published-time": "2026-10-22T02:14:45+00:00" }, { "name": "nette/utils", @@ -4539,7 +4566,8 @@ "issues": "https://github.com/nette/utils/issues", "source": "https://github.com/nette/utils/tree/v4.1.6" }, - "time": "2026-10-20T17:07:56+00:00" + "time": "2026-10-20T17:07:56+00:00", + "published-time": "2026-10-20T17:48:30+00:00" }, { "name": "nikic/php-parser", @@ -4596,7 +4624,8 @@ "issues": "https://github.com/nikic/PHP-Parser/issues", "source": "https://github.com/nikic/PHP-Parser/tree/v5.9.0" }, - "time": "2026-09-13T18:51:52+00:00" + "time": "2026-09-13T18:51:52+00:00", + "published-time": "2026-09-13T18:53:16+00:00" }, { "name": "nunomaduro/termwind", @@ -4683,7 +4712,8 @@ "type": "github" } ], - "time": "2026-11-07T03:57:16+00:00" + "time": "2026-11-07T03:57:16+00:00", + "published-time": "2026-11-07T04:01:24+00:00" }, { "name": "nyholm/psr7", @@ -5237,7 +5267,8 @@ "issues": "https://github.com/paragonie/random_compat/issues", "source": "https://github.com/paragonie/random_compat" }, - "time": "2020-10-15T08:29:30+00:00" + "time": "2020-10-15T08:29:30+00:00", + "published-time": "2020-10-15T08:34:16+00:00" }, { "name": "php-http/discovery", @@ -5608,7 +5639,8 @@ "type": "tidelift" } ], - "time": "2026-08-24T00:54:40+00:00" + "time": "2026-08-24T00:54:40+00:00", + "published-time": "2026-08-24T01:09:05+00:00" }, { "name": "phpseclib/phpseclib", @@ -5838,7 +5870,8 @@ "issues": "https://github.com/php-fig/clock/issues", "source": "https://github.com/php-fig/clock/tree/1.0.0" }, - "time": "2022-11-25T14:36:26+00:00" + "time": "2022-11-25T14:36:26+00:00", + "published-time": "2022-11-25T14:59:22+00:00" }, { "name": "psr/container", @@ -5891,7 +5924,8 @@ "issues": "https://github.com/php-fig/container/issues", "source": "https://github.com/php-fig/container/tree/2.0.2" }, - "time": "2021-11-05T16:47:00+00:00" + "time": "2021-11-05T16:47:00+00:00", + "published-time": "2021-11-05T16:53:27+00:00" }, { "name": "psr/event-dispatcher", @@ -5941,7 +5975,8 @@ "issues": "https://github.com/php-fig/event-dispatcher/issues", "source": "https://github.com/php-fig/event-dispatcher/tree/1.0.0" }, - "time": "2019-01-08T18:20:26+00:00" + "time": "2019-01-08T18:20:26+00:00", + "published-time": "2019-03-25T15:31:44+00:00" }, { "name": "psr/http-client", @@ -5993,7 +6028,8 @@ "support": { "source": "https://github.com/php-fig/http-client" }, - "time": "2023-09-23T14:17:50+00:00" + "time": "2023-09-23T14:17:50+00:00", + "published-time": "2023-09-23T14:18:12+00:00" }, { "name": "psr/http-factory", @@ -6048,7 +6084,8 @@ "support": { "source": "https://github.com/php-fig/http-factory" }, - "time": "2024-04-15T12:06:14+00:00" + "time": "2024-04-15T12:06:14+00:00", + "published-time": "2024-05-10T07:32:19+00:00" }, { "name": "psr/http-message", @@ -6101,7 +6138,8 @@ "support": { "source": "https://github.com/php-fig/http-message/tree/2.0" }, - "time": "2023-04-04T09:54:51+00:00" + "time": "2023-04-04T09:54:51+00:00", + "published-time": "2023-04-04T09:55:35+00:00" }, { "name": "psr/log", @@ -6151,7 +6189,8 @@ "support": { "source": "https://github.com/php-fig/log/tree/3.0.2" }, - "time": "2024-09-11T13:17:53+00:00" + "time": "2024-09-11T13:17:53+00:00", + "published-time": "2024-09-11T13:21:14+00:00" }, { "name": "psr/simple-cache", @@ -6202,7 +6241,8 @@ "support": { "source": "https://github.com/php-fig/simple-cache/tree/3.0.0" }, - "time": "2021-10-29T13:26:27+00:00" + "time": "2021-10-29T13:26:27+00:00", + "published-time": "2021-10-29T13:27:19+00:00" }, { "name": "psy/psysh", @@ -6325,7 +6365,8 @@ "issues": "https://github.com/ralouphie/getallheaders/issues", "source": "https://github.com/ralouphie/getallheaders/tree/develop" }, - "time": "2019-03-08T08:55:37+00:00" + "time": "2019-03-08T08:55:37+00:00", + "published-time": "2019-03-08T09:01:32+00:00" }, { "name": "ramsey/collection", @@ -6401,20 +6442,21 @@ "issues": "https://github.com/ramsey/collection/issues", "source": "https://github.com/ramsey/collection/tree/2.1.1" }, - "time": "2025-03-22T05:38:12+00:00" + "time": "2025-03-22T05:38:12+00:00", + "published-time": "2025-03-22T05:39:22+00:00" }, { "name": "ramsey/uuid", - "version": "4.9.4", + "version": "4.10.0", "source": { "type": "git", "url": "https://github.com/ramsey/uuid.git", - "reference": "75d73f48d02797c2c285a7e9f348fadc0102ffe2" + "reference": "f9aa3efc8015fcbc013d84d699583b268ccb593a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/ramsey/uuid/zipball/75d73f48d02797c2c285a7e9f348fadc0102ffe2", - "reference": "75d73f48d02797c2c285a7e9f348fadc0102ffe2", + "url": "https://api.github.com/repos/ramsey/uuid/zipball/f9aa3efc8015fcbc013d84d699583b268ccb593a", + "reference": "f9aa3efc8015fcbc013d84d699583b268ccb593a", "shasum": "" }, "require": { @@ -6426,23 +6468,22 @@ "rhumsaa/uuid": "self.version" }, "require-dev": { - "captainhook/captainhook": "^5.25", - "captainhook/plugin-composer": "^5.3", - "dealerdirect/phpcodesniffer-composer-installer": "^1.0", - "ergebnis/composer-normalize": "^2.47", - "mockery/mockery": "^1.6", - "paragonie/random-lib": "^2", - "php-mock/php-mock": "^2.6", - "php-mock/php-mock-mockery": "^1.5", + "captainhook/captainhook": "^5.29.3", + "captainhook/plugin-composer": "^5.3.3", + "dealerdirect/phpcodesniffer-composer-installer": "^1.2.1", + "mockery/mockery": "^1.6.15", + "paragonie/random-lib": "^2.0.3", + "php-mock/php-mock": "^2.7.0", + "php-mock/php-mock-mockery": "^1.5.0", "php-parallel-lint/php-parallel-lint": "^1.4.0", "phpbench/phpbench": "^1.2.14", - "phpstan/extension-installer": "^1.4", - "phpstan/phpstan": "^2.1", - "phpstan/phpstan-mockery": "^2.0", - "phpstan/phpstan-phpunit": "^2.0", - "phpunit/phpunit": "^9.6", - "slevomat/coding-standard": "^8.18", - "squizlabs/php_codesniffer": "^3.13" + "phpstan/extension-installer": "^1.4.3", + "phpstan/phpstan": "^2.3.5", + "phpstan/phpstan-mockery": "^2.0.0", + "phpstan/phpstan-phpunit": "^2.1.2", + "phpunit/phpunit": "^9.6.39", + "slevomat/coding-standard": "^8.31.3", + "squizlabs/php_codesniffer": "^4.0.4" }, "suggest": { "ext-bcmath": "Enables faster math with arbitrary-precision integers using BCMath.", @@ -6477,9 +6518,10 @@ ], "support": { "issues": "https://github.com/ramsey/uuid/issues", - "source": "https://github.com/ramsey/uuid/tree/4.9.4" + "source": "https://github.com/ramsey/uuid/tree/4.10.0" }, - "time": "2026-09-16T11:39:30+00:00" + "time": "2026-11-14T23:23:20+00:00", + "published-time": "2026-11-14T23:35:39+00:00" }, { "name": "respect/stringifier", @@ -7230,7 +7272,8 @@ "type": "tidelift" } ], - "time": "2026-10-12T14:32:04+00:00" + "time": "2026-10-12T14:32:04+00:00", + "published-time": "2026-10-14T06:48:32+00:00" }, { "name": "symfony/console", @@ -7330,7 +7373,8 @@ "type": "tidelift" } ], - "time": "2026-11-04T07:07:11+00:00" + "time": "2026-11-04T07:07:11+00:00", + "published-time": "2026-11-04T11:31:39+00:00" }, { "name": "symfony/css-selector", @@ -7399,7 +7443,8 @@ "type": "tidelift" } ], - "time": "2026-10-18T14:56:39+00:00" + "time": "2026-10-18T14:56:39+00:00", + "published-time": "2026-10-28T18:24:46+00:00" }, { "name": "symfony/deprecation-contracts", @@ -7470,7 +7515,8 @@ "type": "tidelift" } ], - "time": "2026-09-16T14:15:10+00:00" + "time": "2026-09-16T14:15:10+00:00", + "published-time": "2026-11-04T11:25:34+00:00" }, { "name": "symfony/dom-crawler", @@ -7621,7 +7667,8 @@ "type": "tidelift" } ], - "time": "2026-10-25T14:40:25+00:00" + "time": "2026-10-25T14:40:25+00:00", + "published-time": "2026-10-28T18:24:13+00:00" }, { "name": "symfony/event-dispatcher", @@ -7707,7 +7754,8 @@ "type": "tidelift" } ], - "time": "2026-08-21T17:47:34+00:00" + "time": "2026-08-21T17:47:34+00:00", + "published-time": "2026-08-22T13:46:58+00:00" }, { "name": "symfony/event-dispatcher-contracts", @@ -7787,7 +7835,8 @@ "type": "tidelift" } ], - "time": "2026-09-16T14:15:10+00:00" + "time": "2026-09-16T14:15:10+00:00", + "published-time": "2026-11-04T11:25:36+00:00" }, { "name": "symfony/filesystem", @@ -7926,7 +7975,8 @@ "type": "tidelift" } ], - "time": "2026-11-02T10:58:30+00:00" + "time": "2026-11-02T10:58:30+00:00", + "published-time": "2026-11-04T11:31:20+00:00" }, { "name": "symfony/http-foundation", @@ -8007,7 +8057,8 @@ "type": "tidelift" } ], - "time": "2026-11-04T08:39:20+00:00" + "time": "2026-11-04T08:39:20+00:00", + "published-time": "2026-11-04T11:31:54+00:00" }, { "name": "symfony/http-kernel", @@ -8117,7 +8168,8 @@ "type": "tidelift" } ], - "time": "2026-11-04T11:29:46+00:00" + "time": "2026-11-04T11:29:46+00:00", + "published-time": "2026-11-04T11:32:19+00:00" }, { "name": "symfony/mailer", @@ -8197,7 +8249,8 @@ "type": "tidelift" } ], - "time": "2026-10-23T17:06:53+00:00" + "time": "2026-10-23T17:06:53+00:00", + "published-time": "2026-10-28T18:23:52+00:00" }, { "name": "symfony/mime", @@ -8283,7 +8336,8 @@ "type": "tidelift" } ], - "time": "2026-10-28T17:58:38+00:00" + "time": "2026-10-28T17:58:38+00:00", + "published-time": "2026-10-28T18:23:55+00:00" }, { "name": "symfony/options-resolver", @@ -8437,7 +8491,8 @@ "type": "tidelift" } ], - "time": "2026-04-10T16:19:22+00:00" + "time": "2026-04-10T16:19:22+00:00", + "published-time": "2026-04-26T14:44:50+00:00" }, { "name": "symfony/polyfill-intl-grapheme", @@ -8519,7 +8574,8 @@ "type": "tidelift" } ], - "time": "2026-10-15T09:18:53+00:00" + "time": "2026-10-15T09:18:53+00:00", + "published-time": "2026-10-28T10:07:44+00:00" }, { "name": "symfony/polyfill-intl-idn", @@ -8606,7 +8662,8 @@ "type": "tidelift" } ], - "time": "2026-09-23T14:40:04+00:00" + "time": "2026-09-23T14:40:04+00:00", + "published-time": "2026-09-30T10:23:39+00:00" }, { "name": "symfony/polyfill-intl-normalizer", @@ -8691,7 +8748,8 @@ "type": "tidelift" } ], - "time": "2026-09-23T22:02:09+00:00" + "time": "2026-09-23T22:02:09+00:00", + "published-time": "2026-09-30T10:23:47+00:00" }, { "name": "symfony/polyfill-mbstring", @@ -8776,7 +8834,8 @@ "type": "tidelift" } ], - "time": "2026-10-28T09:35:49+00:00" + "time": "2026-10-28T09:35:49+00:00", + "published-time": "2026-10-28T10:07:45+00:00" }, { "name": "symfony/polyfill-php80", @@ -8860,7 +8919,8 @@ "type": "tidelift" } ], - "time": "2026-09-25T15:50:05+00:00" + "time": "2026-09-25T15:50:05+00:00", + "published-time": "2026-09-30T10:23:35+00:00" }, { "name": "symfony/polyfill-php84", @@ -8940,20 +9000,21 @@ "type": "tidelift" } ], - "time": "2026-09-23T22:01:09+00:00" + "time": "2026-09-23T22:01:09+00:00", + "published-time": "2026-09-30T10:23:33+00:00" }, { "name": "symfony/polyfill-php85", - "version": "v1.43.0", + "version": "v1.44.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php85.git", - "reference": "86a42cbcc07adc331481a5ab310a4024bfc227f6" + "reference": "94c794cb5ba51784bc259f11e9f128593297d8dc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php85/zipball/86a42cbcc07adc331481a5ab310a4024bfc227f6", - "reference": "86a42cbcc07adc331481a5ab310a4024bfc227f6", + "url": "https://api.github.com/repos/symfony/polyfill-php85/zipball/94c794cb5ba51784bc259f11e9f128593297d8dc", + "reference": "94c794cb5ba51784bc259f11e9f128593297d8dc", "shasum": "" }, "require": { @@ -9000,7 +9061,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php85/tree/v1.43.0" + "source": "https://github.com/symfony/polyfill-php85/tree/v1.44.0" }, "funding": [ { @@ -9020,7 +9081,8 @@ "type": "tidelift" } ], - "time": "2026-09-25T15:46:47+00:00" + "time": "2026-10-30T15:20:09+00:00", + "published-time": "2026-11-15T14:20:22+00:00" }, { "name": "symfony/polyfill-php86", @@ -9100,7 +9162,8 @@ "type": "tidelift" } ], - "time": "2026-09-25T15:46:47+00:00" + "time": "2026-09-25T15:46:47+00:00", + "published-time": "2026-09-30T10:23:43+00:00" }, { "name": "symfony/polyfill-time", @@ -9183,7 +9246,8 @@ "type": "tidelift" } ], - "time": "2026-08-07T13:08:13+00:00" + "time": "2026-08-07T13:08:13+00:00", + "published-time": "2026-08-24T11:45:15+00:00" }, { "name": "symfony/polyfill-uuid", @@ -9266,7 +9330,8 @@ "type": "tidelift" } ], - "time": "2026-09-24T05:20:52+00:00" + "time": "2026-09-24T05:20:52+00:00", + "published-time": "2026-09-30T10:23:49+00:00" }, { "name": "symfony/process", @@ -9331,7 +9396,8 @@ "type": "tidelift" } ], - "time": "2026-10-25T14:40:25+00:00" + "time": "2026-10-25T14:40:25+00:00", + "published-time": "2026-10-28T18:25:20+00:00" }, { "name": "symfony/psr-http-message-bridge", @@ -9498,7 +9564,8 @@ "type": "tidelift" } ], - "time": "2026-11-04T08:39:20+00:00" + "time": "2026-11-04T08:39:20+00:00", + "published-time": "2026-11-04T11:30:59+00:00" }, { "name": "symfony/service-contracts", @@ -9585,7 +9652,8 @@ "type": "tidelift" } ], - "time": "2026-10-20T17:38:25+00:00" + "time": "2026-10-20T17:38:25+00:00", + "published-time": "2026-11-04T11:25:33+00:00" }, { "name": "symfony/string", @@ -9675,7 +9743,8 @@ "type": "tidelift" } ], - "time": "2026-10-23T17:06:53+00:00" + "time": "2026-10-23T17:06:53+00:00", + "published-time": "2026-10-28T18:24:27+00:00" }, { "name": "symfony/translation", @@ -9768,7 +9837,8 @@ "type": "tidelift" } ], - "time": "2026-11-01T22:27:46+00:00" + "time": "2026-11-01T22:27:46+00:00", + "published-time": "2026-11-04T11:31:54+00:00" }, { "name": "symfony/translation-contracts", @@ -9850,7 +9920,8 @@ "type": "tidelift" } ], - "time": "2026-10-03T08:17:19+00:00" + "time": "2026-10-03T08:17:19+00:00", + "published-time": "2026-11-04T11:25:31+00:00" }, { "name": "symfony/uid", @@ -9928,7 +9999,8 @@ "type": "tidelift" } ], - "time": "2026-10-12T14:32:04+00:00" + "time": "2026-10-12T14:32:04+00:00", + "published-time": "2026-10-14T06:48:53+00:00" }, { "name": "symfony/var-dumper", @@ -10015,7 +10087,8 @@ "type": "tidelift" } ], - "time": "2026-10-26T21:55:04+00:00" + "time": "2026-10-26T21:55:04+00:00", + "published-time": "2026-10-28T18:25:26+00:00" }, { "name": "tbachert/spi", @@ -10122,7 +10195,8 @@ "issues": "https://github.com/tijsverkoyen/CssToInlineStyles/issues", "source": "https://github.com/tijsverkoyen/CssToInlineStyles/tree/v2.4.0" }, - "time": "2025-12-02T11:56:42+00:00" + "time": "2025-12-02T11:56:42+00:00", + "published-time": "2025-12-11T21:29:16+00:00" }, { "name": "uwil/arcadia-api-php-client", @@ -10713,7 +10787,8 @@ "type": "tidelift" } ], - "time": "2026-10-25T16:26:19+00:00" + "time": "2026-10-25T16:26:19+00:00", + "published-time": "2026-10-25T16:26:50+00:00" }, { "name": "voku/portable-ascii", @@ -10787,20 +10862,21 @@ "type": "tidelift" } ], - "time": "2026-04-26T05:33:54+00:00" + "time": "2026-04-26T05:33:54+00:00", + "published-time": "2026-04-26T05:43:38+00:00" }, { "name": "webmozart/assert", - "version": "2.5.0", + "version": "2.5.1", "source": { "type": "git", "url": "https://github.com/webmozarts/assert.git", - "reference": "8a163706bbcac613733dba03f51e13b5eb1bb819" + "reference": "e578132c01bd0c64108386ab20d8217cd175ddec" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/webmozarts/assert/zipball/8a163706bbcac613733dba03f51e13b5eb1bb819", - "reference": "8a163706bbcac613733dba03f51e13b5eb1bb819", + "url": "https://api.github.com/repos/webmozarts/assert/zipball/e578132c01bd0c64108386ab20d8217cd175ddec", + "reference": "e578132c01bd0c64108386ab20d8217cd175ddec", "shasum": "" }, "require": { @@ -10851,9 +10927,10 @@ ], "support": { "issues": "https://github.com/webmozarts/assert/issues", - "source": "https://github.com/webmozarts/assert/tree/2.5.0" + "source": "https://github.com/webmozarts/assert/tree/2.5.1" }, - "time": "2026-10-05T23:14:19+00:00" + "time": "2026-11-15T13:41:13+00:00", + "published-time": "2026-11-15T13:41:42+00:00" } ], "packages-dev": [ @@ -11110,16 +11187,16 @@ }, { "name": "brianium/paratest", - "version": "v7.20.0", + "version": "v7.29.0", "source": { "type": "git", "url": "https://github.com/paratestphp/paratest.git", - "reference": "81c80677c9ec0ed4ef16b246167f11dec81a6e3d" + "reference": "2e4bbc8340be877d4f1a82f993a387e2c8c76272" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/paratestphp/paratest/zipball/81c80677c9ec0ed4ef16b246167f11dec81a6e3d", - "reference": "81c80677c9ec0ed4ef16b246167f11dec81a6e3d", + "url": "https://api.github.com/repos/paratestphp/paratest/zipball/2e4bbc8340be877d4f1a82f993a387e2c8c76272", + "reference": "2e4bbc8340be877d4f1a82f993a387e2c8c76272", "shasum": "" }, "require": { @@ -11127,27 +11204,27 @@ "ext-pcre": "*", "ext-reflection": "*", "ext-simplexml": "*", - "fidry/cpu-core-counter": "^1.3.0", + "fidry/cpu-core-counter": "^1.4.1", "jean85/pretty-package-versions": "^2.1.1", - "php": "~8.3.0 || ~8.4.0 || ~8.5.0", - "phpunit/php-code-coverage": "^12.5.3 || ^13.0.1", - "phpunit/php-file-iterator": "^6.0.1 || ^7", - "phpunit/php-timer": "^8 || ^9", - "phpunit/phpunit": "^12.5.14 || ^13.0.5", - "sebastian/environment": "^8.0.3 || ^9", - "symfony/console": "^7.4.7 || ^8.0.7", - "symfony/process": "^7.4.5 || ^8.0.5" + "php": "~8.4.0 || ~8.5.0 || ~8.6.0", + "phpunit/php-code-coverage": "^14.5.2", + "phpunit/php-file-iterator": "^7.0.2", + "phpunit/php-timer": "^9", + "phpunit/phpunit": "^13.4.7", + "sebastian/environment": "^9.3.3", + "symfony/console": "^7.4.20 || ^8.1.8", + "symfony/process": "^7.4.19 || ^8.1.7" }, "require-dev": { "doctrine/coding-standard": "^14.0.0", "ext-pcntl": "*", "ext-pcov": "*", "ext-posix": "*", - "phpstan/phpstan": "^2.1.44", - "phpstan/phpstan-deprecation-rules": "^2.0.4", - "phpstan/phpstan-phpunit": "^2.0.16", - "phpstan/phpstan-strict-rules": "^2.0.10", - "symfony/filesystem": "^7.4.6 || ^8.0.6" + "phpstan/phpstan": "^2.3.5", + "phpstan/phpstan-deprecation-rules": "^2.0.5", + "phpstan/phpstan-phpunit": "^2.1.2", + "phpstan/phpstan-strict-rules": "^2.1.1", + "symfony/filesystem": "^7.4.18 || ^8.1.6" }, "bin": [ "bin/paratest", @@ -11187,7 +11264,7 @@ ], "support": { "issues": "https://github.com/paratestphp/paratest/issues", - "source": "https://github.com/paratestphp/paratest/tree/v7.20.0" + "source": "https://github.com/paratestphp/paratest/tree/v7.29.0" }, "funding": [ { @@ -11199,7 +11276,8 @@ "type": "paypal" } ], - "time": "2026-03-29T15:46:14+00:00" + "time": "2026-11-14T20:49:33+00:00", + "published-time": "2026-11-14T20:50:36+00:00" }, { "name": "codezero/browser-locale", @@ -11340,72 +11418,6 @@ ], "time": "2026-11-03T10:10:19+00:00" }, - { - "name": "composer/xdebug-handler", - "version": "3.0.5", - "source": { - "type": "git", - "url": "https://github.com/composer/xdebug-handler.git", - "reference": "6c1925561632e83d60a44492e0b344cf48ab85ef" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/6c1925561632e83d60a44492e0b344cf48ab85ef", - "reference": "6c1925561632e83d60a44492e0b344cf48ab85ef", - "shasum": "" - }, - "require": { - "composer/pcre": "^1 || ^2 || ^3", - "php": "^7.2.5 || ^8.0", - "psr/log": "^1 || ^2 || ^3" - }, - "require-dev": { - "phpstan/phpstan": "^1.0", - "phpstan/phpstan-strict-rules": "^1.1", - "phpunit/phpunit": "^8.5 || ^9.6 || ^10.5" - }, - "type": "library", - "autoload": { - "psr-4": { - "Composer\\XdebugHandler\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "John Stevenson", - "email": "john-stevenson@blueyonder.co.uk" - } - ], - "description": "Restarts a process without Xdebug.", - "keywords": [ - "Xdebug", - "performance" - ], - "support": { - "irc": "ircs://irc.libera.chat:6697/composer", - "issues": "https://github.com/composer/xdebug-handler/issues", - "source": "https://github.com/composer/xdebug-handler/tree/3.0.5" - }, - "funding": [ - { - "url": "https://packagist.com", - "type": "custom" - }, - { - "url": "https://github.com/composer", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/composer/composer", - "type": "tidelift" - } - ], - "time": "2024-05-06T16:37:16+00:00" - }, { "name": "dealerdirect/phpcodesniffer-composer-installer", "version": "v1.2.1", @@ -11605,7 +11617,8 @@ "issues": "https://github.com/doctrine/deprecations/issues", "source": "https://github.com/doctrine/deprecations/tree/1.2.0" }, - "time": "2026-11-11T10:04:49+00:00" + "time": "2026-11-11T10:04:49+00:00", + "published-time": "2026-11-11T10:12:24+00:00" }, { "name": "dragon-code/contracts", @@ -11838,16 +11851,16 @@ }, { "name": "entropy/entropy", - "version": "0.4.36", + "version": "0.4.37", "source": { "type": "git", "url": "https://github.com/TomasVotruba/entropy.git", - "reference": "9f08272a96275d22a9d9808a32581392920626db" + "reference": "57bd06e1652f3c38148944b4880ee3b6e6284da3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/TomasVotruba/entropy/zipball/9f08272a96275d22a9d9808a32581392920626db", - "reference": "9f08272a96275d22a9d9808a32581392920626db", + "url": "https://api.github.com/repos/TomasVotruba/entropy/zipball/57bd06e1652f3c38148944b4880ee3b6e6284da3", + "reference": "57bd06e1652f3c38148944b4880ee3b6e6284da3", "shasum": "" }, "require": { @@ -11883,9 +11896,10 @@ "description": "Entropy framework", "support": { "issues": "https://github.com/TomasVotruba/entropy/issues", - "source": "https://github.com/TomasVotruba/entropy/tree/0.4.36" + "source": "https://github.com/TomasVotruba/entropy/tree/0.4.37" }, - "time": "2026-10-26T16:46:17+00:00" + "time": "2026-11-14T16:57:42+00:00", + "published-time": "2026-11-14T16:57:58+00:00" }, { "name": "fakerphp/faker", @@ -11948,7 +11962,8 @@ "issues": "https://github.com/FakerPHP/Faker/issues", "source": "https://github.com/FakerPHP/Faker/tree/v1.24.1" }, - "time": "2024-11-21T13:46:39+00:00" + "time": "2024-11-21T13:46:39+00:00", + "published-time": "2024-11-21T13:47:18+00:00" }, { "name": "fidry/cpu-core-counter", @@ -12010,7 +12025,8 @@ "type": "github" } ], - "time": "2026-09-29T22:11:39+00:00" + "time": "2026-09-29T22:11:39+00:00", + "published-time": "2026-09-29T22:12:43+00:00" }, { "name": "filp/whoops", @@ -12081,7 +12097,8 @@ "type": "github" } ], - "time": "2026-11-09T23:30:17+00:00" + "time": "2026-11-09T23:30:17+00:00", + "published-time": "2026-11-09T23:32:45+00:00" }, { "name": "hamcrest/hamcrest-php", @@ -13834,7 +13851,8 @@ "type": "github" } ], - "time": "2026-08-11T10:17:44+00:00" + "time": "2026-08-11T10:17:44+00:00", + "published-time": "2026-08-11T10:29:20+00:00" }, { "name": "nunomaduro/collision", @@ -13930,7 +13948,8 @@ "type": "patreon" } ], - "time": "2026-11-10T17:06:52+00:00" + "time": "2026-11-10T17:06:52+00:00", + "published-time": "2026-11-10T17:23:22+00:00" }, { "name": "nunomaduro/mock-final-classes", @@ -14082,46 +14101,48 @@ "type": "patreon" } ], - "time": "2026-04-12T12:06:31+00:00" + "time": "2026-04-12T12:06:31+00:00", + "published-time": "2026-04-12T12:07:55+00:00" }, { "name": "pestphp/pest", - "version": "v4.7.8", + "version": "v5.3.6", "source": { "type": "git", "url": "https://github.com/pestphp/pest.git", - "reference": "5b2293f67adcf1b2320b33f521b94a692d18f360" + "reference": "848c740a44e5994e524f35ce9d4345bacf0dec74" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/pestphp/pest/zipball/5b2293f67adcf1b2320b33f521b94a692d18f360", - "reference": "5b2293f67adcf1b2320b33f521b94a692d18f360", + "url": "https://api.github.com/repos/pestphp/pest/zipball/848c740a44e5994e524f35ce9d4345bacf0dec74", + "reference": "848c740a44e5994e524f35ce9d4345bacf0dec74", "shasum": "" }, "require": { - "brianium/paratest": "^7.20.0", - "composer/xdebug-handler": "^3.0.5", - "nunomaduro/collision": "^8.9.5", - "nunomaduro/termwind": "^2.4.0", - "pestphp/pest-plugin": "^4.0.0", - "pestphp/pest-plugin-arch": "^4.0.2", - "pestphp/pest-plugin-mutate": "^4.0.1", - "pestphp/pest-plugin-profanity": "^4.2.1", - "php": "^8.3.0", - "phpunit/phpunit": "^12.5.33", - "symfony/process": "^7.4.13|^8.1.0" + "brianium/paratest": "^7.29.0", + "nunomaduro/collision": "^8.9.6", + "nunomaduro/termwind": "^2.4.1", + "pestphp/pest-plugin": "^5.0.0", + "pestphp/pest-plugin-arch": "^5.0.0", + "pestphp/pest-plugin-mutate": "^5.0.2", + "pestphp/pest-plugin-profanity": "^5.0.1", + "php": "^8.4", + "phpunit/phpunit": "^13.4.7", + "symfony/process": "^8.1.10" }, "conflict": { "filp/whoops": "<2.18.3", - "phpunit/phpunit": ">12.5.33", + "laravel/boost": "<2.6.0", + "phpunit/phpunit": ">13.4.7", "sebastian/exporter": "<7.0.0", "webmozart/assert": "<1.11.0" }, "require-dev": { - "mrpunyapal/peststan": "^0.2.12", - "pestphp/pest-dev-tools": "^4.1.0", - "pestphp/pest-plugin-browser": "^4.3.1", - "pestphp/pest-plugin-type-coverage": "^4.0.4", + "pestphp/pest-dev-tools": "^5.0.0", + "pestphp/pest-plugin-browser": "^5.2.0", + "pestphp/pest-plugin-phpstan": "^5.3.1", + "pestphp/pest-plugin-rector": "^5.0.6", + "pestphp/pest-plugin-type-coverage": "^5.1.0", "psy/psysh": "^0.12.24" }, "bin": [ @@ -14149,6 +14170,7 @@ "Pest\\Plugins\\Verbose", "Pest\\Plugins\\Version", "Pest\\Plugins\\Shard", + "Pest\\Plugins\\Tia", "Pest\\Plugins\\Parallel" ] }, @@ -14188,7 +14210,7 @@ ], "support": { "issues": "https://github.com/pestphp/pest/issues", - "source": "https://github.com/pestphp/pest/tree/v4.7.8" + "source": "https://github.com/pestphp/pest/tree/v5.3.6" }, "funding": [ { @@ -14200,34 +14222,35 @@ "type": "github" } ], - "time": "2026-08-03T20:49:44+00:00" + "time": "2026-11-14T21:14:48+00:00", + "published-time": "2026-11-14T21:21:17+00:00" }, { "name": "pestphp/pest-plugin", - "version": "v4.0.0", + "version": "v5.0.0", "source": { "type": "git", "url": "https://github.com/pestphp/pest-plugin.git", - "reference": "9d4b93d7f73d3f9c3189bb22c220fef271cdf568" + "reference": "87283f41aafa2561b7618be53eab00f2d06f4140" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/pestphp/pest-plugin/zipball/9d4b93d7f73d3f9c3189bb22c220fef271cdf568", - "reference": "9d4b93d7f73d3f9c3189bb22c220fef271cdf568", + "url": "https://api.github.com/repos/pestphp/pest-plugin/zipball/87283f41aafa2561b7618be53eab00f2d06f4140", + "reference": "87283f41aafa2561b7618be53eab00f2d06f4140", "shasum": "" }, "require": { "composer-plugin-api": "^2.0.0", "composer-runtime-api": "^2.2.2", - "php": "^8.3" + "php": "^8.4" }, "conflict": { - "pestphp/pest": "<4.0.0" + "pestphp/pest": "<5.0.0" }, "require-dev": { - "composer/composer": "^2.8.10", - "pestphp/pest": "^4.0.0", - "pestphp/pest-dev-tools": "^4.0.0" + "composer/composer": "^2.10.2", + "pestphp/pest": "^5.0.0", + "pestphp/pest-dev-tools": "^5.0.0" }, "type": "composer-plugin", "extra": { @@ -14254,7 +14277,7 @@ "unit" ], "support": { - "source": "https://github.com/pestphp/pest-plugin/tree/v4.0.0" + "source": "https://github.com/pestphp/pest-plugin/tree/v5.0.0" }, "funding": [ { @@ -14270,30 +14293,34 @@ "type": "patreon" } ], - "time": "2025-08-20T12:35:58+00:00" + "time": "2026-07-18T17:10:45+00:00", + "published-time": "2026-07-28T14:33:43+00:00" }, { "name": "pestphp/pest-plugin-arch", - "version": "v4.0.2", + "version": "v5.0.0", "source": { "type": "git", "url": "https://github.com/pestphp/pest-plugin-arch.git", - "reference": "3fb0d02a91b9da504b139dc7ab2a31efb7c3215c" + "reference": "244465d5dc9ea9fb5ac5c9badb7eb47d1594e4c1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/pestphp/pest-plugin-arch/zipball/3fb0d02a91b9da504b139dc7ab2a31efb7c3215c", - "reference": "3fb0d02a91b9da504b139dc7ab2a31efb7c3215c", + "url": "https://api.github.com/repos/pestphp/pest-plugin-arch/zipball/244465d5dc9ea9fb5ac5c9badb7eb47d1594e4c1", + "reference": "244465d5dc9ea9fb5ac5c9badb7eb47d1594e4c1", "shasum": "" }, "require": { - "pestphp/pest-plugin": "^4.0.0", - "php": "^8.3", + "pestphp/pest-plugin": "^5.0.0", + "php": "^8.4", "ta-tikoma/phpunit-architecture-test": "^0.8.7" }, + "conflict": { + "pestphp/pest": "<5.0.0" + }, "require-dev": { - "pestphp/pest": "^4.4.6", - "pestphp/pest-dev-tools": "^4.1.0" + "pestphp/pest": "^5.0.0", + "pestphp/pest-dev-tools": "^5.0.0" }, "type": "library", "extra": { @@ -14328,7 +14355,7 @@ "unit" ], "support": { - "source": "https://github.com/pestphp/pest-plugin-arch/tree/v4.0.2" + "source": "https://github.com/pestphp/pest-plugin-arch/tree/v5.0.0" }, "funding": [ { @@ -14340,29 +14367,33 @@ "type": "github" } ], - "time": "2026-04-10T17:20:19+00:00" + "time": "2026-07-21T07:48:55+00:00", + "published-time": "2026-07-28T14:33:47+00:00" }, { "name": "pestphp/pest-plugin-faker", - "version": "v4.0.0", + "version": "v5.0.0", "source": { "type": "git", "url": "https://github.com/pestphp/pest-plugin-faker.git", - "reference": "afb07eeca115cc19a2f5e20a4ec113ee6e26d4ec" + "reference": "131cf00ecf0814dc0969633763ab7577a714e8d6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/pestphp/pest-plugin-faker/zipball/afb07eeca115cc19a2f5e20a4ec113ee6e26d4ec", - "reference": "afb07eeca115cc19a2f5e20a4ec113ee6e26d4ec", + "url": "https://api.github.com/repos/pestphp/pest-plugin-faker/zipball/131cf00ecf0814dc0969633763ab7577a714e8d6", + "reference": "131cf00ecf0814dc0969633763ab7577a714e8d6", "shasum": "" }, "require": { "fakerphp/faker": "^1.24.1", - "pestphp/pest": "^4.0.0", - "php": "^8.3.0" + "pestphp/pest": "^5.0.0", + "php": "^8.4" + }, + "conflict": { + "pestphp/pest": "<5.0.0" }, "require-dev": { - "pestphp/pest-dev-tools": "^4.0.0" + "pestphp/pest-dev-tools": "^5.0.0" }, "type": "library", "autoload": { @@ -14389,7 +14420,7 @@ "unit" ], "support": { - "source": "https://github.com/pestphp/pest-plugin-faker/tree/v4.0.0" + "source": "https://github.com/pestphp/pest-plugin-faker/tree/v5.0.0" }, "funding": [ { @@ -14405,31 +14436,35 @@ "type": "patreon" } ], - "time": "2025-08-20T10:22:28+00:00" + "time": "2026-07-21T07:48:56+00:00", + "published-time": "2026-07-28T14:33:57+00:00" }, { "name": "pestphp/pest-plugin-laravel", - "version": "v4.1.0", + "version": "v5.0.1", "source": { "type": "git", "url": "https://github.com/pestphp/pest-plugin-laravel.git", - "reference": "3057a36669ff11416cc0dc2b521b3aec58c488d0" + "reference": "d1564646e3198f1b607e64a36501d6edff7d104e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/pestphp/pest-plugin-laravel/zipball/3057a36669ff11416cc0dc2b521b3aec58c488d0", - "reference": "3057a36669ff11416cc0dc2b521b3aec58c488d0", + "url": "https://api.github.com/repos/pestphp/pest-plugin-laravel/zipball/d1564646e3198f1b607e64a36501d6edff7d104e", + "reference": "d1564646e3198f1b607e64a36501d6edff7d104e", "shasum": "" }, "require": { - "laravel/framework": "^11.45.2|^12.52.0|^13.0", - "pestphp/pest": "^4.4.1", - "php": "^8.3.0" + "laravel/framework": "^13.23.0", + "pestphp/pest": "^5.0.1", + "php": "^8.4" + }, + "conflict": { + "pestphp/pest": "<5.0.0" }, "require-dev": { - "laravel/dusk": "^8.3.6", - "orchestra/testbench": "^9.13.0|^10.9.0|^11.0", - "pestphp/pest-dev-tools": "^4.1.0" + "laravel/dusk": "^8.6.0", + "orchestra/testbench": "^11.1", + "pestphp/pest-dev-tools": "^5.0.0" }, "type": "library", "extra": { @@ -14467,7 +14502,7 @@ "unit" ], "support": { - "source": "https://github.com/pestphp/pest-plugin-laravel/tree/v4.1.0" + "source": "https://github.com/pestphp/pest-plugin-laravel/tree/v5.0.1" }, "funding": [ { @@ -14479,32 +14514,37 @@ "type": "github" } ], - "time": "2026-02-21T00:29:45+00:00" + "time": "2026-07-29T18:19:36+00:00", + "published-time": "2026-07-29T18:21:59+00:00" }, { "name": "pestphp/pest-plugin-mutate", - "version": "v4.0.1", + "version": "v5.0.2", "source": { "type": "git", "url": "https://github.com/pestphp/pest-plugin-mutate.git", - "reference": "d9b32b60b2385e1688a68cc227594738ec26d96c" + "reference": "d0c87110416b699413cc073b8dcc92e440d81931" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/pestphp/pest-plugin-mutate/zipball/d9b32b60b2385e1688a68cc227594738ec26d96c", - "reference": "d9b32b60b2385e1688a68cc227594738ec26d96c", + "url": "https://api.github.com/repos/pestphp/pest-plugin-mutate/zipball/d0c87110416b699413cc073b8dcc92e440d81931", + "reference": "d0c87110416b699413cc073b8dcc92e440d81931", "shasum": "" }, "require": { - "nikic/php-parser": "^5.6.1", - "pestphp/pest-plugin": "^4.0.0", - "php": "^8.3", + "nikic/php-parser": "^5.8.0", + "pestphp/pest-plugin": "^5.0.0", + "php": "^8.4", + "phpunit/php-code-coverage": "^14.3.0", "psr/simple-cache": "^3.0.0" }, + "conflict": { + "pestphp/pest": "<5.0.0" + }, "require-dev": { - "pestphp/pest": "^4.0.0", - "pestphp/pest-dev-tools": "^4.0.0", - "pestphp/pest-plugin-type-coverage": "^4.0.0" + "pestphp/pest": "^5.0.4", + "pestphp/pest-dev-tools": "^5.0.0", + "pestphp/pest-plugin-type-coverage": "^5.0.2" }, "type": "library", "autoload": { @@ -14539,7 +14579,7 @@ "unit" ], "support": { - "source": "https://github.com/pestphp/pest-plugin-mutate/tree/v4.0.1" + "source": "https://github.com/pestphp/pest-plugin-mutate/tree/v5.0.2" }, "funding": [ { @@ -14555,30 +14595,127 @@ "type": "github" } ], - "time": "2025-08-21T20:19:25+00:00" + "time": "2026-08-10T11:01:27+00:00", + "published-time": "2026-08-10T11:01:53+00:00" }, { - "name": "pestphp/pest-plugin-profanity", - "version": "v4.2.1", + "name": "pestphp/pest-plugin-phpstan", + "version": "v5.3.1", "source": { "type": "git", - "url": "https://github.com/pestphp/pest-plugin-profanity.git", - "reference": "343cfa6f3564b7e35df0ebb77b7fa97039f72b27" + "url": "https://github.com/pestphp/pest-plugin-phpstan.git", + "reference": "a56d8e58dc8892ff89e15c4bca38e74f9f97ff99" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/pestphp/pest-plugin-profanity/zipball/343cfa6f3564b7e35df0ebb77b7fa97039f72b27", - "reference": "343cfa6f3564b7e35df0ebb77b7fa97039f72b27", + "url": "https://api.github.com/repos/pestphp/pest-plugin-phpstan/zipball/a56d8e58dc8892ff89e15c4bca38e74f9f97ff99", + "reference": "a56d8e58dc8892ff89e15c4bca38e74f9f97ff99", "shasum": "" }, "require": { - "pestphp/pest-plugin": "^4.0.0", - "php": "^8.3" + "pestphp/pest": "^5.0.0", + "php": "^8.4", + "phpstan/phpstan": "^2.2.5" + }, + "conflict": { + "pestphp/pest": "<5.0.0" }, "require-dev": { - "faissaloux/pest-plugin-inside": "^1.9", - "pestphp/pest": "^4.0.0", - "pestphp/pest-dev-tools": "^4.0.0" + "laravel/pao": "^1.1.2", + "laravel/pint": "^1.29.3", + "pestphp/pest-plugin-rector": "^5.0", + "phpstan/extension-installer": "^1.4.3", + "phpstan/phpstan-strict-rules": "^2.0.12", + "rector/rector": "^2.5.7" + }, + "type": "phpstan-extension", + "extra": { + "phpstan": { + "includes": [ + "extension.neon" + ] + } + }, + "autoload": { + "psr-4": { + "Pest\\PHPStan\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Punyapal Shah", + "email": "mrpunyapal@gmail.com" + }, + { + "name": "Nuno Maduro", + "email": "enunomaduro@gmail.com" + } + ], + "description": "PHPStan plugin for Pest", + "keywords": [ + "PHPStan", + "framework", + "pest", + "php", + "plugin", + "test", + "testing", + "unit" + ], + "support": { + "source": "https://github.com/pestphp/pest-plugin-phpstan/tree/v5.3.1" + }, + "funding": [ + { + "url": "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=66BYDWAT92N6L", + "type": "custom" + }, + { + "url": "https://github.com/mrpunyapal", + "type": "github" + }, + { + "url": "https://github.com/nunomaduro", + "type": "github" + }, + { + "url": "https://www.patreon.com/nunomaduro", + "type": "patreon" + } + ], + "time": "2026-11-02T07:22:57+00:00", + "published-time": "2026-11-02T07:24:28+00:00" + }, + { + "name": "pestphp/pest-plugin-profanity", + "version": "v5.0.1", + "source": { + "type": "git", + "url": "https://github.com/pestphp/pest-plugin-profanity.git", + "reference": "2b5fc73ce561b835ba5bf9596c97a84333af2eb8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/pestphp/pest-plugin-profanity/zipball/2b5fc73ce561b835ba5bf9596c97a84333af2eb8", + "reference": "2b5fc73ce561b835ba5bf9596c97a84333af2eb8", + "shasum": "" + }, + "require": { + "pestphp/pest-plugin": "^5.0.0", + "php": "^8.4" + }, + "conflict": { + "pestphp/pest": "<5.0.0", + "phpunit/phpunit": "<13.4.1" + }, + "require-dev": { + "faissaloux/pest-plugin-inside": "^1.11", + "pestphp/pest": "^5.0.0", + "pestphp/pest-dev-tools": "^5.0.0" }, "type": "library", "extra": { @@ -14609,34 +14746,40 @@ "unit" ], "support": { - "source": "https://github.com/pestphp/pest-plugin-profanity/tree/v4.2.1" + "source": "https://github.com/pestphp/pest-plugin-profanity/tree/v5.0.1" }, - "time": "2025-12-08T00:13:17+00:00" + "time": "2026-10-07T19:41:52+00:00", + "published-time": "2026-10-07T19:42:16+00:00" }, { "name": "pestphp/pest-plugin-type-coverage", - "version": "v4.0.4", + "version": "v5.1.0", "source": { "type": "git", "url": "https://github.com/pestphp/pest-plugin-type-coverage.git", - "reference": "f485d40ec4e2081f9d3456c00f2c008f145d7896" + "reference": "3951c85494cede417987c6418005b96e68e30e5b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/pestphp/pest-plugin-type-coverage/zipball/f485d40ec4e2081f9d3456c00f2c008f145d7896", - "reference": "f485d40ec4e2081f9d3456c00f2c008f145d7896", + "url": "https://api.github.com/repos/pestphp/pest-plugin-type-coverage/zipball/3951c85494cede417987c6418005b96e68e30e5b", + "reference": "3951c85494cede417987c6418005b96e68e30e5b", "shasum": "" }, "require": { - "nunomaduro/pokio": "^1.0.0", - "pestphp/pest-plugin": "^4.0.0", - "php": "^8.3", - "phpstan/phpstan": "^1.12.24|^2.1.46", - "tomasvotruba/type-coverage": "^1.0.0|^2.1.0" + "nunomaduro/pokio": "^1.0.1", + "pestphp/pest-plugin": "^5.0.0", + "php": "^8.4", + "phpstan/phpstan": "^2.3.4", + "tomasvotruba/type-coverage": "^2.5.1" + }, + "conflict": { + "pestphp/pest": "<5.0.0", + "phpstan/phpstan": "<2.2.7", + "phpunit/phpunit": "<13.4.1" }, "require-dev": { - "pestphp/pest": "^4.4.5", - "pestphp/pest-dev-tools": "^4.1.0" + "pestphp/pest": "^5.3.4", + "pestphp/pest-dev-tools": "^5.0.0" }, "type": "library", "extra": { @@ -14668,7 +14811,7 @@ "unit" ], "support": { - "source": "https://github.com/pestphp/pest-plugin-type-coverage/tree/v4.0.4" + "source": "https://github.com/pestphp/pest-plugin-type-coverage/tree/v5.1.0" }, "funding": [ { @@ -14680,7 +14823,8 @@ "type": "github" } ], - "time": "2026-04-06T14:00:30+00:00" + "time": "2026-10-30T09:08:01+00:00", + "published-time": "2026-10-30T09:08:27+00:00" }, { "name": "phar-io/manifest", @@ -14747,7 +14891,8 @@ "type": "github" } ], - "time": "2024-03-03T12:33:53+00:00" + "time": "2024-03-03T12:33:53+00:00", + "published-time": "2024-03-03T12:39:44+00:00" }, { "name": "phar-io/version", @@ -14798,7 +14943,8 @@ "issues": "https://github.com/phar-io/version/issues", "source": "https://github.com/phar-io/version/tree/3.2.1" }, - "time": "2022-02-21T01:04:05+00:00" + "time": "2022-02-21T01:04:05+00:00", + "published-time": "2022-02-21T01:04:30+00:00" }, { "name": "php-parallel-lint/php-parallel-lint", @@ -14917,7 +15063,8 @@ "issues": "https://github.com/phpDocumentor/ReflectionCommon/issues", "source": "https://github.com/phpDocumentor/ReflectionCommon/tree/2.2.1" }, - "time": "2025-11-10T21:21:55+00:00" + "time": "2025-11-10T21:21:55+00:00", + "published-time": "2026-09-27T10:14:49+00:00" }, { "name": "phpdocumentor/reflection-docblock", @@ -14982,7 +15129,8 @@ "issues": "https://github.com/phpDocumentor/ReflectionDocBlock/issues", "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/6.0.3" }, - "time": "2026-03-18T20:49:53+00:00" + "time": "2026-03-18T20:49:53+00:00", + "published-time": "2026-03-18T20:51:16+00:00" }, { "name": "phpdocumentor/type-resolver", @@ -15040,7 +15188,8 @@ "issues": "https://github.com/phpDocumentor/TypeResolver/issues", "source": "https://github.com/phpDocumentor/TypeResolver/tree/2.1.0" }, - "time": "2026-09-27T19:32:54+00:00" + "time": "2026-09-27T19:32:54+00:00", + "published-time": "2026-09-28T18:39:55+00:00" }, { "name": "phpstan/phpdoc-parser", @@ -15087,15 +15236,16 @@ "issues": "https://github.com/phpstan/phpdoc-parser/issues", "source": "https://github.com/phpstan/phpdoc-parser/tree/2.4.1" }, - "time": "2026-10-30T19:36:28+00:00" + "time": "2026-10-30T19:36:28+00:00", + "published-time": "2026-10-30T19:37:11+00:00" }, { "name": "phpstan/phpstan", - "version": "2.3.5", + "version": "2.3.6", "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/645a1bd6bead15fc1b8474137467961d0fa30a79", - "reference": "645a1bd6bead15fc1b8474137467961d0fa30a79", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/00cedebb76cc82c1592414fa4f616cefdccda16f", + "reference": "00cedebb76cc82c1592414fa4f616cefdccda16f", "shasum": "" }, "require": { @@ -15151,7 +15301,8 @@ "type": "github" } ], - "time": "2026-11-03T12:14:22+00:00" + "time": "2026-11-15T19:58:26+00:00", + "published-time": "2026-11-15T19:58:39+00:00" }, { "name": "phpstan/phpstan-mockery", @@ -15204,34 +15355,87 @@ "published-time": "2024-11-11T07:42:39+00:00" }, { - "name": "phpunit/php-code-coverage", - "version": "12.5.8", + "name": "phpstan/phpstan-webmozart-assert", + "version": "2.0.0", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "7440368d94738d54f2c1de24dbd3871793bbb0dd" + "url": "https://github.com/phpstan/phpstan-webmozart-assert.git", + "reference": "0c641817d2a8f05c7157f92d91986e74d3c8ab0c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/7440368d94738d54f2c1de24dbd3871793bbb0dd", - "reference": "7440368d94738d54f2c1de24dbd3871793bbb0dd", + "url": "https://api.github.com/repos/phpstan/phpstan-webmozart-assert/zipball/0c641817d2a8f05c7157f92d91986e74d3c8ab0c", + "reference": "0c641817d2a8f05c7157f92d91986e74d3c8ab0c", + "shasum": "" + }, + "require": { + "php": "^7.4 || ^8.0", + "phpstan/phpstan": "^2.0" + }, + "require-dev": { + "nikic/php-parser": "^5.1", + "php-parallel-lint/php-parallel-lint": "^1.2", + "phpstan/phpstan-deprecation-rules": "^2.0", + "phpstan/phpstan-phpunit": "^2.0", + "phpstan/phpstan-strict-rules": "^2.0", + "phpunit/phpunit": "^9.6", + "webmozart/assert": "^1.11.0" + }, + "type": "phpstan-extension", + "extra": { + "phpstan": { + "includes": [ + "extension.neon" + ] + } + }, + "autoload": { + "psr-4": { + "PHPStan\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "PHPStan webmozart/assert extension", + "support": { + "issues": "https://github.com/phpstan/phpstan-webmozart-assert/issues", + "source": "https://github.com/phpstan/phpstan-webmozart-assert/tree/2.0.0" + }, + "time": "2024-10-14T03:45:26+00:00", + "published-time": "2024-11-11T07:42:24+00:00" + }, + { + "name": "phpunit/php-code-coverage", + "version": "14.5.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-code-coverage.git", + "reference": "2f122b9b48af71ad9b4448368febc26af86534c9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/2f122b9b48af71ad9b4448368febc26af86534c9", + "reference": "2f122b9b48af71ad9b4448368febc26af86534c9", "shasum": "" }, "require": { "ext-dom": "*", "ext-libxml": "*", + "ext-mbstring": "*", "ext-xmlwriter": "*", "nikic/php-parser": "^5.9.0", - "php": ">=8.3", - "phpunit/php-text-template": "^5.0.1", - "sebastian/complexity": "^5.0", - "sebastian/environment": "^8.1.2", - "sebastian/lines-of-code": "^4.0.1", - "sebastian/version": "^6.0", - "theseer/tokenizer": "^2.0.1" + "php": ">=8.4", + "phpunit/php-text-template": "^6.0.1", + "sebastian/complexity": "^6.0", + "sebastian/environment": "^9.3.3", + "sebastian/git-state": "^1.1.0", + "sebastian/lines-of-code": "^5.0.2", + "sebastian/version": "^7.0.1" }, "require-dev": { - "phpunit/phpunit": "^12.5.37" + "phpunit/phpunit": "^13.4.6" }, "suggest": { "ext-pcov": "PHP extension that provides line coverage", @@ -15240,7 +15444,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "12.5.x-dev" + "dev-main": "14.5.x-dev" } }, "autoload": { @@ -15269,7 +15473,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", "security": "https://github.com/sebastianbergmann/php-code-coverage/security/policy", - "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/12.5.8" + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/14.5.2" }, "funding": [ { @@ -15289,32 +15493,33 @@ "type": "tidelift" } ], - "time": "2026-10-03T14:03:50+00:00" + "time": "2026-11-09T05:24:08+00:00", + "published-time": "2026-11-09T05:25:09+00:00" }, { "name": "phpunit/php-file-iterator", - "version": "6.0.2", + "version": "7.0.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-file-iterator.git", - "reference": "a248d1640ab059b075f53a2ef0f9856e864e06b5" + "reference": "9bb4e6c58b62c1e043be995c66abec7c97307aae" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/a248d1640ab059b075f53a2ef0f9856e864e06b5", - "reference": "a248d1640ab059b075f53a2ef0f9856e864e06b5", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/9bb4e6c58b62c1e043be995c66abec7c97307aae", + "reference": "9bb4e6c58b62c1e043be995c66abec7c97307aae", "shasum": "" }, "require": { - "php": ">=8.3" + "php": ">=8.4" }, "require-dev": { - "phpunit/phpunit": "^12.5.33" + "phpunit/phpunit": "^13.3.1" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "6.0-dev" + "dev-main": "7.0-dev" } }, "autoload": { @@ -15342,7 +15547,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", "security": "https://github.com/sebastianbergmann/php-file-iterator/security/policy", - "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/6.0.2" + "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/7.0.2" }, "funding": [ { @@ -15362,28 +15567,29 @@ "type": "tidelift" } ], - "time": "2026-08-25T14:40:53+00:00" + "time": "2026-08-25T14:47:43+00:00", + "published-time": "2026-08-25T14:48:49+00:00" }, { "name": "phpunit/php-invoker", - "version": "6.0.0", + "version": "7.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-invoker.git", - "reference": "12b54e689b07a25a9b41e57736dfab6ec9ae5406" + "reference": "42e5c5cae0c65df12d1b1a3ab52bf3f50f244d88" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/12b54e689b07a25a9b41e57736dfab6ec9ae5406", - "reference": "12b54e689b07a25a9b41e57736dfab6ec9ae5406", + "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/42e5c5cae0c65df12d1b1a3ab52bf3f50f244d88", + "reference": "42e5c5cae0c65df12d1b1a3ab52bf3f50f244d88", "shasum": "" }, "require": { - "php": ">=8.3" + "php": ">=8.4" }, "require-dev": { "ext-pcntl": "*", - "phpunit/phpunit": "^12.0" + "phpunit/phpunit": "^13.0" }, "suggest": { "ext-pcntl": "*" @@ -15391,7 +15597,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "6.0-dev" + "dev-main": "7.0-dev" } }, "autoload": { @@ -15418,40 +15624,53 @@ "support": { "issues": "https://github.com/sebastianbergmann/php-invoker/issues", "security": "https://github.com/sebastianbergmann/php-invoker/security/policy", - "source": "https://github.com/sebastianbergmann/php-invoker/tree/6.0.0" + "source": "https://github.com/sebastianbergmann/php-invoker/tree/7.0.0" }, "funding": [ { "url": "https://github.com/sebastianbergmann", "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpunit/php-invoker", + "type": "tidelift" } ], - "time": "2025-02-07T04:58:58+00:00" + "time": "2026-02-06T04:34:47+00:00", + "published-time": "2026-02-06T04:35:29+00:00" }, { "name": "phpunit/php-text-template", - "version": "5.0.1", + "version": "6.0.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-text-template.git", - "reference": "babab73b7ef9fae406f2eb3ee11323a61caa63d5" + "reference": "97107691cb2b6c743b5e0c44be19e983cb337a02" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/babab73b7ef9fae406f2eb3ee11323a61caa63d5", - "reference": "babab73b7ef9fae406f2eb3ee11323a61caa63d5", + "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/97107691cb2b6c743b5e0c44be19e983cb337a02", + "reference": "97107691cb2b6c743b5e0c44be19e983cb337a02", "shasum": "" }, "require": { - "php": ">=8.3" + "php": ">=8.4" }, "require-dev": { - "phpunit/phpunit": "^12.5.37" + "phpunit/phpunit": "^13.3.6" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "5.0-dev" + "dev-main": "6.0-dev" } }, "autoload": { @@ -15478,7 +15697,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/php-text-template/issues", "security": "https://github.com/sebastianbergmann/php-text-template/security/policy", - "source": "https://github.com/sebastianbergmann/php-text-template/tree/5.0.1" + "source": "https://github.com/sebastianbergmann/php-text-template/tree/6.0.1" }, "funding": [ { @@ -15498,32 +15717,33 @@ "type": "tidelift" } ], - "time": "2026-10-03T04:51:29+00:00" + "time": "2026-10-03T04:54:24+00:00", + "published-time": "2026-10-03T04:54:39+00:00" }, { "name": "phpunit/php-timer", - "version": "8.0.0", + "version": "9.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-timer.git", - "reference": "f258ce36aa457f3aa3339f9ed4c81fc66dc8c2cc" + "reference": "a0e12065831f6ab0d83120dc61513eb8d9a966f6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/f258ce36aa457f3aa3339f9ed4c81fc66dc8c2cc", - "reference": "f258ce36aa457f3aa3339f9ed4c81fc66dc8c2cc", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/a0e12065831f6ab0d83120dc61513eb8d9a966f6", + "reference": "a0e12065831f6ab0d83120dc61513eb8d9a966f6", "shasum": "" }, "require": { - "php": ">=8.3" + "php": ">=8.4" }, "require-dev": { - "phpunit/phpunit": "^12.0" + "phpunit/phpunit": "^13.0" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "8.0-dev" + "dev-main": "9.0-dev" } }, "autoload": { @@ -15550,28 +15770,41 @@ "support": { "issues": "https://github.com/sebastianbergmann/php-timer/issues", "security": "https://github.com/sebastianbergmann/php-timer/security/policy", - "source": "https://github.com/sebastianbergmann/php-timer/tree/8.0.0" + "source": "https://github.com/sebastianbergmann/php-timer/tree/9.0.0" }, "funding": [ { "url": "https://github.com/sebastianbergmann", "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpunit/php-timer", + "type": "tidelift" } ], - "time": "2025-02-07T04:59:38+00:00" + "time": "2026-02-06T04:37:53+00:00", + "published-time": "2026-02-06T04:38:39+00:00" }, { "name": "phpunit/phpunit", - "version": "12.5.33", + "version": "13.4.7", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "b98e028a26c5c5ba7e4a54be96ccf35f2914d184" + "reference": "e6458d44279e3b4fc492d4c41fe8e677efed7a2c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/b98e028a26c5c5ba7e4a54be96ccf35f2914d184", - "reference": "b98e028a26c5c5ba7e4a54be96ccf35f2914d184", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/e6458d44279e3b4fc492d4c41fe8e677efed7a2c", + "reference": "e6458d44279e3b4fc492d4c41fe8e677efed7a2c", "shasum": "" }, "require": { @@ -15581,25 +15814,27 @@ "ext-libxml": "*", "ext-mbstring": "*", "ext-xmlwriter": "*", - "myclabs/deep-copy": "^1.13.4", + "myclabs/deep-copy": "^1.14.0", "phar-io/manifest": "^2.0.4", "phar-io/version": "^3.2.1", - "php": ">=8.3", - "phpunit/php-code-coverage": "^12.5.7", - "phpunit/php-file-iterator": "^6.0.1", - "phpunit/php-invoker": "^6.0.0", - "phpunit/php-text-template": "^5.0.0", - "phpunit/php-timer": "^8.0.0", - "sebastian/cli-parser": "^4.2.1", - "sebastian/comparator": "^7.1.8", - "sebastian/diff": "^7.0.0", - "sebastian/environment": "^8.1.2", - "sebastian/exporter": "^7.0.3", - "sebastian/global-state": "^8.0.3", - "sebastian/object-enumerator": "^7.0.0", - "sebastian/recursion-context": "^7.0.1", - "sebastian/type": "^6.0.4", - "sebastian/version": "^6.0.0", + "php": ">=8.4.1", + "phpunit/php-code-coverage": "^14.5.2", + "phpunit/php-file-iterator": "^7.0.2", + "phpunit/php-invoker": "^7.0.0", + "phpunit/php-text-template": "^6.0.1", + "phpunit/php-timer": "^9.0.0", + "sebastian/cli-parser": "^5.0.1", + "sebastian/comparator": "^8.4", + "sebastian/diff": "^9.0.1", + "sebastian/environment": "^9.3.3", + "sebastian/exporter": "^8.2.1", + "sebastian/file-filter": "^1.0", + "sebastian/git-state": "^1.1", + "sebastian/global-state": "^9.0.1", + "sebastian/object-enumerator": "^8.1.0", + "sebastian/recursion-context": "^8.0.1", + "sebastian/type": "^7.0.2", + "sebastian/version": "^7.1.0", "staabm/side-effects-detector": "^1.0.5" }, "bin": [ @@ -15608,7 +15843,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "12.5-dev" + "dev-main": "13.4-dev" } }, "autoload": { @@ -15640,7 +15875,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.33" + "source": "https://github.com/sebastianbergmann/phpunit/tree/13.4.7" }, "funding": [ { @@ -15648,7 +15883,8 @@ "type": "other" } ], - "time": "2026-07-28T13:58:09+00:00" + "time": "2026-11-13T11:10:10+00:00", + "published-time": "2026-11-13T11:11:23+00:00" }, { "name": "react/event-loop", @@ -15781,28 +16017,28 @@ }, { "name": "sebastian/cli-parser", - "version": "4.2.1", + "version": "5.0.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/cli-parser.git", - "reference": "7d05781b13f7dec9043a629a21d086ed74582a15" + "reference": "eeb759ad3146b7096fb59c3195d39e071cd409e3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/7d05781b13f7dec9043a629a21d086ed74582a15", - "reference": "7d05781b13f7dec9043a629a21d086ed74582a15", + "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/eeb759ad3146b7096fb59c3195d39e071cd409e3", + "reference": "eeb759ad3146b7096fb59c3195d39e071cd409e3", "shasum": "" }, "require": { - "php": ">=8.3" + "php": ">=8.4" }, "require-dev": { - "phpunit/phpunit": "^12.5.25" + "phpunit/phpunit": "^13.2.6" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "4.2-dev" + "dev-main": "5.0-dev" } }, "autoload": { @@ -15826,7 +16062,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/cli-parser/issues", "security": "https://github.com/sebastianbergmann/cli-parser/security/policy", - "source": "https://github.com/sebastianbergmann/cli-parser/tree/4.2.1" + "source": "https://github.com/sebastianbergmann/cli-parser/tree/5.0.1" }, "funding": [ { @@ -15846,31 +16082,32 @@ "type": "tidelift" } ], - "time": "2026-05-17T05:29:34+00:00" + "time": "2026-08-01T04:27:14+00:00", + "published-time": "2026-08-01T04:29:01+00:00" }, { "name": "sebastian/comparator", - "version": "7.1.8", + "version": "8.4.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "7c65c1e79836812819705b473a90c12399542485" + "reference": "3b070e608146cba00fd6fd1f0ffba89e5a8897fb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/7c65c1e79836812819705b473a90c12399542485", - "reference": "7c65c1e79836812819705b473a90c12399542485", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/3b070e608146cba00fd6fd1f0ffba89e5a8897fb", + "reference": "3b070e608146cba00fd6fd1f0ffba89e5a8897fb", "shasum": "" }, "require": { "ext-dom": "*", "ext-mbstring": "*", - "php": ">=8.3", - "sebastian/diff": "^7.0", - "sebastian/exporter": "^7.0.3" + "php": ">=8.4", + "sebastian/diff": "^9.0", + "sebastian/exporter": "^8.2" }, "require-dev": { - "phpunit/phpunit": "^12.5.25" + "phpunit/phpunit": "^13.3" }, "suggest": { "ext-bcmath": "For comparing BcMath\\Number objects" @@ -15878,7 +16115,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "7.1-dev" + "dev-main": "8.4-dev" } }, "autoload": { @@ -15918,7 +16155,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/comparator/issues", "security": "https://github.com/sebastianbergmann/comparator/security/policy", - "source": "https://github.com/sebastianbergmann/comparator/tree/7.1.8" + "source": "https://github.com/sebastianbergmann/comparator/tree/8.4.0" }, "funding": [ { @@ -15938,33 +16175,34 @@ "type": "tidelift" } ], - "time": "2026-05-21T04:45:25+00:00" + "time": "2026-08-07T07:23:13+00:00", + "published-time": "2026-08-07T07:23:29+00:00" }, { "name": "sebastian/complexity", - "version": "5.0.0", + "version": "6.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/complexity.git", - "reference": "bad4316aba5303d0221f43f8cee37eb58d384bbb" + "reference": "c5651c795c98093480df79350cb050813fc7a2f3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/bad4316aba5303d0221f43f8cee37eb58d384bbb", - "reference": "bad4316aba5303d0221f43f8cee37eb58d384bbb", + "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/c5651c795c98093480df79350cb050813fc7a2f3", + "reference": "c5651c795c98093480df79350cb050813fc7a2f3", "shasum": "" }, "require": { "nikic/php-parser": "^5.0", - "php": ">=8.3" + "php": ">=8.4" }, "require-dev": { - "phpunit/phpunit": "^12.0" + "phpunit/phpunit": "^13.0" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "5.0-dev" + "dev-main": "6.0-dev" } }, "autoload": { @@ -15988,41 +16226,54 @@ "support": { "issues": "https://github.com/sebastianbergmann/complexity/issues", "security": "https://github.com/sebastianbergmann/complexity/security/policy", - "source": "https://github.com/sebastianbergmann/complexity/tree/5.0.0" + "source": "https://github.com/sebastianbergmann/complexity/tree/6.0.0" }, "funding": [ { "url": "https://github.com/sebastianbergmann", "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/complexity", + "type": "tidelift" } ], - "time": "2025-02-07T04:55:25+00:00" + "time": "2026-02-06T04:41:32+00:00", + "published-time": "2026-02-06T04:41:49+00:00" }, { "name": "sebastian/diff", - "version": "7.0.1", + "version": "9.0.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "cd4cabe39f8a4e8ee6818ba99f10a05561ea4ad6" + "reference": "a2df6626c1baf31d5a88674882a3072f151b5a26" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/cd4cabe39f8a4e8ee6818ba99f10a05561ea4ad6", - "reference": "cd4cabe39f8a4e8ee6818ba99f10a05561ea4ad6", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/a2df6626c1baf31d5a88674882a3072f151b5a26", + "reference": "a2df6626c1baf31d5a88674882a3072f151b5a26", "shasum": "" }, "require": { - "php": ">=8.3" + "php": ">=8.4" }, "require-dev": { - "phpunit/phpunit": "^12.5.33", + "phpunit/phpunit": "^13.3.1", "symfony/process": "^7.4.17" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "7.0-dev" + "dev-main": "9.0-dev" } }, "autoload": { @@ -16055,7 +16306,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/diff/issues", "security": "https://github.com/sebastianbergmann/diff/security/policy", - "source": "https://github.com/sebastianbergmann/diff/tree/7.0.1" + "source": "https://github.com/sebastianbergmann/diff/tree/9.0.1" }, "funding": [ { @@ -16075,27 +16326,28 @@ "type": "tidelift" } ], - "time": "2026-08-25T15:35:54+00:00" + "time": "2026-08-25T15:38:55+00:00", + "published-time": "2026-08-25T15:39:44+00:00" }, { "name": "sebastian/environment", - "version": "8.1.2", + "version": "9.3.3", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/environment.git", - "reference": "9d32c685773823b1983e256ae4ecd48a10d6e439" + "reference": "d4dd10267a11055066a2a78ae04583d8ddd4f595" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/9d32c685773823b1983e256ae4ecd48a10d6e439", - "reference": "9d32c685773823b1983e256ae4ecd48a10d6e439", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/d4dd10267a11055066a2a78ae04583d8ddd4f595", + "reference": "d4dd10267a11055066a2a78ae04583d8ddd4f595", "shasum": "" }, "require": { - "php": ">=8.3" + "php": ">=8.4" }, "require-dev": { - "phpunit/phpunit": "^12.5.26" + "phpunit/phpunit": "^13.3.6" }, "suggest": { "ext-posix": "*" @@ -16103,7 +16355,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "8.1-dev" + "dev-main": "9.3-dev" } }, "autoload": { @@ -16131,7 +16383,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/environment/issues", "security": "https://github.com/sebastianbergmann/environment/security/policy", - "source": "https://github.com/sebastianbergmann/environment/tree/8.1.2" + "source": "https://github.com/sebastianbergmann/environment/tree/9.3.3" }, "funding": [ { @@ -16151,34 +16403,35 @@ "type": "tidelift" } ], - "time": "2026-05-25T13:40:20+00:00" + "time": "2026-10-01T12:37:56+00:00", + "published-time": "2026-10-01T12:38:48+00:00" }, { "name": "sebastian/exporter", - "version": "7.0.3", + "version": "8.2.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/exporter.git", - "reference": "c5e21b5de653ce0a769fb36f5cdfcb5e7a32cf23" + "reference": "24a3b69bba4a12ab615fca9d34680c5598d9ab7a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/c5e21b5de653ce0a769fb36f5cdfcb5e7a32cf23", - "reference": "c5e21b5de653ce0a769fb36f5cdfcb5e7a32cf23", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/24a3b69bba4a12ab615fca9d34680c5598d9ab7a", + "reference": "24a3b69bba4a12ab615fca9d34680c5598d9ab7a", "shasum": "" }, "require": { "ext-mbstring": "*", - "php": ">=8.3", - "sebastian/recursion-context": "^7.0.1" + "php": ">=8.4", + "sebastian/recursion-context": "^8.0.1" }, "require-dev": { - "phpunit/phpunit": "^12.5.25" + "phpunit/phpunit": "^13.3" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "7.0-dev" + "dev-main": "8.2-dev" } }, "autoload": { @@ -16221,7 +16474,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/exporter/issues", "security": "https://github.com/sebastianbergmann/exporter/security/policy", - "source": "https://github.com/sebastianbergmann/exporter/tree/7.0.3" + "source": "https://github.com/sebastianbergmann/exporter/tree/8.2.1" }, "funding": [ { @@ -16241,35 +16494,176 @@ "type": "tidelift" } ], - "time": "2026-05-20T04:37:17+00:00" + "time": "2026-08-07T07:22:06+00:00", + "published-time": "2026-08-07T07:23:47+00:00" }, { - "name": "sebastian/global-state", - "version": "8.0.3", + "name": "sebastian/file-filter", + "version": "1.0.0", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/global-state.git", - "reference": "b164d3274d6537ab462591c5755f76a8f5b1aae9" + "url": "https://github.com/sebastianbergmann/file-filter.git", + "reference": "33a26f394330f6faa7684bb9cc73afb7727aae93" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/b164d3274d6537ab462591c5755f76a8f5b1aae9", - "reference": "b164d3274d6537ab462591c5755f76a8f5b1aae9", + "url": "https://api.github.com/repos/sebastianbergmann/file-filter/zipball/33a26f394330f6faa7684bb9cc73afb7727aae93", + "reference": "33a26f394330f6faa7684bb9cc73afb7727aae93", "shasum": "" }, "require": { - "php": ">=8.3", - "sebastian/object-reflector": "^5.0", - "sebastian/recursion-context": "^7.0.1" + "php": ">=8.4" }, "require-dev": { - "ext-dom": "*", - "phpunit/phpunit": "^12.5.28" + "phpunit/phpunit": "^13.0" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "8.0-dev" + "dev-main": "1.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for filtering files", + "homepage": "https://github.com/sebastianbergmann/file-filter", + "support": { + "issues": "https://github.com/sebastianbergmann/file-filter/issues", + "security": "https://github.com/sebastianbergmann/file-filter/security/policy", + "source": "https://github.com/sebastianbergmann/file-filter/tree/1.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/file-filter", + "type": "tidelift" + } + ], + "time": "2026-04-22T07:20:04+00:00", + "published-time": "2026-04-22T07:20:25+00:00" + }, + { + "name": "sebastian/git-state", + "version": "1.1.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/git-state.git", + "reference": "31a565f463686f0eefa85f899549256bf5805985" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/git-state/zipball/31a565f463686f0eefa85f899549256bf5805985", + "reference": "31a565f463686f0eefa85f899549256bf5805985", + "shasum": "" + }, + "require": { + "php": ">=8.4" + }, + "require-dev": { + "phpunit/phpunit": "^13.4.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.1-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for describing the state of a Git checkout", + "homepage": "https://github.com/sebastianbergmann/git-state", + "support": { + "issues": "https://github.com/sebastianbergmann/git-state/issues", + "security": "https://github.com/sebastianbergmann/git-state/security/policy", + "source": "https://github.com/sebastianbergmann/git-state/tree/1.1.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/git-state", + "type": "tidelift" + } + ], + "time": "2026-10-21T05:59:52+00:00", + "published-time": "2026-10-21T06:01:28+00:00" + }, + { + "name": "sebastian/global-state", + "version": "9.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/global-state.git", + "reference": "ba68ba79da690cf7eddefd3ce5b78b20b9ba9945" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/ba68ba79da690cf7eddefd3ce5b78b20b9ba9945", + "reference": "ba68ba79da690cf7eddefd3ce5b78b20b9ba9945", + "shasum": "" + }, + "require": { + "php": ">=8.4", + "sebastian/object-reflector": "^6.0", + "sebastian/recursion-context": "^8.0" + }, + "require-dev": { + "ext-dom": "*", + "phpunit/phpunit": "^13.1.13" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "9.0-dev" } }, "autoload": { @@ -16295,7 +16689,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/global-state/issues", "security": "https://github.com/sebastianbergmann/global-state/security/policy", - "source": "https://github.com/sebastianbergmann/global-state/tree/8.0.3" + "source": "https://github.com/sebastianbergmann/global-state/tree/9.0.1" }, "funding": [ { @@ -16315,33 +16709,34 @@ "type": "tidelift" } ], - "time": "2026-06-01T15:10:33+00:00" + "time": "2026-06-01T15:11:33+00:00", + "published-time": "2026-06-01T15:20:45+00:00" }, { "name": "sebastian/lines-of-code", - "version": "4.0.1", + "version": "5.0.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/lines-of-code.git", - "reference": "d543b8ef219dcd8da262cbb958639a96bedba10e" + "reference": "d1b6f8fce682505dbd048977f1abedf1b8ad3ff8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/d543b8ef219dcd8da262cbb958639a96bedba10e", - "reference": "d543b8ef219dcd8da262cbb958639a96bedba10e", + "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/d1b6f8fce682505dbd048977f1abedf1b8ad3ff8", + "reference": "d1b6f8fce682505dbd048977f1abedf1b8ad3ff8", "shasum": "" }, "require": { - "nikic/php-parser": "^5.7.0", - "php": ">=8.3" + "nikic/php-parser": "^5.8.0", + "php": ">=8.4" }, "require-dev": { - "phpunit/phpunit": "^12.5.25" + "phpunit/phpunit": "^13.2.4" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "4.0-dev" + "dev-main": "5.0-dev" } }, "autoload": { @@ -16365,7 +16760,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/lines-of-code/issues", "security": "https://github.com/sebastianbergmann/lines-of-code/security/policy", - "source": "https://github.com/sebastianbergmann/lines-of-code/tree/4.0.1" + "source": "https://github.com/sebastianbergmann/lines-of-code/tree/5.0.2" }, "funding": [ { @@ -16385,34 +16780,34 @@ "type": "tidelift" } ], - "time": "2026-05-19T16:22:07+00:00" + "time": "2026-07-09T08:42:34+00:00", + "published-time": "2026-07-09T08:44:06+00:00" }, { "name": "sebastian/object-enumerator", - "version": "7.0.0", + "version": "8.1.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/object-enumerator.git", - "reference": "1effe8e9b8e068e9ae228e542d5d11b5d16db894" + "reference": "511064ecde82bd747e2ba2fab3dda8d977b59576" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/1effe8e9b8e068e9ae228e542d5d11b5d16db894", - "reference": "1effe8e9b8e068e9ae228e542d5d11b5d16db894", + "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/511064ecde82bd747e2ba2fab3dda8d977b59576", + "reference": "511064ecde82bd747e2ba2fab3dda8d977b59576", "shasum": "" }, "require": { - "php": ">=8.3", - "sebastian/object-reflector": "^5.0", - "sebastian/recursion-context": "^7.0" + "php": ">=8.4", + "sebastian/recursion-context": "^8.0.1" }, "require-dev": { - "phpunit/phpunit": "^12.0" + "phpunit/phpunit": "^13.3.0" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "7.0-dev" + "dev-main": "8.1-dev" } }, "autoload": { @@ -16435,40 +16830,53 @@ "support": { "issues": "https://github.com/sebastianbergmann/object-enumerator/issues", "security": "https://github.com/sebastianbergmann/object-enumerator/security/policy", - "source": "https://github.com/sebastianbergmann/object-enumerator/tree/7.0.0" + "source": "https://github.com/sebastianbergmann/object-enumerator/tree/8.1.0" }, "funding": [ { "url": "https://github.com/sebastianbergmann", "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/object-enumerator", + "type": "tidelift" } ], - "time": "2025-02-07T04:57:48+00:00" + "time": "2026-08-13T07:05:05+00:00", + "published-time": "2026-08-13T07:07:58+00:00" }, { "name": "sebastian/object-reflector", - "version": "5.0.0", + "version": "6.1.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/object-reflector.git", - "reference": "4bfa827c969c98be1e527abd576533293c634f6a" + "reference": "f71bbcdc4f95456b4622810bec64eb06372e25b2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/4bfa827c969c98be1e527abd576533293c634f6a", - "reference": "4bfa827c969c98be1e527abd576533293c634f6a", + "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/f71bbcdc4f95456b4622810bec64eb06372e25b2", + "reference": "f71bbcdc4f95456b4622810bec64eb06372e25b2", "shasum": "" }, "require": { - "php": ">=8.3" + "php": ">=8.4" }, "require-dev": { - "phpunit/phpunit": "^12.0" + "phpunit/phpunit": "^13.3.0" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "5.0-dev" + "dev-main": "6.0-dev" } }, "autoload": { @@ -16491,40 +16899,53 @@ "support": { "issues": "https://github.com/sebastianbergmann/object-reflector/issues", "security": "https://github.com/sebastianbergmann/object-reflector/security/policy", - "source": "https://github.com/sebastianbergmann/object-reflector/tree/5.0.0" + "source": "https://github.com/sebastianbergmann/object-reflector/tree/6.1.0" }, "funding": [ { "url": "https://github.com/sebastianbergmann", "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/object-reflector", + "type": "tidelift" } ], - "time": "2025-02-07T04:58:17+00:00" + "time": "2026-08-13T06:34:36+00:00", + "published-time": "2026-08-13T06:39:22+00:00" }, { "name": "sebastian/recursion-context", - "version": "7.0.1", + "version": "8.0.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/recursion-context.git", - "reference": "0b01998a7d5b1f122911a66bebcb8d46f0c82d8c" + "reference": "32dba72f2b4642d6a93db22d6c0a9280ff2e3ca0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/0b01998a7d5b1f122911a66bebcb8d46f0c82d8c", - "reference": "0b01998a7d5b1f122911a66bebcb8d46f0c82d8c", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/32dba72f2b4642d6a93db22d6c0a9280ff2e3ca0", + "reference": "32dba72f2b4642d6a93db22d6c0a9280ff2e3ca0", "shasum": "" }, "require": { - "php": ">=8.3" + "php": ">=8.4" }, "require-dev": { - "phpunit/phpunit": "^12.0" + "phpunit/phpunit": "^13.2.6" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "7.0-dev" + "dev-main": "8.0-dev" } }, "autoload": { @@ -16555,7 +16976,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/recursion-context/issues", "security": "https://github.com/sebastianbergmann/recursion-context/security/policy", - "source": "https://github.com/sebastianbergmann/recursion-context/tree/7.0.1" + "source": "https://github.com/sebastianbergmann/recursion-context/tree/8.0.1" }, "funding": [ { @@ -16575,32 +16996,33 @@ "type": "tidelift" } ], - "time": "2025-08-13T04:44:59+00:00" + "time": "2026-08-03T05:58:12+00:00", + "published-time": "2026-08-03T05:59:59+00:00" }, { "name": "sebastian/type", - "version": "6.0.4", + "version": "7.0.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/type.git", - "reference": "82ff822c2edc46724be9f7411d3163021f602773" + "reference": "bd1df467864cb95140414059a535b2d906173fcf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/82ff822c2edc46724be9f7411d3163021f602773", - "reference": "82ff822c2edc46724be9f7411d3163021f602773", + "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/bd1df467864cb95140414059a535b2d906173fcf", + "reference": "bd1df467864cb95140414059a535b2d906173fcf", "shasum": "" }, "require": { - "php": ">=8.3" + "php": ">=8.4" }, "require-dev": { - "phpunit/phpunit": "^12.5.25" + "phpunit/phpunit": "^13.3.0" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "6.0-dev" + "dev-main": "7.0-dev" } }, "autoload": { @@ -16624,7 +17046,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/type/issues", "security": "https://github.com/sebastianbergmann/type/security/policy", - "source": "https://github.com/sebastianbergmann/type/tree/6.0.4" + "source": "https://github.com/sebastianbergmann/type/tree/7.0.2" }, "funding": [ { @@ -16644,29 +17066,30 @@ "type": "tidelift" } ], - "time": "2026-05-20T06:45:45+00:00" + "time": "2026-08-10T08:00:57+00:00", + "published-time": "2026-08-10T08:01:43+00:00" }, { "name": "sebastian/version", - "version": "6.0.2", + "version": "7.1.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/version.git", - "reference": "a8b6643a19ba6c8125a473623e45fb8cbb0e4159" + "reference": "08e41d0c7e146bfc8cef7e63989b1294453a6d6a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/a8b6643a19ba6c8125a473623e45fb8cbb0e4159", - "reference": "a8b6643a19ba6c8125a473623e45fb8cbb0e4159", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/08e41d0c7e146bfc8cef7e63989b1294453a6d6a", + "reference": "08e41d0c7e146bfc8cef7e63989b1294453a6d6a", "shasum": "" }, "require": { - "php": ">=8.3" + "php": ">=8.4" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "6.0-dev" + "dev-main": "7.1-dev" } }, "autoload": { @@ -16690,7 +17113,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/version/issues", "security": "https://github.com/sebastianbergmann/version/security/policy", - "source": "https://github.com/sebastianbergmann/version/tree/6.0.2" + "source": "https://github.com/sebastianbergmann/version/tree/7.1.0" }, "funding": [ { @@ -16710,7 +17133,8 @@ "type": "tidelift" } ], - "time": "2026-11-09T06:30:55+00:00" + "time": "2026-11-09T06:31:27+00:00", + "published-time": "2026-11-09T06:31:50+00:00" }, { "name": "slevomat/coding-standard", @@ -17296,7 +17720,8 @@ "type": "github" } ], - "time": "2024-10-20T05:08:20+00:00" + "time": "2024-10-20T05:08:20+00:00", + "published-time": "2024-10-20T05:09:39+00:00" }, { "name": "symplify/rule-doc-generator-contracts", @@ -17415,57 +17840,8 @@ "issues": "https://github.com/ta-tikoma/phpunit-architecture-test/issues", "source": "https://github.com/ta-tikoma/phpunit-architecture-test/tree/0.8.7" }, - "time": "2026-02-17T17:25:14+00:00" - }, - { - "name": "theseer/tokenizer", - "version": "2.0.1", - "source": { - "type": "git", - "url": "https://github.com/theseer/tokenizer.git", - "reference": "7989e43bf381af0eac72e4f0ca5bcbfa81658be4" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/theseer/tokenizer/zipball/7989e43bf381af0eac72e4f0ca5bcbfa81658be4", - "reference": "7989e43bf381af0eac72e4f0ca5bcbfa81658be4", - "shasum": "" - }, - "require": { - "ext-dom": "*", - "ext-tokenizer": "*", - "ext-xmlwriter": "*", - "php": "^8.1" - }, - "type": "library", - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Arne Blankerts", - "email": "arne@blankerts.de", - "role": "Developer" - } - ], - "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", - "support": { - "issues": "https://github.com/theseer/tokenizer/issues", - "source": "https://github.com/theseer/tokenizer/tree/2.0.1" - }, - "funding": [ - { - "url": "https://github.com/theseer", - "type": "github" - } - ], - "time": "2025-12-08T11:19:18+00:00" + "time": "2026-02-17T17:25:14+00:00", + "published-time": "2026-02-17T17:26:32+00:00" }, { "name": "tomasvotruba/type-coverage", @@ -17536,7 +17912,8 @@ "type": "github" } ], - "time": "2026-10-09T19:09:05+00:00" + "time": "2026-10-09T19:09:05+00:00", + "published-time": "2026-10-09T19:09:39+00:00" } ], "aliases": [], diff --git a/domain/Models/ValueObjects/DiscountValue.php b/domain/Models/ValueObjects/DiscountValue.php index 55cf2a10..0168c76c 100644 --- a/domain/Models/ValueObjects/DiscountValue.php +++ b/domain/Models/ValueObjects/DiscountValue.php @@ -118,6 +118,6 @@ final readonly class DiscountValue $rate = $this->getPercentageRate(); - return $basePrice->multiply((string) $rate, Product::ROUNDING); + return $basePrice->multiply(number_format($rate, 2, '.', ''), Product::ROUNDING); } } diff --git a/phpstan.neon b/phpstan.neon index 4674f530..d8f5f013 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -1,8 +1,9 @@ includes: - vendor/larastan/larastan/extension.neon - vendor/nesbot/carbon/extension.neon - - vendor/pestphp/pest/phpstan-pest-extension.neon + - vendor/pestphp/pest-plugin-phpstan/extension.neon - vendor/phpstan/phpstan-mockery/extension.neon + - vendor/phpstan/phpstan-webmozart-assert/extension.neon parameters: paths: diff --git a/tests/Architecture/ApplicationTest.php b/tests/Architecture/ApplicationTest.php index f49cd65c..438de8fe 100644 --- a/tests/Architecture/ApplicationTest.php +++ b/tests/Architecture/ApplicationTest.php @@ -13,117 +13,114 @@ use App\Contracts\QueryInput; use Illuminate\Database\Eloquent\Model; use Symfony\Component\Finder\Finder; -describe('application coding rules', function (): void { - arch('No Domain Entities are used in Controllers') - ->expect('App\Http\Controllers') - ->not->toUse('Domain\Models\Entities'); +// Application coding rules +arch('No Domain Entities are used in Controllers') + ->expect('App\Http\Controllers') + ->not->toUse('Domain\Models\Entities'); - arch('No Domain Entities are used in Policies') - ->expect('App\Policies') - ->not->toUse('Domain\Models\Entities'); +arch('No Domain Entities are used in Policies') + ->expect('App\Policies') + ->not->toUse('Domain\Models\Entities'); - arch('App DTOs are final readonly classes') - ->expect('App\Dto') - ->classes() - ->toBeFinal() - ->toBeReadonly(); +arch('App DTOs are final readonly classes') + ->expect('App\Dto') + ->classes() + ->toBeFinal() + ->toBeReadonly(); - arch('App Actions implement App\Contracts\Action and Inputs implement ActionInput', function (): void { - $path = __DIR__ . '/../../app/Cqs/Actions'; - $files = (new Finder())->files()->in($path)->name('*.php'); +arch('App Actions implement App\Contracts\Action and Inputs implement ActionInput', function (): void { + $path = __DIR__ . '/../../app/Cqs/Actions'; + $files = (new Finder())->files()->in($path)->name('*.php'); - foreach ($files as $file) { - $subPath = $file->getRelativePathname(); - $className = 'App\\Cqs\\Actions\\' . str_replace(['/', '.php'], ['\\', ''], $subPath); + foreach ($files as $file) { + $subPath = $file->getRelativePathname(); + $className = 'App\\Cqs\\Actions\\' . str_replace(['/', '.php'], ['\\', ''], $subPath); - if (! class_exists($className) && ! interface_exists($className)) { - throw new \RuntimeException("Symbol {$className} does not exist."); - } - - $reflection = new \ReflectionClass($className); - - if (str_ends_with($className, 'Input')) { - expect($reflection->implementsInterface(ActionInput::class)) - ->toBeTrue("{$className} must implement App\Contracts\ActionInput"); - } elseif (str_ends_with($className, 'Output')) { - if ($reflection->isEnum()) { - expect($reflection->isEnum())->toBeTrue(); - } else { - expect($reflection->isFinal()) - ->toBeTrue("{$className} must be final"); - expect($reflection->isReadOnly()) - ->toBeTrue("{$className} must be readonly"); - } - } else { - expect($reflection->implementsInterface(Action::class)) - ->toBeTrue("{$className} must implement App\Contracts\Action"); - } + if (! class_exists($className) && ! interface_exists($className)) { + throw new \RuntimeException("Symbol {$className} does not exist."); } - }); - arch('App Queries implement App\Contracts\Query and Inputs implement QueryInput', function (): void { - $path = __DIR__ . '/../../app/Cqs/Queries'; - $files = (new Finder())->files()->in($path)->name('*.php'); + $reflection = new \ReflectionClass($className); - foreach ($files as $file) { - $subPath = $file->getRelativePathname(); - $className = 'App\\Cqs\\Queries\\' . str_replace(['/', '.php'], ['\\', ''], $subPath); - - if (! class_exists($className) && ! interface_exists($className)) { - throw new \RuntimeException("Symbol {$className} does not exist."); - } - - $reflection = new \ReflectionClass($className); - - if (str_ends_with($className, 'Input')) { - expect($reflection->implementsInterface(QueryInput::class)) - ->toBeTrue("{$className} must implement App\Contracts\QueryInput"); - } elseif (str_ends_with($className, 'Output')) { - expect($reflection->isFinal() && $reflection->isReadOnly()) - ->toBeTrue("{$className} must be final readonly"); - } else { - expect($reflection->implementsInterface(Query::class)) - ->toBeTrue("{$className} must implement App\Contracts\Query"); + if (str_ends_with($className, 'Input')) { + expect($reflection->implementsInterface(ActionInput::class)) + ->toBeTrue("{$className} must implement App\Contracts\ActionInput"); + } elseif (str_ends_with($className, 'Output')) { + if (! $reflection->isEnum()) { + expect($reflection->isFinal()) + ->toBeTrue("{$className} must be final"); + expect($reflection->isReadOnly()) + ->toBeTrue("{$className} must be readonly"); } + } else { + expect($reflection->implementsInterface(Action::class)) + ->toBeTrue("{$className} must implement App\Contracts\Action"); } - }); - - arch('Eloquent models use UtcDatetimeCast or CalendarDateCast instead of raw date or datetime casts', function (): void { - $forbiddenCasts = [ - 'date', - 'datetime', - 'immutable_date', - 'immutable_datetime', - 'custom_datetime', - 'immutable_custom_datetime', - 'timestamp', - ]; - $path = __DIR__ . '/../../app/Models'; - $files = (new Finder())->files()->in($path)->name('*.php'); - - foreach ($files as $file) { - $subPath = $file->getRelativePathname(); - $className = 'App\\Models\\' . str_replace(['/', '.php'], ['\\', ''], $subPath); - - if (! class_exists($className)) { - throw new \RuntimeException("Model class {$className} does not exist."); - } - - $reflection = new \ReflectionClass($className); - if ($reflection->isAbstract() || ! $reflection->isSubclassOf(Model::class)) { - continue; - } - - /** @var Model $instance */ - $instance = $reflection->newInstanceWithoutConstructor(); - foreach ($instance->getCasts() as $attribute => $cast) { - $baseCast = is_string($cast) ? explode(':', $cast, 2)[0] : ''; - expect(in_array($baseCast, $forbiddenCasts, true)) - ->toBeFalse( - "{$className}::casts()['{$attribute}'] must use " - . UtcDatetimeCast::class . ' or ' . CalendarDateCast::class . " instead of '{$cast}'." - ); - } - } - }); + } +}); + +arch('App Queries implement App\Contracts\Query and Inputs implement QueryInput', function (): void { + $path = __DIR__ . '/../../app/Cqs/Queries'; + $files = (new Finder())->files()->in($path)->name('*.php'); + + foreach ($files as $file) { + $subPath = $file->getRelativePathname(); + $className = 'App\\Cqs\\Queries\\' . str_replace(['/', '.php'], ['\\', ''], $subPath); + + if (! class_exists($className) && ! interface_exists($className)) { + throw new \RuntimeException("Symbol {$className} does not exist."); + } + + $reflection = new \ReflectionClass($className); + + if (str_ends_with($className, 'Input')) { + expect($reflection->implementsInterface(QueryInput::class)) + ->toBeTrue("{$className} must implement App\Contracts\QueryInput"); + } elseif (str_ends_with($className, 'Output')) { + expect($reflection->isFinal() && $reflection->isReadOnly()) + ->toBeTrue("{$className} must be final readonly"); + } else { + expect($reflection->implementsInterface(Query::class)) + ->toBeTrue("{$className} must implement App\Contracts\Query"); + } + } +}); + +arch('Eloquent models use UtcDatetimeCast or CalendarDateCast instead of raw date or datetime casts', function (): void { + $forbiddenCasts = [ + 'date', + 'datetime', + 'immutable_date', + 'immutable_datetime', + 'custom_datetime', + 'immutable_custom_datetime', + 'timestamp', + ]; + $path = __DIR__ . '/../../app/Models'; + $files = (new Finder())->files()->in($path)->name('*.php'); + + foreach ($files as $file) { + $subPath = $file->getRelativePathname(); + $className = 'App\\Models\\' . str_replace(['/', '.php'], ['\\', ''], $subPath); + + if (! class_exists($className)) { + throw new \RuntimeException("Model class {$className} does not exist."); + } + + $reflection = new \ReflectionClass($className); + if ($reflection->isAbstract() || ! $reflection->isSubclassOf(Model::class)) { + continue; + } + + /** @var Model $instance */ + $instance = $reflection->newInstanceWithoutConstructor(); + foreach ($instance->getCasts() as $attribute => $cast) { + $baseCast = is_string($cast) ? explode(':', $cast, 2)[0] : ''; + expect(in_array($baseCast, $forbiddenCasts, true)) + ->toBeFalse( + "{$className}::casts()['{$attribute}'] must use " + . UtcDatetimeCast::class . ' or ' . CalendarDateCast::class . " instead of '{$cast}'." + ); + } + } }); diff --git a/tests/Architecture/CodingStandardsTest.php b/tests/Architecture/CodingStandardsTest.php index 771a721e..be85ba3d 100644 --- a/tests/Architecture/CodingStandardsTest.php +++ b/tests/Architecture/CodingStandardsTest.php @@ -6,57 +6,56 @@ namespace Tests\Architecture; use Shared\Filesystem\TemporaryFileFactory; -describe('coding standards', function (): void { - arch()->preset()->php(); - arch()->preset()->security()->ignoring([ - TemporaryFileFactory::class, - ]); +// Coding standards +arch()->preset()->php(); +arch()->preset()->security()->ignoring([ + TemporaryFileFactory::class, +]); - arch('it has no shell execution functions are used') - ->expect(['exec', 'shell_exec', 'system', 'passthru', 'proc_open']) - ->not->toBeUsed(); +arch('it has no shell execution functions are used') + ->expect(['exec', 'shell_exec', 'system', 'passthru', 'proc_open']) + ->not->toBeUsed(); - arch('it has no eval usage') - ->expect(['eval']) - ->not->toBeUsed(); +arch('it has no eval usage') + ->expect(['eval']) + ->not->toBeUsed(); - arch('it has no dangerous file functions') - ->expect(['file_get_contents', 'file_put_contents', 'fopen']) - ->not->toBeUsed(); +arch('it has no dangerous file functions') + ->expect(['file_get_contents', 'file_put_contents', 'fopen']) + ->not->toBeUsed(); - arch('it has no globals are used') - ->expect(['$GLOBALS', 'global']) - ->not->toBeUsed(); +arch('it has no globals are used') + ->expect(['$GLOBALS', 'global']) + ->not->toBeUsed(); - arch('it has no singletons') - ->expect(['getInstance', 'instance']) - ->not->toBeUsed(); +arch('it has no singletons') + ->expect(['getInstance', 'instance']) + ->not->toBeUsed(); - arch('it has no insecure hashing') - ->expect(['md5', 'sha1']) - ->not->toBeUsed(); +arch('it has no insecure hashing') + ->expect(['md5', 'sha1']) + ->not->toBeUsed(); - arch('it has no sleep function are used') - ->expect(['sleep', 'usleep']) - ->not->toBeUsed(); +arch('it has no sleep function are used') + ->expect(['sleep', 'usleep']) + ->not->toBeUsed(); - arch('it has no debug globals are used') - ->expect(['var_dump', 'die', 'print_r']) - ->not->toBeUsed(); +arch('it has no debug globals are used') + ->expect(['var_dump', 'die', 'print_r']) + ->not->toBeUsed(); - arch('all app source files use strict types') - ->expect('App') - ->toUseStrictTypes(); +arch('all app source files use strict types') + ->expect('App') + ->toUseStrictTypes(); - arch('all domain source files use strict types') - ->expect('Domain') - ->toUseStrictTypes(); +arch('all domain source files use strict types') + ->expect('Domain') + ->toUseStrictTypes(); - arch('all shared source files use strict types') - ->expect('Shared') - ->toUseStrictTypes(); +arch('all shared source files use strict types') + ->expect('Shared') + ->toUseStrictTypes(); - arch('all infrastructure source files use strict types') - ->expect('Infrastructure') - ->toUseStrictTypes(); -}); +arch('all infrastructure source files use strict types') + ->expect('Infrastructure') + ->toUseStrictTypes(); diff --git a/tests/Architecture/DomainTest.php b/tests/Architecture/DomainTest.php index ae13b0ca..59765932 100644 --- a/tests/Architecture/DomainTest.php +++ b/tests/Architecture/DomainTest.php @@ -8,83 +8,82 @@ use Shared\DDD\Directory; use Shared\DDD\Entity; use Shared\DDD\Repository; -describe('domain coding rules', function (): void { - arch('Entities implements Entity') - ->expect("Domain\Models\Entities") - ->toImplement(Entity::class); +// Domain coding rules +arch('Entities implements Entity') + ->expect("Domain\Models\Entities") + ->toImplement(Entity::class); - arch('Entities are final') - ->expect("Domain\Models\Entities") - ->toBeFinal(); +arch('Entities are final') + ->expect("Domain\Models\Entities") + ->toBeFinal(); - arch('ValueObjects are immutable (disabled due to mock-final-classes conflict)') - ->expect("Domain\Models\ValueObjects") - ->toBeReadonly() - ->toBeFinal(); +arch('ValueObjects are immutable (disabled due to mock-final-classes conflict)') + ->expect("Domain\Models\ValueObjects") + ->toBeReadonly() + ->toBeFinal(); - arch('Ports contains only interfaces') - ->expect("Domain\Ports") - ->classes() - ->toBeInterface(); +arch('Ports contains only interfaces') + ->expect("Domain\Ports") + ->classes() + ->toBeInterface(); - arch('No App classes are used in Domain') - ->expect('Domain') - ->not->toUse('App'); +arch('No App classes are used in Domain') + ->expect('Domain') + ->not->toUse('App'); - arch('No Infrastructure classes are used in Domain') - ->expect('Domain') - ->not->toUse('Infrastructure'); +arch('No Infrastructure classes are used in Domain') + ->expect('Domain') + ->not->toUse('Infrastructure'); - arch('No Illuminate classes are used in Domain') - ->expect('Domain') - ->not->toUse('Illuminate'); +arch('No Illuminate classes are used in Domain') + ->expect('Domain') + ->not->toUse('Illuminate'); - arch('No Symfony components are used in Domain') - ->expect('Domain') - ->not->toUse('Symfony'); +arch('No Symfony components are used in Domain') + ->expect('Domain') + ->not->toUse('Symfony'); - // * Deny some Laravel Functions in Domain - arch('it has no laravel helper functions') - ->expect('Domain') - ->not->toUse([ - 'abort', - 'app', - 'auth', - 'asset', - 'back', - 'bcrypt', - 'broadcast', - 'cache', - 'config', - 'cookie', - 'csrf_token', - 'dd', - 'dump', - 'decrypt', - 'dispatch', - 'event', - 'factory', - 'logger', - 'redirect', - 'request', - 'response', - 'route', - 'session', - 'storage', - 'url', - 'throw_if', - 'throw_unless', - '__', - 'trans', - 'trans_choice', - 'view', - ]); +// * Deny some Laravel Functions in Domain +arch('it has no laravel helper functions') + ->expect('Domain') + ->not->toUse([ + 'abort', + 'app', + 'auth', + 'asset', + 'back', + 'bcrypt', + 'broadcast', + 'cache', + 'config', + 'cookie', + 'csrf_token', + 'dd', + 'dump', + 'decrypt', + 'dispatch', + 'event', + 'factory', + 'logger', + 'redirect', + 'request', + 'response', + 'route', + 'session', + 'storage', + 'url', + 'throw_if', + 'throw_unless', + '__', + 'trans', + 'trans_choice', + 'view', + ]); - arch('Port Repositories extend Shared\DDD\Repository') - ->expect("Domain\Ports\Repositories") - ->toExtend(Repository::class); +arch('Port Repositories extend Shared\DDD\Repository') + ->expect("Domain\Ports\Repositories") + ->toExtend(Repository::class); - arch('Port Directories extend Shared\DDD\Directory') - ->expect("Domain\Ports\Directories") - ->toExtend(Directory::class); -}); +arch('Port Directories extend Shared\DDD\Directory') + ->expect("Domain\Ports\Directories") + ->toExtend(Directory::class); diff --git a/tests/Architecture/InfraTest.php b/tests/Architecture/InfraTest.php index dd8b68c4..6d00a418 100644 --- a/tests/Architecture/InfraTest.php +++ b/tests/Architecture/InfraTest.php @@ -4,9 +4,8 @@ declare(strict_types=1); namespace Tests\Architecture; -describe('infra coding rules', function (): void { - arch('No App classes are used in Infra') - ->expect('Infrastructure') - ->not->toUse('App') - ->ignoring('App\Models'); -}); +// Infra coding rules +arch('No App classes are used in Infra') + ->expect('Infrastructure') + ->not->toUse('App') + ->ignoring('App\Models'); diff --git a/tests/Architecture/NamingConventionsTest.php b/tests/Architecture/NamingConventionsTest.php index 6ad0bd74..76923cad 100644 --- a/tests/Architecture/NamingConventionsTest.php +++ b/tests/Architecture/NamingConventionsTest.php @@ -9,125 +9,122 @@ use App\Services\ArcadiaEmployee; use App\Services\EmployeeUpsertServiceResult; use Symfony\Component\Finder\Finder; -describe('naming conventions in app', function (): void { - arch('casts have Cast suffix') - ->expect("App\Casts") - ->toHaveSuffix('Cast'); +// Naming conventions in app +arch('casts have Cast suffix') + ->expect("App\Casts") + ->toHaveSuffix('Cast'); - arch('adapters repositories have Repository suffix') - ->expect("Infrastructure\Adapters\Repositories") - ->toHaveSuffix('Repository'); +arch('adapters repositories have Repository suffix') + ->expect("Infrastructure\Adapters\Repositories") + ->toHaveSuffix('Repository'); - arch('dtos have Dto suffix') - ->expect("App\Dto") - ->toHaveSuffix('Dto'); +arch('dtos have Dto suffix') + ->expect("App\Dto") + ->toHaveSuffix('Dto'); - arch('exceptions have Exception suffix') - ->expect("App\Exceptions") - ->toHaveSuffix('Exception') - ->ignoring([ - GlobalHandler::class, - ]); - - arch('controllers have Controller suffix') - ->expect("App\Http\Controllers") - ->toHaveSuffix('Controller'); - - arch('requests have Request suffix') - ->expect("App\Http\Requests") - ->toHaveSuffix('Request'); - - arch('resources have Resource suffix') - ->expect("App\Http\Resources") - ->toHaveSuffix('Resource'); - - arch('policies have Policy suffix') - ->expect("App\Policies") - ->toHaveSuffix('Policy'); - - arch('providers have Provider suffix') - ->expect("App\Providers") - ->toHaveSuffix('Provider'); - - arch('services have Service suffix') - ->expect("App\Services") - ->toHaveSuffix('Service') - ->ignoring([ - ArcadiaEmployee::class, - EmployeeUpsertServiceResult::class, - ]); - - arch('queries have Query, QueryInput or QueryOutput suffix', function (): void { - $path = __DIR__ . '/../../app/Cqs/Queries'; - $files = (new Finder())->files()->in($path)->name('*.php'); - - foreach ($files as $file) { - $className = $file->getBasename('.php'); - expect( - str_ends_with($className, 'Query') - || str_ends_with($className, 'QueryInput') - || str_ends_with($className, 'QueryOutput') - )->toBeTrue("{$className} must have suffix Query, QueryInput or QueryOutput"); - } - }); -}); - -describe('naming conventions in domain', function (): void { - arch('exceptions have Exception suffix') - ->expect("Domain\Exceptions") - ->toHaveSuffix('Exception'); - - arch('policies have Policy suffix') - ->expect("Domain\Policies") - ->toHaveSuffix('Policy'); - - arch('port directories have Directory suffix') - ->expect("Domain\Ports\Directories") - ->toHaveSuffix('Directory'); - - arch('port repositories have Repository suffix') - ->expect("Domain\Ports\Repositories") - ->toHaveSuffix('Repository'); - - arch('domain services have Service suffix') - ->expect("Domain\Services") - ->toHaveSuffix('Service'); -}); - -describe('naming conventions in infrastructure', function (): void { - arch('adapters serializers have Serializer suffix') - ->expect("Infrastructure\Adapters\Serializers") - ->toHaveSuffix('Serializer'); - - arch('adapters implement an interface from their domain or shared ports', function ( - string $folder, - string $infraNs, - string $portNs - ): void { - $path = __DIR__ . '/../../infra/' . $folder; - $files = (new Finder())->files()->in($path)->name('*.php'); - - foreach ($files as $file) { - $className = $infraNs . '\\' . $file->getFilenameWithoutExtension(); - - if (! class_exists($className) && ! interface_exists($className)) { - throw new \RuntimeException("Symbol {$className} does not exist."); - } - - $interfaces = (new \ReflectionClass($className))->getInterfaceNames(); - $hasPort = ! empty(array_filter( - $interfaces, - fn ($interface) => str_starts_with($interface, $portNs) - )); - - expect($hasPort) - ->toBeTrue(message: "La classe {$className} n'implémente aucune interface de {$portNs}."); - } - })->with([ - 'Directories' => ['Adapters/Directories', 'Infrastructure\Adapters\Directories', 'Domain\Ports\Directories\\'], - 'Events' => ['Adapters/Events', 'Infrastructure\Adapters\Events', 'Shared\DDD\\'], - 'Locks' => ['Adapters/Locks', 'Infrastructure\Adapters\Locks', 'Shared\Concurrency\\'], - 'Repositories' => ['Adapters/Repositories', 'Infrastructure\Adapters\Repositories', 'Domain\Ports\Repositories\\'], - 'Services' => ['Adapters/Services', 'Infrastructure\Adapters\Services', 'Domain\Ports\Services\\'], +arch('app exceptions have Exception suffix') + ->expect("App\Exceptions") + ->toHaveSuffix('Exception') + ->ignoring([ + GlobalHandler::class, ]); + +arch('controllers have Controller suffix') + ->expect("App\Http\Controllers") + ->toHaveSuffix('Controller'); + +arch('requests have Request suffix') + ->expect("App\Http\Requests") + ->toHaveSuffix('Request'); + +arch('resources have Resource suffix') + ->expect("App\Http\Resources") + ->toHaveSuffix('Resource'); + +arch('app policies have Policy suffix') + ->expect("App\Policies") + ->toHaveSuffix('Policy'); + +arch('providers have Provider suffix') + ->expect("App\Providers") + ->toHaveSuffix('Provider'); + +arch('services have Service suffix') + ->expect("App\Services") + ->toHaveSuffix('Service') + ->ignoring([ + ArcadiaEmployee::class, + EmployeeUpsertServiceResult::class, + ]); + +arch('queries have Query, QueryInput or QueryOutput suffix', function (): void { + $path = __DIR__ . '/../../app/Cqs/Queries'; + $files = (new Finder())->files()->in($path)->name('*.php'); + + foreach ($files as $file) { + $className = $file->getBasename('.php'); + expect( + str_ends_with($className, 'Query') + || str_ends_with($className, 'QueryInput') + || str_ends_with($className, 'QueryOutput') + )->toBeTrue("{$className} must have suffix Query, QueryInput or QueryOutput"); + } }); + +// Naming conventions in domain +arch('domain exceptions have Exception suffix') + ->expect("Domain\Exceptions") + ->toHaveSuffix('Exception'); + +arch('domain policies have Policy suffix') + ->expect("Domain\Policies") + ->toHaveSuffix('Policy'); + +arch('port directories have Directory suffix') + ->expect("Domain\Ports\Directories") + ->toHaveSuffix('Directory'); + +arch('port repositories have Repository suffix') + ->expect("Domain\Ports\Repositories") + ->toHaveSuffix('Repository'); + +arch('domain services have Service suffix') + ->expect("Domain\Services") + ->toHaveSuffix('Service'); + +// Naming conventions in infrastructure +arch('adapters serializers have Serializer suffix') + ->expect("Infrastructure\Adapters\Serializers") + ->toHaveSuffix('Serializer'); + +arch('adapters implement an interface from their domain or shared ports', function ( + string $folder, + string $infraNs, + string $portNs +): void { + $path = __DIR__ . '/../../infra/' . $folder; + $files = (new Finder())->files()->in($path)->name('*.php'); + + foreach ($files as $file) { + $className = $infraNs . '\\' . $file->getFilenameWithoutExtension(); + + if (! class_exists($className) && ! interface_exists($className)) { + throw new \RuntimeException("Symbol {$className} does not exist."); + } + + $interfaces = (new \ReflectionClass($className))->getInterfaceNames(); + $hasPort = ! empty(array_filter( + $interfaces, + fn ($interface) => str_starts_with($interface, $portNs) + )); + + expect($hasPort) + ->toBeTrue(message: "La classe {$className} n'implémente aucune interface de {$portNs}."); + } +})->with([ + 'Directories' => ['Adapters/Directories', 'Infrastructure\Adapters\Directories', 'Domain\Ports\Directories\\'], + 'Events' => ['Adapters/Events', 'Infrastructure\Adapters\Events', 'Shared\DDD\\'], + 'Locks' => ['Adapters/Locks', 'Infrastructure\Adapters\Locks', 'Shared\Concurrency\\'], + 'Repositories' => ['Adapters/Repositories', 'Infrastructure\Adapters\Repositories', 'Domain\Ports\Repositories\\'], + 'Services' => ['Adapters/Services', 'Infrastructure\Adapters\Services', 'Domain\Ports\Services\\'], +]);