diff --git a/composer.json b/composer.json index 26b37d1..04b234e 100644 --- a/composer.json +++ b/composer.json @@ -14,13 +14,13 @@ "phpgt/async": "^1.0", "phpgt/json": "^2.2", "phpgt/curl": "^3.2", - "phpgt/propfunc": "^1.0", + "phpgt/propfunc": "^2.0", "psr/http-message": "^2.0", "willdurand/negotiation": "3.1.0" }, "require-dev": { "phpstan/phpstan": "^2.1", - "phpunit/phpunit": "^11.5", + "phpunit/phpunit": "^13.4", "phpmd/phpmd": "^3.0", "squizlabs/php_codesniffer": "^4.0" }, @@ -39,14 +39,14 @@ }, "scripts": { "phpunit": "vendor/bin/phpunit --configuration phpunit.xml", - "phpstan": "vendor/bin/phpstan analyse --memory-limit=512M --level 7 src", "phpcs": "vendor/bin/phpcs src --standard=phpcs.xml", "phpmd": "vendor/bin/phpmd src/ text phpmd.xml", + "phpstan": "vendor/bin/phpstan analyse --memory-limit=512M --level 7 src", "test": [ "@phpunit", - "@phpstan", "@phpcs", - "@phpmd" + "@phpmd", + "@phpstan" ] }, "extra": { diff --git a/composer.lock b/composer.lock index 8b0b366..db52c1e 100644 --- a/composer.lock +++ b/composer.lock @@ -4,35 +4,39 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "af102ec52fa970af7939c963db9f52ad", + "content-hash": "c1f7afdade0c3067ef144061bc39bc54", "packages": [ { "name": "justinrainbow/json-schema", - "version": "6.8.0", + "version": "6.16.0", "source": { "type": "git", "url": "https://github.com/jsonrainbow/json-schema.git", - "reference": "89ac92bcfe5d0a8a4433c7b89d394553ae7250cc" + "reference": "17a3a7903640817c1a4878d7c71c0221f9b5de97" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/jsonrainbow/json-schema/zipball/89ac92bcfe5d0a8a4433c7b89d394553ae7250cc", - "reference": "89ac92bcfe5d0a8a4433c7b89d394553ae7250cc", + "url": "https://api.github.com/repos/jsonrainbow/json-schema/zipball/17a3a7903640817c1a4878d7c71c0221f9b5de97", + "reference": "17a3a7903640817c1a4878d7c71c0221f9b5de97", "shasum": "" }, "require": { + "ext-filter": "*", "ext-json": "*", "marc-mabe/php-enum": "^4.4", "php": "^7.2 || ^8.0" }, "require-dev": { "friendsofphp/php-cs-fixer": "3.3.0", - "json-schema/json-schema-test-suite": "^23.2", + "json-schema/json-schema-test-suite": "dev-main", "marc-mabe/php-enum-phpstan": "^2.0", "phpspec/prophecy": "^1.19", "phpstan/phpstan": "^1.12", "phpunit/phpunit": "^8.5" }, + "suggest": { + "ext-intl": "Required to validate the idn-hostname format in Draft-07 and Draft 2019-09" + }, "bin": [ "bin/validate-json" ], @@ -53,20 +57,9 @@ ], "authors": [ { - "name": "Bruno Prieto Reis", - "email": "bruno.p.reis@gmail.com" - }, - { - "name": "Justin Rainbow", - "email": "justin.rainbow@gmail.com" - }, - { - "name": "Igor Wiedler", - "email": "igor@wiedler.ch" - }, - { - "name": "Robert Schönthal", - "email": "seroscho@googlemail.com" + "name": "Danny van der Sluijs", + "email": "danny.vandersluijs@icloud.com", + "role": "Maintainer" } ], "description": "A library to validate a json schema.", @@ -77,9 +70,16 @@ ], "support": { "issues": "https://github.com/jsonrainbow/json-schema/issues", - "source": "https://github.com/jsonrainbow/json-schema/tree/6.8.0" + "source": "https://github.com/jsonrainbow/json-schema/tree/6.16.0" }, - "time": "2026-04-02T12:43:11+00:00" + "funding": [ + { + "url": "https://github.com/DannyvdSluijs", + "type": "github" + } + ], + "time": "2026-11-27T15:41:07+00:00", + "published-time": "2026-11-27T15:41:12+00:00" }, { "name": "marc-mabe/php-enum", @@ -152,20 +152,21 @@ "issues": "https://github.com/marc-mabe/php-enum/issues", "source": "https://github.com/marc-mabe/php-enum/tree/v4.7.2" }, - "time": "2025-09-14T11:18:39+00:00" + "time": "2025-09-14T11:18:39+00:00", + "published-time": "2025-09-14T11:32:17+00:00" }, { "name": "phpgt/async", - "version": "v1.0.2", + "version": "v1.0.4", "source": { "type": "git", "url": "https://github.com/phpgt/Async.git", - "reference": "12a032eb8800747395d1aa976193d46378eb7781" + "reference": "a111af0c5194a23f1367006747b46de7b5f01327" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpgt/Async/zipball/12a032eb8800747395d1aa976193d46378eb7781", - "reference": "12a032eb8800747395d1aa976193d46378eb7781", + "url": "https://api.github.com/repos/phpgt/Async/zipball/a111af0c5194a23f1367006747b46de7b5f01327", + "reference": "a111af0c5194a23f1367006747b46de7b5f01327", "shasum": "" }, "require": { @@ -175,7 +176,7 @@ }, "require-dev": { "phpmd/phpmd": "^2.13", - "phpstan/phpstan": "^1.10", + "phpstan/phpstan": "^2.1", "phpunit/phpunit": "^10.1", "squizlabs/php_codesniffer": "^3.7" }, @@ -193,7 +194,7 @@ "description": "Promise-based non-blocking operations.", "support": { "issues": "https://github.com/phpgt/Async/issues", - "source": "https://github.com/phpgt/Async/tree/v1.0.2" + "source": "https://github.com/phpgt/Async/tree/v1.0.4" }, "funding": [ { @@ -201,20 +202,21 @@ "type": "github" } ], - "time": "2026-04-16T16:17:36+00:00" + "time": "2026-08-25T12:01:48+00:00", + "published-time": "2026-10-05T10:19:43+00:00" }, { "name": "phpgt/curl", - "version": "v3.2.2", + "version": "v3.2.3", "source": { "type": "git", "url": "https://github.com/phpgt/Curl.git", - "reference": "86338d0be868c775b62250357e8fba47b0dcf5fd" + "reference": "fd63a520b0086f4cc34317f9602101056f55bb00" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpgt/Curl/zipball/86338d0be868c775b62250357e8fba47b0dcf5fd", - "reference": "86338d0be868c775b62250357e8fba47b0dcf5fd", + "url": "https://api.github.com/repos/phpgt/Curl/zipball/fd63a520b0086f4cc34317f9602101056f55bb00", + "reference": "fd63a520b0086f4cc34317f9602101056f55bb00", "shasum": "" }, "require": { @@ -255,7 +257,7 @@ ], "support": { "issues": "https://github.com/phpgt/Curl/issues", - "source": "https://github.com/phpgt/Curl/tree/v3.2.2" + "source": "https://github.com/phpgt/Curl/tree/v3.2.3" }, "funding": [ { @@ -263,20 +265,21 @@ "type": "github" } ], - "time": "2026-04-19T15:25:00+00:00" + "time": "2026-06-29T20:06:08+00:00", + "published-time": "2026-10-05T10:20:07+00:00" }, { "name": "phpgt/dataobject", - "version": "v1.1.1", + "version": "v1.1.2", "source": { "type": "git", "url": "https://github.com/phpgt/DataObject.git", - "reference": "fc1918f2c1a9f3329d8d80bd01f3658cf07961ba" + "reference": "4c6b55ae11555f915969734d9002caa201feda99" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpgt/DataObject/zipball/fc1918f2c1a9f3329d8d80bd01f3658cf07961ba", - "reference": "fc1918f2c1a9f3329d8d80bd01f3658cf07961ba", + "url": "https://api.github.com/repos/phpgt/DataObject/zipball/4c6b55ae11555f915969734d9002caa201feda99", + "reference": "4c6b55ae11555f915969734d9002caa201feda99", "shasum": "" }, "require": { @@ -310,7 +313,7 @@ "description": " Structured, type-safe, immutable data transfer.", "support": { "issues": "https://github.com/phpgt/DataObject/issues", - "source": "https://github.com/phpgt/DataObject/tree/v1.1.1" + "source": "https://github.com/phpgt/DataObject/tree/v1.1.2" }, "funding": [ { @@ -318,7 +321,8 @@ "type": "github" } ], - "time": "2026-04-21T12:24:50+00:00" + "time": "2026-07-25T17:55:14+00:00", + "published-time": "2026-10-05T10:20:10+00:00" }, { "name": "phpgt/input", @@ -372,20 +376,21 @@ "type": "github" } ], - "time": "2026-04-14T20:44:25+00:00" + "time": "2026-04-14T20:44:25+00:00", + "published-time": "2026-04-14T20:47:26+00:00" }, { "name": "phpgt/json", - "version": "v2.2.1", + "version": "v2.3.2", "source": { "type": "git", "url": "https://github.com/phpgt/Json.git", - "reference": "df697c3fc7b3527ae3a01d3f96b1bfbab80feee2" + "reference": "4b17764823d749a46ab87b3817ff92f16a3aa0ea" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpgt/Json/zipball/df697c3fc7b3527ae3a01d3f96b1bfbab80feee2", - "reference": "df697c3fc7b3527ae3a01d3f96b1bfbab80feee2", + "url": "https://api.github.com/repos/phpgt/Json/zipball/4b17764823d749a46ab87b3817ff92f16a3aa0ea", + "reference": "4b17764823d749a46ab87b3817ff92f16a3aa0ea", "shasum": "" }, "require": { @@ -395,7 +400,7 @@ "phpgt/dataobject": "^1.1" }, "require-dev": { - "phpmd/phpmd": "^2.13", + "phpmd/phpmd": "^3.0", "phpstan/phpstan": "^2.1", "phpunit/phpunit": "^10.1", "squizlabs/php_codesniffer": "^4.0" @@ -420,7 +425,7 @@ "description": " Structured, type-safe, immutable JSON objects.", "support": { "issues": "https://github.com/phpgt/Json/issues", - "source": "https://github.com/phpgt/Json/tree/v2.2.1" + "source": "https://github.com/phpgt/Json/tree/v2.3.2" }, "funding": [ { @@ -428,20 +433,21 @@ "type": "github" } ], - "time": "2026-04-21T13:31:54+00:00" + "time": "2026-11-11T11:14:32+00:00", + "published-time": "2026-11-12T13:11:04+00:00" }, { "name": "phpgt/promise", - "version": "v2.4.0", + "version": "v2.4.1", "source": { "type": "git", "url": "https://github.com/phpgt/Promise.git", - "reference": "a5cdc154f2aaf3478dd474470cd768d401cdaf91" + "reference": "bf781780866fe5c52d20c071740e07c59df4c1c0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpgt/Promise/zipball/a5cdc154f2aaf3478dd474470cd768d401cdaf91", - "reference": "a5cdc154f2aaf3478dd474470cd768d401cdaf91", + "url": "https://api.github.com/repos/phpgt/Promise/zipball/bf781780866fe5c52d20c071740e07c59df4c1c0", + "reference": "bf781780866fe5c52d20c071740e07c59df4c1c0", "shasum": "" }, "require": { @@ -456,6 +462,7 @@ "type": "library", "autoload": { "psr-4": { + "GT\\Promise\\": "./src", "Gt\\Promise\\": "./src" } }, @@ -477,40 +484,42 @@ ], "support": { "issues": "https://github.com/phpgt/Promise/issues", - "source": "https://github.com/phpgt/Promise/tree/v2.4.0" + "source": "https://github.com/phpgt/Promise/tree/v2.4.1" }, "funding": [ { - "url": "https://github.com/sponsors/PhpGt", + "url": "https://github.com/sponsors/phpgt", "type": "github" } ], - "time": "2025-04-30T21:42:58+00:00" + "time": "2026-05-04T15:49:22+00:00", + "published-time": "2026-05-04T16:12:47+00:00" }, { "name": "phpgt/propfunc", - "version": "v1.0.1", + "version": "v2.0.0", "source": { "type": "git", - "url": "https://github.com/PhpGt/PropFunc.git", - "reference": "091213649e89ff22d1ef640b46fbee5215c65520" + "url": "https://github.com/phpgt/PropFunc.git", + "reference": "036a100a3426df47560eb1c9131486c23b8a5a88" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PhpGt/PropFunc/zipball/091213649e89ff22d1ef640b46fbee5215c65520", - "reference": "091213649e89ff22d1ef640b46fbee5215c65520", + "url": "https://api.github.com/repos/phpgt/PropFunc/zipball/036a100a3426df47560eb1c9131486c23b8a5a88", + "reference": "036a100a3426df47560eb1c9131486c23b8a5a88", "shasum": "" }, "require": { - "php": ">=8.0" + "php": ">=8.1" }, "require-dev": { - "phpstan/phpstan": ">=0.12", - "phpunit/phpunit": ">=9.3" + "phpstan/phpstan": "^2.1", + "phpunit/phpunit": "^10.5" }, "type": "library", "autoload": { "psr-4": { + "GT\\PropFunc\\": "./src", "Gt\\PropFunc\\": "./src" } }, @@ -528,8 +537,8 @@ ], "description": "Property accessor and mutator functions.", "support": { - "issues": "https://github.com/PhpGt/PropFunc/issues", - "source": "https://github.com/PhpGt/PropFunc/tree/v1.0.1" + "issues": "https://github.com/phpgt/PropFunc/issues", + "source": "https://github.com/phpgt/PropFunc/tree/v2.0.0" }, "funding": [ { @@ -537,20 +546,21 @@ "type": "github" } ], - "time": "2021-03-23T12:46:44+00:00" + "time": "2026-04-20T17:29:29+00:00", + "published-time": "2026-10-05T10:20:45+00:00" }, { "name": "phpgt/typesafegetter", - "version": "v1.3.3", + "version": "v1.3.4", "source": { "type": "git", "url": "https://github.com/phpgt/TypeSafeGetter.git", - "reference": "a0d339103828791989cbb81f760d252f3c2f8b8c" + "reference": "729261c04b76febaa21a921a3719f625abe9b55e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpgt/TypeSafeGetter/zipball/a0d339103828791989cbb81f760d252f3c2f8b8c", - "reference": "a0d339103828791989cbb81f760d252f3c2f8b8c", + "url": "https://api.github.com/repos/phpgt/TypeSafeGetter/zipball/729261c04b76febaa21a921a3719f625abe9b55e", + "reference": "729261c04b76febaa21a921a3719f625abe9b55e", "shasum": "" }, "require": { @@ -565,6 +575,7 @@ "type": "library", "autoload": { "psr-4": { + "GT\\TypeSafeGetter\\": "./src", "Gt\\TypeSafeGetter\\": "./src" } }, @@ -581,7 +592,7 @@ "description": "An interface for objects that expose type-safe getter methods.", "support": { "issues": "https://github.com/phpgt/TypeSafeGetter/issues", - "source": "https://github.com/phpgt/TypeSafeGetter/tree/v1.3.3" + "source": "https://github.com/phpgt/TypeSafeGetter/tree/v1.3.4" }, "funding": [ { @@ -589,7 +600,8 @@ "type": "github" } ], - "time": "2026-03-10T22:28:01+00:00" + "time": "2026-05-04T15:53:13+00:00", + "published-time": "2026-05-04T15:50:15+00:00" }, { "name": "psr/http-message", @@ -642,7 +654,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": "willdurand/negotiation", @@ -698,7 +711,8 @@ "issues": "https://github.com/willdurand/Negotiation/issues", "source": "https://github.com/willdurand/Negotiation/tree/3.1.0" }, - "time": "2022-01-30T20:08:53+00:00" + "time": "2022-01-30T20:08:53+00:00", + "published-time": "2022-01-30T20:14:18+00:00" } ], "packages-dev": [ @@ -776,20 +790,21 @@ "type": "github" } ], - "time": "2026-06-07T11:47:49+00:00" + "time": "2026-06-07T11:47:49+00:00", + "published-time": "2026-06-11T12:12:37+00:00" }, { "name": "composer/xdebug-handler", - "version": "3.0.5", + "version": "3.1.0", "source": { "type": "git", "url": "https://github.com/composer/xdebug-handler.git", - "reference": "6c1925561632e83d60a44492e0b344cf48ab85ef" + "reference": "9ade436e94b5a869a88b8306d993c25538d3b478" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/6c1925561632e83d60a44492e0b344cf48ab85ef", - "reference": "6c1925561632e83d60a44492e0b344cf48ab85ef", + "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/9ade436e94b5a869a88b8306d993c25538d3b478", + "reference": "9ade436e94b5a869a88b8306d993c25538d3b478", "shasum": "" }, "require": { @@ -798,8 +813,8 @@ "psr/log": "^1 || ^2 || ^3" }, "require-dev": { - "phpstan/phpstan": "^1.0", - "phpstan/phpstan-strict-rules": "^1.1", + "phpstan/phpstan": "^1.11 || ^2.0", + "phpstan/phpstan-strict-rules": "^1.1 || ^2.0", "phpunit/phpunit": "^8.5 || ^9.6 || ^10.5" }, "type": "library", @@ -826,7 +841,7 @@ "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" + "source": "https://github.com/composer/xdebug-handler/tree/3.1.0" }, "funding": [ { @@ -836,13 +851,10 @@ { "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" + "time": "2026-11-25T19:20:28+00:00", + "published-time": "2026-11-25T19:31:20+00:00" }, { "name": "evenement/evenement", @@ -889,7 +901,8 @@ "issues": "https://github.com/igorw/evenement/issues", "source": "https://github.com/igorw/evenement/tree/v3.0.2" }, - "time": "2023-08-08T05:53:35+00:00" + "time": "2023-08-08T05:53:35+00:00", + "published-time": "2023-08-08T08:34:49+00:00" }, { "name": "fidry/cpu-core-counter", @@ -951,24 +964,25 @@ "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": "myclabs/deep-copy", - "version": "1.13.4", + "version": "1.14.0", "source": { "type": "git", "url": "https://github.com/myclabs/DeepCopy.git", - "reference": "07d290f0c47959fd5eed98c95ee5602db07e0b6a" + "reference": "8680aa248f8e07bc8fb43f56f0f5fc77a0c96aae" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/07d290f0c47959fd5eed98c95ee5602db07e0b6a", - "reference": "07d290f0c47959fd5eed98c95ee5602db07e0b6a", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/8680aa248f8e07bc8fb43f56f0f5fc77a0c96aae", + "reference": "8680aa248f8e07bc8fb43f56f0f5fc77a0c96aae", "shasum": "" }, "require": { - "php": "^7.1 || ^8.0" + "php": "^8.0" }, "conflict": { "doctrine/collections": "<1.6.8", @@ -1003,32 +1017,32 @@ ], "support": { "issues": "https://github.com/myclabs/DeepCopy/issues", - "source": "https://github.com/myclabs/DeepCopy/tree/1.13.4" + "source": "https://github.com/myclabs/DeepCopy/tree/1.14.0" }, "funding": [ { - "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy", - "type": "tidelift" + "url": "https://github.com/mnapoli", + "type": "github" } ], - "time": "2025-08-01T08:46:24+00:00" + "time": "2026-08-11T10:17:44+00:00", + "published-time": "2026-08-11T10:29:20+00:00" }, { "name": "nikic/php-parser", - "version": "v5.7.0", + "version": "v5.9.0", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "dca41cd15c2ac9d055ad70dbfd011130757d1f82" + "reference": "9e33da9553fe7786f0962b35f4e4ecf01be89def" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/dca41cd15c2ac9d055ad70dbfd011130757d1f82", - "reference": "dca41cd15c2ac9d055ad70dbfd011130757d1f82", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/9e33da9553fe7786f0962b35f4e4ecf01be89def", + "reference": "9e33da9553fe7786f0962b35f4e4ecf01be89def", "shasum": "" }, "require": { - "ext-ctype": "*", "ext-json": "*", "ext-tokenizer": "*", "php": ">=7.4" @@ -1067,22 +1081,23 @@ ], "support": { "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v5.7.0" + "source": "https://github.com/nikic/PHP-Parser/tree/v5.9.0" }, - "time": "2025-12-06T11:56:16+00:00" + "time": "2026-09-13T18:51:52+00:00", + "published-time": "2026-09-13T18:53:16+00:00" }, { "name": "pdepend/pdepend", - "version": "3.0.0", + "version": "3.1.0", "source": { "type": "git", "url": "https://github.com/pdepend/pdepend.git", - "reference": "7088704510ba42729dc86cfb023640a4b8c26458" + "reference": "80ac8a3d4c7f66ea4c3bf4ae313616ab80238c44" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/pdepend/pdepend/zipball/7088704510ba42729dc86cfb023640a4b8c26458", - "reference": "7088704510ba42729dc86cfb023640a4b8c26458", + "url": "https://api.github.com/repos/pdepend/pdepend/zipball/80ac8a3d4c7f66ea4c3bf4ae313616ab80238c44", + "reference": "80ac8a3d4c7f66ea4c3bf4ae313616ab80238c44", "shasum": "" }, "require": { @@ -1103,6 +1118,7 @@ "gregwar/rst": "^1.0.6", "phpstan/phpstan": "~2.2.15", "phpunit/phpunit": "^10.5.20,<10.5.32 || ^11.0.0", + "shipmonk/dead-code-detector": "^1.4", "squizlabs/php_codesniffer": "^3.8.0" }, "suggest": { @@ -1135,7 +1151,7 @@ ], "support": { "issues": "https://github.com/pdepend/pdepend/issues", - "source": "https://github.com/pdepend/pdepend/tree/3.0.0" + "source": "https://github.com/pdepend/pdepend/tree/3.1.0" }, "funding": [ { @@ -1143,7 +1159,8 @@ "type": "tidelift" } ], - "time": "2026-09-29T07:30:15+00:00" + "time": "2026-11-13T21:17:55+00:00", + "published-time": "2026-11-13T21:20:01+00:00" }, { "name": "phar-io/manifest", @@ -1210,7 +1227,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", @@ -1261,7 +1279,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": "phpmd/phpmd", @@ -1354,15 +1373,16 @@ "type": "tidelift" } ], - "time": "2026-10-04T13:20:01+00:00" + "time": "2026-10-04T13:20:01+00:00", + "published-time": "2026-10-04T13:38:48+00:00" }, { "name": "phpstan/phpstan", - "version": "2.3.1", + "version": "2.3.7", "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/6155239b488e95d26d1ebd95c6b4bb294d7f09db", - "reference": "6155239b488e95d26d1ebd95c6b4bb294d7f09db", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/90c91c2498849ab8cc4e873864bbf1cb2bf6ea12", + "reference": "90c91c2498849ab8cc4e873864bbf1cb2bf6ea12", "shasum": "" }, "require": { @@ -1418,39 +1438,39 @@ "type": "github" } ], - "time": "2026-10-08T21:09:11+00:00" + "time": "2026-11-19T10:31:11+00:00", + "published-time": "2026-11-19T10:31:27+00:00" }, { "name": "phpunit/php-code-coverage", - "version": "11.0.12", + "version": "14.5.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "2c1ed04922802c15e1de5d7447b4856de949cf56" + "reference": "2f122b9b48af71ad9b4448368febc26af86534c9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/2c1ed04922802c15e1de5d7447b4856de949cf56", - "reference": "2c1ed04922802c15e1de5d7447b4856de949cf56", + "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.7.0", - "php": ">=8.2", - "phpunit/php-file-iterator": "^5.1.0", - "phpunit/php-text-template": "^4.0.1", - "sebastian/code-unit-reverse-lookup": "^4.0.1", - "sebastian/complexity": "^4.0.1", - "sebastian/environment": "^7.2.1", - "sebastian/lines-of-code": "^3.0.1", - "sebastian/version": "^5.0.2", - "theseer/tokenizer": "^1.3.1" + "nikic/php-parser": "^5.9.0", + "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": "^11.5.46" + "phpunit/phpunit": "^13.4.6" }, "suggest": { "ext-pcov": "PHP extension that provides line coverage", @@ -1459,7 +1479,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "11.0.x-dev" + "dev-main": "14.5.x-dev" } }, "autoload": { @@ -1488,7 +1508,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/11.0.12" + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/14.5.2" }, "funding": [ { @@ -1508,32 +1528,33 @@ "type": "tidelift" } ], - "time": "2025-12-24T07:01:01+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": "5.1.1", + "version": "7.0.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-file-iterator.git", - "reference": "2f3a64888c814fc235386b7387dd5b5ed92ad903" + "reference": "9bb4e6c58b62c1e043be995c66abec7c97307aae" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/2f3a64888c814fc235386b7387dd5b5ed92ad903", - "reference": "2f3a64888c814fc235386b7387dd5b5ed92ad903", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/9bb4e6c58b62c1e043be995c66abec7c97307aae", + "reference": "9bb4e6c58b62c1e043be995c66abec7c97307aae", "shasum": "" }, "require": { - "php": ">=8.2" + "php": ">=8.4" }, "require-dev": { - "phpunit/phpunit": "^11.3" + "phpunit/phpunit": "^13.3.1" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "5.1-dev" + "dev-main": "7.0-dev" } }, "autoload": { @@ -1561,7 +1582,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/5.1.1" + "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/7.0.2" }, "funding": [ { @@ -1581,28 +1602,29 @@ "type": "tidelift" } ], - "time": "2026-02-02T13:52:54+00:00" + "time": "2026-08-25T14:47:43+00:00", + "published-time": "2026-08-25T14:48:49+00:00" }, { "name": "phpunit/php-invoker", - "version": "5.0.1", + "version": "7.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-invoker.git", - "reference": "c1ca3814734c07492b3d4c5f794f4b0995333da2" + "reference": "42e5c5cae0c65df12d1b1a3ab52bf3f50f244d88" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/c1ca3814734c07492b3d4c5f794f4b0995333da2", - "reference": "c1ca3814734c07492b3d4c5f794f4b0995333da2", + "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/42e5c5cae0c65df12d1b1a3ab52bf3f50f244d88", + "reference": "42e5c5cae0c65df12d1b1a3ab52bf3f50f244d88", "shasum": "" }, "require": { - "php": ">=8.2" + "php": ">=8.4" }, "require-dev": { "ext-pcntl": "*", - "phpunit/phpunit": "^11.0" + "phpunit/phpunit": "^13.0" }, "suggest": { "ext-pcntl": "*" @@ -1610,7 +1632,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "5.0-dev" + "dev-main": "7.0-dev" } }, "autoload": { @@ -1637,40 +1659,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/5.0.1" + "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": "2024-07-03T05:07:44+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": "4.0.1", + "version": "6.0.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-text-template.git", - "reference": "3e0404dc6b300e6bf56415467ebcb3fe4f33e964" + "reference": "97107691cb2b6c743b5e0c44be19e983cb337a02" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/3e0404dc6b300e6bf56415467ebcb3fe4f33e964", - "reference": "3e0404dc6b300e6bf56415467ebcb3fe4f33e964", + "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/97107691cb2b6c743b5e0c44be19e983cb337a02", + "reference": "97107691cb2b6c743b5e0c44be19e983cb337a02", "shasum": "" }, "require": { - "php": ">=8.2" + "php": ">=8.4" }, "require-dev": { - "phpunit/phpunit": "^11.0" + "phpunit/phpunit": "^13.3.6" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "4.0-dev" + "dev-main": "6.0-dev" } }, "autoload": { @@ -1697,40 +1732,53 @@ "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/4.0.1" + "source": "https://github.com/sebastianbergmann/php-text-template/tree/6.0.1" }, "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-text-template", + "type": "tidelift" } ], - "time": "2024-07-03T05:08:43+00:00" + "time": "2026-10-03T04:54:24+00:00", + "published-time": "2026-10-03T04:54:39+00:00" }, { "name": "phpunit/php-timer", - "version": "7.0.1", + "version": "9.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-timer.git", - "reference": "3b415def83fbcb41f991d9ebf16ae4ad8b7837b3" + "reference": "a0e12065831f6ab0d83120dc61513eb8d9a966f6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3b415def83fbcb41f991d9ebf16ae4ad8b7837b3", - "reference": "3b415def83fbcb41f991d9ebf16ae4ad8b7837b3", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/a0e12065831f6ab0d83120dc61513eb8d9a966f6", + "reference": "a0e12065831f6ab0d83120dc61513eb8d9a966f6", "shasum": "" }, "require": { - "php": ">=8.2" + "php": ">=8.4" }, "require-dev": { - "phpunit/phpunit": "^11.0" + "phpunit/phpunit": "^13.0" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "7.0-dev" + "dev-main": "9.0-dev" } }, "autoload": { @@ -1757,69 +1805,80 @@ "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/7.0.1" + "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": "2024-07-03T05:09:35+00:00" + "time": "2026-02-06T04:37:53+00:00", + "published-time": "2026-02-06T04:38:39+00:00" }, { "name": "phpunit/phpunit", - "version": "11.5.55", + "version": "13.4.8", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "adc7262fccc12de2b30f12a8aa0b33775d814f00" + "reference": "291e66a76eb39f2fb8f880d38edc30dbd7acd9a2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/adc7262fccc12de2b30f12a8aa0b33775d814f00", - "reference": "adc7262fccc12de2b30f12a8aa0b33775d814f00", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/291e66a76eb39f2fb8f880d38edc30dbd7acd9a2", + "reference": "291e66a76eb39f2fb8f880d38edc30dbd7acd9a2", "shasum": "" }, "require": { "ext-dom": "*", + "ext-filter": "*", "ext-json": "*", "ext-libxml": "*", "ext-mbstring": "*", - "ext-xml": "*", "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.2", - "phpunit/php-code-coverage": "^11.0.12", - "phpunit/php-file-iterator": "^5.1.1", - "phpunit/php-invoker": "^5.0.1", - "phpunit/php-text-template": "^4.0.1", - "phpunit/php-timer": "^7.0.1", - "sebastian/cli-parser": "^3.0.2", - "sebastian/code-unit": "^3.0.3", - "sebastian/comparator": "^6.3.3", - "sebastian/diff": "^6.0.2", - "sebastian/environment": "^7.2.1", - "sebastian/exporter": "^6.3.2", - "sebastian/global-state": "^7.0.2", - "sebastian/object-enumerator": "^6.0.1", - "sebastian/recursion-context": "^6.0.3", - "sebastian/type": "^5.1.3", - "sebastian/version": "^5.0.2", + "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" }, - "suggest": { - "ext-soap": "To be able to generate mocks based on WSDL files" - }, "bin": [ "phpunit" ], "type": "library", "extra": { "branch-alias": { - "dev-main": "11.5-dev" + "dev-main": "13.4-dev" } }, "autoload": { @@ -1851,31 +1910,16 @@ "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/11.5.55" + "source": "https://github.com/sebastianbergmann/phpunit/tree/13.4.8" }, "funding": [ { - "url": "https://phpunit.de/sponsors.html", - "type": "custom" - }, - { - "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/phpunit", - "type": "tidelift" + "url": "https://phpunit.de/sponsoring.html", + "type": "other" } ], - "time": "2026-02-18T12:37:06+00:00" + "time": "2026-11-19T12:17:15+00:00", + "published-time": "2026-11-19T12:18:28+00:00" }, { "name": "psr/container", @@ -1928,7 +1972,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/log", @@ -1978,7 +2023,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": "react/child-process", @@ -2053,7 +2099,8 @@ "type": "open_collective" } ], - "time": "2025-12-23T15:25:20+00:00" + "time": "2025-12-23T15:25:20+00:00", + "published-time": "2025-12-23T15:25:57+00:00" }, { "name": "react/event-loop", @@ -2125,7 +2172,8 @@ "type": "open_collective" } ], - "time": "2025-11-17T20:46:25+00:00" + "time": "2025-11-17T20:46:25+00:00", + "published-time": "2025-11-17T20:47:32+00:00" }, { "name": "react/stream", @@ -2203,32 +2251,33 @@ "type": "open_collective" } ], - "time": "2024-06-11T12:45:25+00:00" + "time": "2024-06-11T12:45:25+00:00", + "published-time": "2024-06-11T12:48:34+00:00" }, { "name": "sebastian/cli-parser", - "version": "3.0.2", + "version": "5.0.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/cli-parser.git", - "reference": "15c5dd40dc4f38794d383bb95465193f5e0ae180" + "reference": "eeb759ad3146b7096fb59c3195d39e071cd409e3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/15c5dd40dc4f38794d383bb95465193f5e0ae180", - "reference": "15c5dd40dc4f38794d383bb95465193f5e0ae180", + "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/eeb759ad3146b7096fb59c3195d39e071cd409e3", + "reference": "eeb759ad3146b7096fb59c3195d39e071cd409e3", "shasum": "" }, "require": { - "php": ">=8.2" + "php": ">=8.4" }, "require-dev": { - "phpunit/phpunit": "^11.0" + "phpunit/phpunit": "^13.2.6" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "3.0-dev" + "dev-main": "5.0-dev" } }, "autoload": { @@ -2252,152 +2301,52 @@ "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/3.0.2" + "source": "https://github.com/sebastianbergmann/cli-parser/tree/5.0.1" }, "funding": [ { "url": "https://github.com/sebastianbergmann", "type": "github" - } - ], - "time": "2024-07-03T04:41:36+00:00" - }, - { - "name": "sebastian/code-unit", - "version": "3.0.3", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/code-unit.git", - "reference": "54391c61e4af8078e5b276ab082b6d3c54c9ad64" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/code-unit/zipball/54391c61e4af8078e5b276ab082b6d3c54c9ad64", - "reference": "54391c61e4af8078e5b276ab082b6d3c54c9ad64", - "shasum": "" - }, - "require": { - "php": ">=8.2" - }, - "require-dev": { - "phpunit/phpunit": "^11.5" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "3.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": "Collection of value objects that represent the PHP code units", - "homepage": "https://github.com/sebastianbergmann/code-unit", - "support": { - "issues": "https://github.com/sebastianbergmann/code-unit/issues", - "security": "https://github.com/sebastianbergmann/code-unit/security/policy", - "source": "https://github.com/sebastianbergmann/code-unit/tree/3.0.3" - }, - "funding": [ + }, { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2025-03-19T07:56:08+00:00" - }, - { - "name": "sebastian/code-unit-reverse-lookup", - "version": "4.0.1", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", - "reference": "183a9b2632194febd219bb9246eee421dad8d45e" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/183a9b2632194febd219bb9246eee421dad8d45e", - "reference": "183a9b2632194febd219bb9246eee421dad8d45e", - "shasum": "" - }, - "require": { - "php": ">=8.2" - }, - "require-dev": { - "phpunit/phpunit": "^11.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "4.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Looks up which function or method a line of code belongs to", - "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/", - "support": { - "issues": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/issues", - "security": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/security/policy", - "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/4.0.1" - }, - "funding": [ + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, { - "url": "https://github.com/sebastianbergmann", - "type": "github" + "url": "https://tidelift.com/funding/github/packagist/sebastian/cli-parser", + "type": "tidelift" } ], - "time": "2024-07-03T04:45:54+00:00" + "time": "2026-08-01T04:27:14+00:00", + "published-time": "2026-08-01T04:29:01+00:00" }, { "name": "sebastian/comparator", - "version": "6.3.3", + "version": "8.4.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "2c95e1e86cb8dd41beb8d502057d1081ccc8eca9" + "reference": "3b070e608146cba00fd6fd1f0ffba89e5a8897fb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/2c95e1e86cb8dd41beb8d502057d1081ccc8eca9", - "reference": "2c95e1e86cb8dd41beb8d502057d1081ccc8eca9", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/3b070e608146cba00fd6fd1f0ffba89e5a8897fb", + "reference": "3b070e608146cba00fd6fd1f0ffba89e5a8897fb", "shasum": "" }, "require": { "ext-dom": "*", "ext-mbstring": "*", - "php": ">=8.2", - "sebastian/diff": "^6.0", - "sebastian/exporter": "^6.0" + "php": ">=8.4", + "sebastian/diff": "^9.0", + "sebastian/exporter": "^8.2" }, "require-dev": { - "phpunit/phpunit": "^11.4" + "phpunit/phpunit": "^13.3" }, "suggest": { "ext-bcmath": "For comparing BcMath\\Number objects" @@ -2405,7 +2354,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "6.3-dev" + "dev-main": "8.4-dev" } }, "autoload": { @@ -2445,7 +2394,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/comparator/issues", "security": "https://github.com/sebastianbergmann/comparator/security/policy", - "source": "https://github.com/sebastianbergmann/comparator/tree/6.3.3" + "source": "https://github.com/sebastianbergmann/comparator/tree/8.4.0" }, "funding": [ { @@ -2465,33 +2414,34 @@ "type": "tidelift" } ], - "time": "2026-01-24T09:26:40+00:00" + "time": "2026-08-07T07:23:13+00:00", + "published-time": "2026-08-07T07:23:29+00:00" }, { "name": "sebastian/complexity", - "version": "4.0.1", + "version": "6.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/complexity.git", - "reference": "ee41d384ab1906c68852636b6de493846e13e5a0" + "reference": "c5651c795c98093480df79350cb050813fc7a2f3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/ee41d384ab1906c68852636b6de493846e13e5a0", - "reference": "ee41d384ab1906c68852636b6de493846e13e5a0", + "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/c5651c795c98093480df79350cb050813fc7a2f3", + "reference": "c5651c795c98093480df79350cb050813fc7a2f3", "shasum": "" }, "require": { "nikic/php-parser": "^5.0", - "php": ">=8.2" + "php": ">=8.4" }, "require-dev": { - "phpunit/phpunit": "^11.0" + "phpunit/phpunit": "^13.0" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "4.0-dev" + "dev-main": "6.0-dev" } }, "autoload": { @@ -2515,41 +2465,54 @@ "support": { "issues": "https://github.com/sebastianbergmann/complexity/issues", "security": "https://github.com/sebastianbergmann/complexity/security/policy", - "source": "https://github.com/sebastianbergmann/complexity/tree/4.0.1" + "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": "2024-07-03T04:49:50+00:00" + "time": "2026-02-06T04:41:32+00:00", + "published-time": "2026-02-06T04:41:49+00:00" }, { "name": "sebastian/diff", - "version": "6.0.2", + "version": "9.0.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "b4ccd857127db5d41a5b676f24b51371d76d8544" + "reference": "a2df6626c1baf31d5a88674882a3072f151b5a26" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/b4ccd857127db5d41a5b676f24b51371d76d8544", - "reference": "b4ccd857127db5d41a5b676f24b51371d76d8544", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/a2df6626c1baf31d5a88674882a3072f151b5a26", + "reference": "a2df6626c1baf31d5a88674882a3072f151b5a26", "shasum": "" }, "require": { - "php": ">=8.2" + "php": ">=8.4" }, "require-dev": { - "phpunit/phpunit": "^11.0", - "symfony/process": "^4.2 || ^5" + "phpunit/phpunit": "^13.3.1", + "symfony/process": "^7.4.17" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "6.0-dev" + "dev-main": "9.0-dev" } }, "autoload": { @@ -2582,35 +2545,48 @@ "support": { "issues": "https://github.com/sebastianbergmann/diff/issues", "security": "https://github.com/sebastianbergmann/diff/security/policy", - "source": "https://github.com/sebastianbergmann/diff/tree/6.0.2" + "source": "https://github.com/sebastianbergmann/diff/tree/9.0.1" }, "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/diff", + "type": "tidelift" } ], - "time": "2024-07-03T04:53:05+00:00" + "time": "2026-08-25T15:38:55+00:00", + "published-time": "2026-08-25T15:39:44+00:00" }, { "name": "sebastian/environment", - "version": "7.2.1", + "version": "9.3.3", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/environment.git", - "reference": "a5c75038693ad2e8d4b6c15ba2403532647830c4" + "reference": "d4dd10267a11055066a2a78ae04583d8ddd4f595" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/a5c75038693ad2e8d4b6c15ba2403532647830c4", - "reference": "a5c75038693ad2e8d4b6c15ba2403532647830c4", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/d4dd10267a11055066a2a78ae04583d8ddd4f595", + "reference": "d4dd10267a11055066a2a78ae04583d8ddd4f595", "shasum": "" }, "require": { - "php": ">=8.2" + "php": ">=8.4" }, "require-dev": { - "phpunit/phpunit": "^11.3" + "phpunit/phpunit": "^13.3.6" }, "suggest": { "ext-posix": "*" @@ -2618,7 +2594,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "7.2-dev" + "dev-main": "9.3-dev" } }, "autoload": { @@ -2646,7 +2622,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/environment/issues", "security": "https://github.com/sebastianbergmann/environment/security/policy", - "source": "https://github.com/sebastianbergmann/environment/tree/7.2.1" + "source": "https://github.com/sebastianbergmann/environment/tree/9.3.3" }, "funding": [ { @@ -2666,34 +2642,35 @@ "type": "tidelift" } ], - "time": "2025-05-21T11:55:47+00:00" + "time": "2026-10-01T12:37:56+00:00", + "published-time": "2026-10-01T12:38:48+00:00" }, { "name": "sebastian/exporter", - "version": "6.3.2", + "version": "8.2.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/exporter.git", - "reference": "70a298763b40b213ec087c51c739efcaa90bcd74" + "reference": "24a3b69bba4a12ab615fca9d34680c5598d9ab7a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/70a298763b40b213ec087c51c739efcaa90bcd74", - "reference": "70a298763b40b213ec087c51c739efcaa90bcd74", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/24a3b69bba4a12ab615fca9d34680c5598d9ab7a", + "reference": "24a3b69bba4a12ab615fca9d34680c5598d9ab7a", "shasum": "" }, "require": { "ext-mbstring": "*", - "php": ">=8.2", - "sebastian/recursion-context": "^6.0" + "php": ">=8.4", + "sebastian/recursion-context": "^8.0.1" }, "require-dev": { - "phpunit/phpunit": "^11.3" + "phpunit/phpunit": "^13.3" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "6.3-dev" + "dev-main": "8.2-dev" } }, "autoload": { @@ -2736,7 +2713,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/exporter/issues", "security": "https://github.com/sebastianbergmann/exporter/security/policy", - "source": "https://github.com/sebastianbergmann/exporter/tree/6.3.2" + "source": "https://github.com/sebastianbergmann/exporter/tree/8.2.1" }, "funding": [ { @@ -2756,35 +2733,33 @@ "type": "tidelift" } ], - "time": "2025-09-24T06:12:51+00:00" + "time": "2026-08-07T07:22:06+00:00", + "published-time": "2026-08-07T07:23:47+00:00" }, { - "name": "sebastian/global-state", - "version": "7.0.2", + "name": "sebastian/file-filter", + "version": "1.0.0", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/global-state.git", - "reference": "3be331570a721f9a4b5917f4209773de17f747d7" + "url": "https://github.com/sebastianbergmann/file-filter.git", + "reference": "33a26f394330f6faa7684bb9cc73afb7727aae93" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/3be331570a721f9a4b5917f4209773de17f747d7", - "reference": "3be331570a721f9a4b5917f4209773de17f747d7", + "url": "https://api.github.com/repos/sebastianbergmann/file-filter/zipball/33a26f394330f6faa7684bb9cc73afb7727aae93", + "reference": "33a26f394330f6faa7684bb9cc73afb7727aae93", "shasum": "" }, "require": { - "php": ">=8.2", - "sebastian/object-reflector": "^4.0", - "sebastian/recursion-context": "^6.0" + "php": ">=8.4" }, "require-dev": { - "ext-dom": "*", - "phpunit/phpunit": "^11.0" + "phpunit/phpunit": "^13.0" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "7.0-dev" + "dev-main": "1.0-dev" } }, "autoload": { @@ -2799,52 +2774,62 @@ "authors": [ { "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" + "email": "sebastian@phpunit.de", + "role": "lead" } ], - "description": "Snapshotting of global state", - "homepage": "https://www.github.com/sebastianbergmann/global-state", - "keywords": [ - "global state" - ], + "description": "Library for filtering files", + "homepage": "https://github.com/sebastianbergmann/file-filter", "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/7.0.2" + "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": "2024-07-03T04:57:36+00:00" + "time": "2026-04-22T07:20:04+00:00", + "published-time": "2026-04-22T07:20:25+00:00" }, { - "name": "sebastian/lines-of-code", - "version": "3.0.1", + "name": "sebastian/git-state", + "version": "1.1.0", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/lines-of-code.git", - "reference": "d36ad0d782e5756913e42ad87cb2890f4ffe467a" + "url": "https://github.com/sebastianbergmann/git-state.git", + "reference": "31a565f463686f0eefa85f899549256bf5805985" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/d36ad0d782e5756913e42ad87cb2890f4ffe467a", - "reference": "d36ad0d782e5756913e42ad87cb2890f4ffe467a", + "url": "https://api.github.com/repos/sebastianbergmann/git-state/zipball/31a565f463686f0eefa85f899549256bf5805985", + "reference": "31a565f463686f0eefa85f899549256bf5805985", "shasum": "" }, "require": { - "nikic/php-parser": "^5.0", - "php": ">=8.2" + "php": ">=8.4" }, "require-dev": { - "phpunit/phpunit": "^11.0" + "phpunit/phpunit": "^13.4.3" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "3.0-dev" + "dev-main": "1.1-dev" } }, "autoload": { @@ -2863,47 +2848,205 @@ "role": "lead" } ], - "description": "Library for counting the lines of code in PHP source code", - "homepage": "https://github.com/sebastianbergmann/lines-of-code", + "description": "Library for describing the state of a Git checkout", + "homepage": "https://github.com/sebastianbergmann/git-state", "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/3.0.1" + "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" - } - ], - "time": "2024-07-03T04:58:38+00:00" - }, + }, + { + "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": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Snapshotting of global state", + "homepage": "https://www.github.com/sebastianbergmann/global-state", + "keywords": [ + "global state" + ], + "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/9.0.1" + }, + "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/global-state", + "type": "tidelift" + } + ], + "time": "2026-06-01T15:11:33+00:00", + "published-time": "2026-06-01T15:20:45+00:00" + }, + { + "name": "sebastian/lines-of-code", + "version": "5.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/lines-of-code.git", + "reference": "d1b6f8fce682505dbd048977f1abedf1b8ad3ff8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/d1b6f8fce682505dbd048977f1abedf1b8ad3ff8", + "reference": "d1b6f8fce682505dbd048977f1abedf1b8ad3ff8", + "shasum": "" + }, + "require": { + "nikic/php-parser": "^5.8.0", + "php": ">=8.4" + }, + "require-dev": { + "phpunit/phpunit": "^13.2.4" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "5.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 counting the lines of code in PHP source code", + "homepage": "https://github.com/sebastianbergmann/lines-of-code", + "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/5.0.2" + }, + "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/lines-of-code", + "type": "tidelift" + } + ], + "time": "2026-07-09T08:42:34+00:00", + "published-time": "2026-07-09T08:44:06+00:00" + }, { "name": "sebastian/object-enumerator", - "version": "6.0.1", + "version": "8.1.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/object-enumerator.git", - "reference": "f5b498e631a74204185071eb41f33f38d64608aa" + "reference": "511064ecde82bd747e2ba2fab3dda8d977b59576" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/f5b498e631a74204185071eb41f33f38d64608aa", - "reference": "f5b498e631a74204185071eb41f33f38d64608aa", + "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/511064ecde82bd747e2ba2fab3dda8d977b59576", + "reference": "511064ecde82bd747e2ba2fab3dda8d977b59576", "shasum": "" }, "require": { - "php": ">=8.2", - "sebastian/object-reflector": "^4.0", - "sebastian/recursion-context": "^6.0" + "php": ">=8.4", + "sebastian/recursion-context": "^8.0.1" }, "require-dev": { - "phpunit/phpunit": "^11.0" + "phpunit/phpunit": "^13.3.0" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "6.0-dev" + "dev-main": "8.1-dev" } }, "autoload": { @@ -2926,40 +3069,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/6.0.1" + "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": "2024-07-03T05:00:13+00:00" + "time": "2026-08-13T07:05:05+00:00", + "published-time": "2026-08-13T07:07:58+00:00" }, { "name": "sebastian/object-reflector", - "version": "4.0.1", + "version": "6.1.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/object-reflector.git", - "reference": "6e1a43b411b2ad34146dee7524cb13a068bb35f9" + "reference": "f71bbcdc4f95456b4622810bec64eb06372e25b2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/6e1a43b411b2ad34146dee7524cb13a068bb35f9", - "reference": "6e1a43b411b2ad34146dee7524cb13a068bb35f9", + "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/f71bbcdc4f95456b4622810bec64eb06372e25b2", + "reference": "f71bbcdc4f95456b4622810bec64eb06372e25b2", "shasum": "" }, "require": { - "php": ">=8.2" + "php": ">=8.4" }, "require-dev": { - "phpunit/phpunit": "^11.0" + "phpunit/phpunit": "^13.3.0" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "4.0-dev" + "dev-main": "6.0-dev" } }, "autoload": { @@ -2982,40 +3138,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/4.0.1" + "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": "2024-07-03T05:01:32+00:00" + "time": "2026-08-13T06:34:36+00:00", + "published-time": "2026-08-13T06:39:22+00:00" }, { "name": "sebastian/recursion-context", - "version": "6.0.3", + "version": "8.0.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/recursion-context.git", - "reference": "f6458abbf32a6c8174f8f26261475dc133b3d9dc" + "reference": "32dba72f2b4642d6a93db22d6c0a9280ff2e3ca0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/f6458abbf32a6c8174f8f26261475dc133b3d9dc", - "reference": "f6458abbf32a6c8174f8f26261475dc133b3d9dc", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/32dba72f2b4642d6a93db22d6c0a9280ff2e3ca0", + "reference": "32dba72f2b4642d6a93db22d6c0a9280ff2e3ca0", "shasum": "" }, "require": { - "php": ">=8.2" + "php": ">=8.4" }, "require-dev": { - "phpunit/phpunit": "^11.3" + "phpunit/phpunit": "^13.2.6" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "6.0-dev" + "dev-main": "8.0-dev" } }, "autoload": { @@ -3046,7 +3215,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/6.0.3" + "source": "https://github.com/sebastianbergmann/recursion-context/tree/8.0.1" }, "funding": [ { @@ -3066,32 +3235,33 @@ "type": "tidelift" } ], - "time": "2025-08-13T04:42:22+00:00" + "time": "2026-08-03T05:58:12+00:00", + "published-time": "2026-08-03T05:59:59+00:00" }, { "name": "sebastian/type", - "version": "5.1.3", + "version": "7.0.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/type.git", - "reference": "f77d2d4e78738c98d9a68d2596fe5e8fa380f449" + "reference": "bd1df467864cb95140414059a535b2d906173fcf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/f77d2d4e78738c98d9a68d2596fe5e8fa380f449", - "reference": "f77d2d4e78738c98d9a68d2596fe5e8fa380f449", + "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/bd1df467864cb95140414059a535b2d906173fcf", + "reference": "bd1df467864cb95140414059a535b2d906173fcf", "shasum": "" }, "require": { - "php": ">=8.2" + "php": ">=8.4" }, "require-dev": { - "phpunit/phpunit": "^11.3" + "phpunit/phpunit": "^13.3.0" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "5.1-dev" + "dev-main": "7.0-dev" } }, "autoload": { @@ -3115,7 +3285,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/type/issues", "security": "https://github.com/sebastianbergmann/type/security/policy", - "source": "https://github.com/sebastianbergmann/type/tree/5.1.3" + "source": "https://github.com/sebastianbergmann/type/tree/7.0.2" }, "funding": [ { @@ -3135,29 +3305,30 @@ "type": "tidelift" } ], - "time": "2025-08-09T06:55:48+00:00" + "time": "2026-08-10T08:00:57+00:00", + "published-time": "2026-08-10T08:01:43+00:00" }, { "name": "sebastian/version", - "version": "5.0.2", + "version": "7.1.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/version.git", - "reference": "c687e3387b99f5b03b6caa64c74b63e2936ff874" + "reference": "08e41d0c7e146bfc8cef7e63989b1294453a6d6a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/c687e3387b99f5b03b6caa64c74b63e2936ff874", - "reference": "c687e3387b99f5b03b6caa64c74b63e2936ff874", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/08e41d0c7e146bfc8cef7e63989b1294453a6d6a", + "reference": "08e41d0c7e146bfc8cef7e63989b1294453a6d6a", "shasum": "" }, "require": { - "php": ">=8.2" + "php": ">=8.4" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "5.0-dev" + "dev-main": "7.1-dev" } }, "autoload": { @@ -3181,15 +3352,28 @@ "support": { "issues": "https://github.com/sebastianbergmann/version/issues", "security": "https://github.com/sebastianbergmann/version/security/policy", - "source": "https://github.com/sebastianbergmann/version/tree/5.0.2" + "source": "https://github.com/sebastianbergmann/version/tree/7.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/version", + "type": "tidelift" } ], - "time": "2024-10-09T05:16:32+00:00" + "time": "2026-11-09T06:31:27+00:00", + "published-time": "2026-11-09T06:31:50+00:00" }, { "name": "squizlabs/php_codesniffer", @@ -3273,7 +3457,8 @@ "type": "thanks_dev" } ], - "time": "2026-08-06T02:45:27+00:00" + "time": "2026-08-06T02:45:27+00:00", + "published-time": "2026-08-06T02:57:35+00:00" }, { "name": "staabm/side-effects-detector", @@ -3325,24 +3510,25 @@ "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": "symfony/config", - "version": "v8.0.15", + "version": "v8.1.12", "source": { "type": "git", "url": "https://github.com/symfony/config.git", - "reference": "592e6a8b63867287e215e0cb58c07ac619131e5a" + "reference": "7b7f07b1ec6da7d7cada3ed73fa302a8e791ecf0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/config/zipball/592e6a8b63867287e215e0cb58c07ac619131e5a", - "reference": "592e6a8b63867287e215e0cb58c07ac619131e5a", + "url": "https://api.github.com/repos/symfony/config/zipball/7b7f07b1ec6da7d7cada3ed73fa302a8e791ecf0", + "reference": "7b7f07b1ec6da7d7cada3ed73fa302a8e791ecf0", "shasum": "" }, "require": { - "php": ">=8.4", + "php": ">=8.4.1", "symfony/deprecation-contracts": "^2.5|^3", "symfony/filesystem": "^7.4|^8.0", "symfony/polyfill-ctype": "^1.8" @@ -3383,7 +3569,7 @@ "description": "Helps you find, load, combine, autofill and validate configuration values of any kind", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/config/tree/v8.0.15" + "source": "https://github.com/symfony/config/tree/v8.1.12" }, "funding": [ { @@ -3403,27 +3589,34 @@ "type": "tidelift" } ], - "time": "2026-07-22T15:20:43+00:00" + "time": "2026-11-09T20:09:12+00:00", + "published-time": "2026-11-25T09:29:40+00:00" }, { "name": "symfony/console", - "version": "v8.0.15", + "version": "v8.1.12", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "7327288efcaf02a3838d2de0ae23915d64713e14" + "reference": "20d14376137e111569de1f62ba4274731a9c9345" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/7327288efcaf02a3838d2de0ae23915d64713e14", - "reference": "7327288efcaf02a3838d2de0ae23915d64713e14", + "url": "https://api.github.com/repos/symfony/console/zipball/20d14376137e111569de1f62ba4274731a9c9345", + "reference": "20d14376137e111569de1f62ba4274731a9c9345", "shasum": "" }, "require": { - "php": ">=8.4", + "php": ">=8.4.1", + "symfony/deprecation-contracts": "^2.5|^3", "symfony/polyfill-mbstring": "^1.0", + "symfony/polyfill-php85": "^1.33", "symfony/service-contracts": "^2.5|^3", - "symfony/string": "^7.4|^8.0" + "symfony/string": "^7.4.6|^8.0.6" + }, + "conflict": { + "symfony/dependency-injection": "<8.1", + "symfony/event-dispatcher": "<8.1" }, "provide": { "psr/log-implementation": "1.0|2.0|3.0" @@ -3431,14 +3624,18 @@ "require-dev": { "psr/log": "^1|^2|^3", "symfony/config": "^7.4|^8.0", - "symfony/dependency-injection": "^7.4|^8.0", - "symfony/event-dispatcher": "^7.4|^8.0", + "symfony/dependency-injection": "^8.1", + "symfony/event-dispatcher": "^8.1", + "symfony/filesystem": "^7.4|^8.0", "symfony/http-foundation": "^7.4|^8.0", "symfony/http-kernel": "^7.4|^8.0", "symfony/lock": "^7.4|^8.0", "symfony/messenger": "^7.4|^8.0", + "symfony/mime": "^7.4|^8.0", "symfony/process": "^7.4|^8.0", "symfony/stopwatch": "^7.4|^8.0", + "symfony/uid": "^7.4|^8.0", + "symfony/validator": "^7.4|^8.0", "symfony/var-dumper": "^7.4|^8.0" }, "type": "library", @@ -3473,7 +3670,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v8.0.15" + "source": "https://github.com/symfony/console/tree/v8.1.12" }, "funding": [ { @@ -3493,31 +3690,33 @@ "type": "tidelift" } ], - "time": "2026-07-27T13:52:45+00:00" + "time": "2026-11-24T15:59:55+00:00", + "published-time": "2026-11-25T09:31:15+00:00" }, { "name": "symfony/dependency-injection", - "version": "v8.0.15", + "version": "v8.1.13", "source": { "type": "git", "url": "https://github.com/symfony/dependency-injection.git", - "reference": "c5c30601e3efaf6b9a2ec286883acf9183c024a4" + "reference": "a82fe1e5123f92c0708e4bc7d2055865e534c964" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/c5c30601e3efaf6b9a2ec286883acf9183c024a4", - "reference": "c5c30601e3efaf6b9a2ec286883acf9183c024a4", + "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/a82fe1e5123f92c0708e4bc7d2055865e534c964", + "reference": "a82fe1e5123f92c0708e4bc7d2055865e534c964", "shasum": "" }, "require": { - "php": ">=8.4", + "php": ">=8.4.1", "psr/container": "^1.1|^2.0", "symfony/deprecation-contracts": "^2.5|^3", "symfony/service-contracts": "^3.6", - "symfony/var-exporter": "^7.4|^8.0" + "symfony/var-exporter": "^8.1" }, "conflict": { - "ext-psr": "<1.1|>=2" + "ext-psr": "<1.1|>=2", + "symfony/http-kernel": "<8.1.12" }, "provide": { "psr/container-implementation": "1.1|2.0", @@ -3554,7 +3753,7 @@ "description": "Allows you to standardize and centralize the way objects are constructed in your application", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/dependency-injection/tree/v8.0.15" + "source": "https://github.com/symfony/dependency-injection/tree/v8.1.13" }, "funding": [ { @@ -3574,20 +3773,21 @@ "type": "tidelift" } ], - "time": "2026-07-22T15:20:43+00:00" + "time": "2026-11-25T12:51:26+00:00", + "published-time": "2026-11-27T14:50:54+00:00" }, { "name": "symfony/deprecation-contracts", - "version": "v3.7.1", + "version": "v3.8.1", "source": { "type": "git", "url": "https://github.com/symfony/deprecation-contracts.git", - "reference": "f3202fa1b5097b0af062dc978b32ecf63404e31d" + "reference": "feb1edf4e546af3b85c5caebe8359a20db230ca3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/f3202fa1b5097b0af062dc978b32ecf63404e31d", - "reference": "f3202fa1b5097b0af062dc978b32ecf63404e31d", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/feb1edf4e546af3b85c5caebe8359a20db230ca3", + "reference": "feb1edf4e546af3b85c5caebe8359a20db230ca3", "shasum": "" }, "require": { @@ -3600,7 +3800,7 @@ "name": "symfony/contracts" }, "branch-alias": { - "dev-main": "3.7-dev" + "dev-main": "3.8-dev" } }, "autoload": { @@ -3625,7 +3825,7 @@ "description": "A generic function and convention to trigger deprecation notices", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/deprecation-contracts/tree/v3.7.1" + "source": "https://github.com/symfony/deprecation-contracts/tree/v3.8.1" }, "funding": [ { @@ -3645,24 +3845,26 @@ "type": "tidelift" } ], - "time": "2026-06-05T06:23:12+00:00" + "time": "2026-09-16T14:15:10+00:00", + "published-time": "2026-11-04T11:25:34+00:00" }, { "name": "symfony/filesystem", - "version": "v8.0.15", + "version": "v8.1.13", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "3d190c51f717870eed9aa5e9c7cb927ffc911d05" + "reference": "5215ed1c40d7f5532dc109f53f0defd3478ac6ea" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/3d190c51f717870eed9aa5e9c7cb927ffc911d05", - "reference": "3d190c51f717870eed9aa5e9c7cb927ffc911d05", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/5215ed1c40d7f5532dc109f53f0defd3478ac6ea", + "reference": "5215ed1c40d7f5532dc109f53f0defd3478ac6ea", "shasum": "" }, "require": { - "php": ">=8.4", + "php": ">=8.4.1", + "symfony/deprecation-contracts": "^2.5|^3", "symfony/polyfill-ctype": "~1.8", "symfony/polyfill-mbstring": "~1.8" }, @@ -3695,7 +3897,7 @@ "description": "Provides basic utilities for the filesystem", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/filesystem/tree/v8.0.15" + "source": "https://github.com/symfony/filesystem/tree/v8.1.13" }, "funding": [ { @@ -3715,7 +3917,8 @@ "type": "tidelift" } ], - "time": "2026-07-22T15:20:43+00:00" + "time": "2026-11-27T13:27:33+00:00", + "published-time": "2026-11-27T14:50:03+00:00" }, { "name": "symfony/polyfill-ctype", @@ -3798,20 +4001,109 @@ "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-deepclone", + "version": "v1.43.2", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-deepclone.git", + "reference": "82274308b59f6e96f53a3fb37fc40877d843e5a5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-deepclone/zipball/82274308b59f6e96f53a3fb37fc40877d843e5a5", + "reference": "82274308b59f6e96f53a3fb37fc40877d843e5a5", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "provide": { + "ext-deepclone": "*" + }, + "suggest": { + "ext-deepclone": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\DeepClone\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for the deepclone extension", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "deepclone", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-deepclone/tree/v1.43.2" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-10-14T07:17:09+00:00", + "published-time": "2026-10-14T09:42:25+00:00" }, { "name": "symfony/polyfill-intl-grapheme", - "version": "v1.43.0", + "version": "v1.43.3", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-grapheme.git", - "reference": "5cac8f4db97208823aa353f59a01faad2da52c75" + "reference": "5a8f33c87aeecffce24e721b5064fab05f4becf8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/5cac8f4db97208823aa353f59a01faad2da52c75", - "reference": "5cac8f4db97208823aa353f59a01faad2da52c75", + "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/5a8f33c87aeecffce24e721b5064fab05f4becf8", + "reference": "5a8f33c87aeecffce24e721b5064fab05f4becf8", "shasum": "" }, "require": { @@ -3860,7 +4152,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.43.0" + "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.43.3" }, "funding": [ { @@ -3880,7 +4172,8 @@ "type": "tidelift" } ], - "time": "2026-09-25T15:46:47+00:00" + "time": "2026-10-15T09:18:53+00:00", + "published-time": "2026-10-28T10:07:44+00:00" }, { "name": "symfony/polyfill-intl-normalizer", @@ -3965,20 +4258,21 @@ "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", - "version": "v1.43.0", + "version": "v1.43.3", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "4d5d331bf731e0aedbc6b2f5e61135b7b7996a72" + "reference": "122889ed24dc000165bcbfd77ec412f15cbdfc6a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/4d5d331bf731e0aedbc6b2f5e61135b7b7996a72", - "reference": "4d5d331bf731e0aedbc6b2f5e61135b7b7996a72", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/122889ed24dc000165bcbfd77ec412f15cbdfc6a", + "reference": "122889ed24dc000165bcbfd77ec412f15cbdfc6a", "shasum": "" }, "require": { @@ -4030,7 +4324,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.43.0" + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.43.3" }, "funding": [ { @@ -4050,20 +4344,102 @@ "type": "tidelift" } ], - "time": "2026-09-24T15:19:04+00:00" + "time": "2026-10-28T09:35:49+00:00", + "published-time": "2026-10-28T10:07:45+00:00" + }, + { + "name": "symfony/polyfill-php85", + "version": "v1.44.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php85.git", + "reference": "94c794cb5ba51784bc259f11e9f128593297d8dc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php85/zipball/94c794cb5ba51784bc259f11e9f128593297d8dc", + "reference": "94c794cb5ba51784bc259f11e9f128593297d8dc", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php85\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 8.5+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php85/tree/v1.44.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-10-30T15:20:09+00:00", + "published-time": "2026-11-15T14:20:22+00:00" }, { "name": "symfony/service-contracts", - "version": "v3.7.3", + "version": "v3.8.1", "source": { "type": "git", "url": "https://github.com/symfony/service-contracts.git", - "reference": "15e6a07ec2a2c75ceb1b21dd98105ee8456d2257" + "reference": "052852a96fd5e5ebdb617dba22031e41a3300fb5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/service-contracts/zipball/15e6a07ec2a2c75ceb1b21dd98105ee8456d2257", - "reference": "15e6a07ec2a2c75ceb1b21dd98105ee8456d2257", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/052852a96fd5e5ebdb617dba22031e41a3300fb5", + "reference": "052852a96fd5e5ebdb617dba22031e41a3300fb5", "shasum": "" }, "require": { @@ -4081,7 +4457,7 @@ "name": "symfony/contracts" }, "branch-alias": { - "dev-main": "3.7-dev" + "dev-main": "3.8-dev" } }, "autoload": { @@ -4117,7 +4493,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/service-contracts/tree/v3.7.3" + "source": "https://github.com/symfony/service-contracts/tree/v3.8.1" }, "funding": [ { @@ -4137,24 +4513,25 @@ "type": "tidelift" } ], - "time": "2026-07-27T15:39:01+00:00" + "time": "2026-10-20T17:38:25+00:00", + "published-time": "2026-11-04T11:25:33+00:00" }, { "name": "symfony/string", - "version": "v8.0.15", + "version": "v8.1.13", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "1a6a4245943af4dabe57d269bd0903f9d140a15e" + "reference": "ff6a90fe4c4e0e4de484d07189aa25d6d7f447be" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/1a6a4245943af4dabe57d269bd0903f9d140a15e", - "reference": "1a6a4245943af4dabe57d269bd0903f9d140a15e", + "url": "https://api.github.com/repos/symfony/string/zipball/ff6a90fe4c4e0e4de484d07189aa25d6d7f447be", + "reference": "ff6a90fe4c4e0e4de484d07189aa25d6d7f447be", "shasum": "" }, "require": { - "php": ">=8.4", + "php": ">=8.4.1", "symfony/polyfill-ctype": "^1.8", "symfony/polyfill-intl-grapheme": "^1.33", "symfony/polyfill-intl-normalizer": "^1.0", @@ -4207,7 +4584,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v8.0.15" + "source": "https://github.com/symfony/string/tree/v8.1.13" }, "funding": [ { @@ -4227,24 +4604,27 @@ "type": "tidelift" } ], - "time": "2026-07-28T07:34:23+00:00" + "time": "2026-11-27T13:27:33+00:00", + "published-time": "2026-11-27T14:50:30+00:00" }, { "name": "symfony/var-exporter", - "version": "v8.0.16", + "version": "v8.1.10", "source": { "type": "git", "url": "https://github.com/symfony/var-exporter.git", - "reference": "ea291a085c804869b333804706b0a58231014671" + "reference": "e94442cdefc1df995528d26acb40d25c2d50504d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-exporter/zipball/ea291a085c804869b333804706b0a58231014671", - "reference": "ea291a085c804869b333804706b0a58231014671", + "url": "https://api.github.com/repos/symfony/var-exporter/zipball/e94442cdefc1df995528d26acb40d25c2d50504d", + "reference": "e94442cdefc1df995528d26acb40d25c2d50504d", "shasum": "" }, "require": { - "php": ">=8.4" + "php": ">=8.4.1", + "symfony/deprecation-contracts": "^2.5|^3", + "symfony/polyfill-deepclone": "^1.43.1" }, "require-dev": { "symfony/property-access": "^7.4|^8.0", @@ -4274,11 +4654,12 @@ "homepage": "https://symfony.com/contributors" } ], - "description": "Allows exporting any serializable PHP data structure to plain PHP code", + "description": "Provides tools to export, instantiate, hydrate, clone and lazy-load PHP objects", "homepage": "https://symfony.com", "keywords": [ "clone", "construct", + "deep-clone", "export", "hydrate", "instantiate", @@ -4287,7 +4668,7 @@ "serialize" ], "support": { - "source": "https://github.com/symfony/var-exporter/tree/v8.0.16" + "source": "https://github.com/symfony/var-exporter/tree/v8.1.10" }, "funding": [ { @@ -4307,32 +4688,33 @@ "type": "tidelift" } ], - "time": "2026-07-29T16:27:17+00:00" + "time": "2026-10-22T14:30:01+00:00", + "published-time": "2026-10-28T18:24:08+00:00" }, { "name": "symfony/yaml", - "version": "v7.4.21", + "version": "v8.1.13", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", - "reference": "044907929c7999814378be22da34722c7a86bad4" + "reference": "644371830ee15c591d6ee184738723cc58ca3de6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/044907929c7999814378be22da34722c7a86bad4", - "reference": "044907929c7999814378be22da34722c7a86bad4", + "url": "https://api.github.com/repos/symfony/yaml/zipball/644371830ee15c591d6ee184738723cc58ca3de6", + "reference": "644371830ee15c591d6ee184738723cc58ca3de6", "shasum": "" }, "require": { - "php": ">=8.2", - "symfony/deprecation-contracts": "^2.5|^3", + "php": ">=8.4.1", "symfony/polyfill-ctype": "^1.8" }, "conflict": { - "symfony/console": "<6.4" + "symfony/console": "<7.4" }, "require-dev": { - "symfony/console": "^6.4|^7.0|^8.0" + "symfony/console": "^7.4|^8.0", + "yaml/yaml-test-suite": "*" }, "bin": [ "Resources/bin/yaml-lint" @@ -4363,7 +4745,7 @@ "description": "Loads and dumps YAML files", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/yaml/tree/v7.4.21" + "source": "https://github.com/symfony/yaml/tree/v8.1.13" }, "funding": [ { @@ -4383,57 +4765,8 @@ "type": "tidelift" } ], - "time": "2026-10-12T12:34:30+00:00" - }, - { - "name": "theseer/tokenizer", - "version": "1.3.1", - "source": { - "type": "git", - "url": "https://github.com/theseer/tokenizer.git", - "reference": "b7489ce515e168639d17feec34b8847c326b0b3c" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/theseer/tokenizer/zipball/b7489ce515e168639d17feec34b8847c326b0b3c", - "reference": "b7489ce515e168639d17feec34b8847c326b0b3c", - "shasum": "" - }, - "require": { - "ext-dom": "*", - "ext-tokenizer": "*", - "ext-xmlwriter": "*", - "php": "^7.2 || ^8.0" - }, - "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/1.3.1" - }, - "funding": [ - { - "url": "https://github.com/theseer", - "type": "github" - } - ], - "time": "2025-11-17T20:03:58+00:00" + "time": "2026-11-27T13:27:33+00:00", + "published-time": "2026-11-27T14:50:18+00:00" } ], "aliases": [], @@ -4448,5 +4781,5 @@ "ext-fileinfo": "*" }, "platform-dev": {}, - "plugin-api-version": "2.9.0" + "plugin-api-version": "2.11.0" } diff --git a/phpcs.xml b/phpcs.xml index ecbe2b7..ca331c8 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -1,5 +1,5 @@ - + Created from PHP.Gt/Styleguide diff --git a/src/FormData.php b/src/FormData.php index 677bff4..7f32a57 100644 --- a/src/FormData.php +++ b/src/FormData.php @@ -5,7 +5,7 @@ use DOMNodeList; use DOMXPath; use Generator; -use Gt\TypeSafeGetter\NullableTypeSafeGetter; +use GT\TypeSafeGetter\NullableTypeSafeGetter; use SplFileObject; use Stringable; use Countable; diff --git a/src/Header/Headers.php b/src/Header/Headers.php index 411da03..a285208 100644 --- a/src/Header/Headers.php +++ b/src/Header/Headers.php @@ -2,8 +2,8 @@ namespace GT\Http\Header; use Countable; -use Gt\TypeSafeGetter\NullableTypeSafeGetter; -use Gt\TypeSafeGetter\TypeSafeGetter; +use GT\TypeSafeGetter\NullableTypeSafeGetter; +use GT\TypeSafeGetter\TypeSafeGetter; use Iterator; /** diff --git a/src/Response.php b/src/Response.php index 685fbad..9b51fa2 100644 --- a/src/Response.php +++ b/src/Response.php @@ -5,9 +5,9 @@ use GT\Http\Header\ResponseHeaders; use GT\Json\JSONObject; use GT\Json\JSONObjectBuilder; -use Gt\Promise\Deferred; -use Gt\Promise\Promise; -use Gt\PropFunc\MagicProp; +use GT\Promise\Deferred; +use GT\Promise\Promise; +use GT\PropFunc\MagicProp; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\UriInterface; @@ -50,18 +50,18 @@ public function __construct( } /** @phpstan-ignore-next-line */ - private function __prop_get_headers():ResponseHeaders { + private function __propGetHeaders():ResponseHeaders { return $this->getResponseHeaders(); } /** @phpstan-ignore-next-line */ - private function __prop_get_ok():bool { + private function __propGetOk():bool { return ($this->getStatusCode() >= 200 && $this->getStatusCode() < 300); } /** @phpstan-ignore-next-line */ - private function __prop_get_redirected():bool { + private function __propGetRedirected():bool { if(!isset($this->curl)) { return false; } @@ -73,17 +73,17 @@ private function __prop_get_redirected():bool { } /** @phpstan-ignore-next-line */ - private function __prop_get_status():int { + private function __propGetStatus():int { return $this->getStatusCode(); } /** @phpstan-ignore-next-line */ - private function __prop_get_statusText():?string { + private function __propGetStatusText():?string { return StatusCode::REASON_PHRASE[$this->status] ?? null; } /** @phpstan-ignore-next-line */ - private function __prop_get_uri():string { + private function __propGetUri():string { if(!isset($this->curl)) { return $this->request->getUri(); } @@ -91,12 +91,12 @@ private function __prop_get_uri():string { } /** @phpstan-ignore-next-line */ - private function __prop_get_url():string { + private function __propGetUrl():string { return $this->uri; } /** @phpstan-ignore-next-line */ - private function __prop_get_type():string { + private function __propGetType():string { return $this->headers->get("content-type")?->getValue() ?? ""; } diff --git a/src/StatusCode.php b/src/StatusCode.php index d62a0e4..5f32124 100644 --- a/src/StatusCode.php +++ b/src/StatusCode.php @@ -1,78 +1,78 @@ "Continue", self::SWITCHING_PROTOCOLS => "Switching Protocols", self::PROCESSING => "Processing", @@ -138,6 +138,31 @@ class StatusCode { self::VARIANT_ALSO_NEGOTIATES => "Variant Also Negotiates", self::INSUFFICIENT_STORAGE => "Insufficient Storage", self::LOOP_DETECTED => "Loop Detected", + self::NOT_EXTENDED => "Not Extended", self::NETWORK_AUTHENTICATION_REQUIRED => "Network Authentication Required", ]; + + private ?int $code = null; + + public function get():?int { + return $this->code; + } + + public function set(int $code):void { + if($code < 100 || $code > 599) { + throw new InvalidArgumentException( + "HTTP status code must be between 100 and 599: $code" + ); + } + + $this->code = $code; + } + + public function reset():void { + $this->code = null; + } + + public function getReasonPhrase():string { + return self::REASON_PHRASE[$this->code ?? 0] ?? ""; + } } diff --git a/src/URLSearchParams.php b/src/URLSearchParams.php index d431302..3a7ff30 100644 --- a/src/URLSearchParams.php +++ b/src/URLSearchParams.php @@ -2,9 +2,8 @@ namespace GT\Http; use Countable; -use Generator; -use Gt\PropFunc\MagicProp; -use Gt\TypeSafeGetter\NullableTypeSafeGetter; +use GT\PropFunc\MagicProp; +use GT\TypeSafeGetter\NullableTypeSafeGetter; use Iterator; use Stringable; @@ -53,7 +52,7 @@ public function __construct( $this->rewind(); } - public function __prop_get_size():int { + public function __propGetSize():int { return count($this); } diff --git a/src/Uri.php b/src/Uri.php index d64d34f..d317cda 100644 --- a/src/Uri.php +++ b/src/Uri.php @@ -493,7 +493,7 @@ public function isDefaultPort():bool { return true; } - $defaultPortConstant = "\\Gt\\Http\\DefaultPort::" . strtoupper($scheme); + $defaultPortConstant = "\\GT\\Http\\DefaultPort::" . strtoupper($scheme); $defaultPort = null; if(defined($defaultPortConstant)) { diff --git a/test/phpunit/Header/HeadersTest.php b/test/phpunit/Header/HeadersTest.php index d873485..2f65cf9 100644 --- a/test/phpunit/Header/HeadersTest.php +++ b/test/phpunit/Header/HeadersTest.php @@ -3,7 +3,7 @@ use GT\Http\Header\HeaderLine; use GT\Http\Header\Headers; -use Gt\TypeSafeGetter\TypeSafeGetter; +use GT\TypeSafeGetter\TypeSafeGetter; use PHPUnit\Framework\TestCase; class HeadersTest extends TestCase { diff --git a/test/phpunit/MessageTest.php b/test/phpunit/MessageTest.php index 4288729..94f812c 100644 --- a/test/phpunit/MessageTest.php +++ b/test/phpunit/MessageTest.php @@ -3,27 +3,32 @@ use GT\Http\Header\HeaderLine; use GT\Http\Header\RequestHeaders; +use GT\Http\Header\ResponseHeaders; +use GT\Http\Response; +use GT\Http\Stream; +use GT\Http\InvalidProtocolHttpException; use GT\Http\Request; use GT\Http\RequestMethod; use GT\Http\Uri; -use PHPUnit\Framework\MockObject\MockObject; +use PHPUnit\Framework\Attributes\DataProvider; +use PHPUnit\Framework\MockObject\Stub; use PHPUnit\Framework\TestCase; use Psr\Http\Message\UriInterface; class MessageTest extends TestCase { - /** @dataProvider data_request */ + #[DataProvider("data_request")] public function testGetProtocolVersionRequest( string $method, string $uriString, array $headersArray ) { - /** @var MockObject|Uri $uri */ - $uri = self::createMock(UriInterface::class); + /** @var Stub|UriInterface $uri */ + $uri = self::createStub(UriInterface::class); $uri->method("__toString") ->willReturn($uriString); - /** @var MockObject|RequestHeaders $headers */ - $headers = self::createMock(RequestHeaders::class); + /** @var Stub|RequestHeaders $headers */ + $headers = self::createStub(RequestHeaders::class); $headers->method("getFirst") ->willReturn($headersArray[0]); @@ -56,7 +61,7 @@ public function testGetHeaderLine() { ->method("getValuesCommaSeparated") ->willReturn($headerValue); - $uri = self::createMock(Uri::class); + $uri = self::createStub(Uri::class); $headers = self::createMock(RequestHeaders::class); $headers->expects(self::once()) ->method("get") @@ -159,4 +164,47 @@ public static function generateHeaders():array { return $headers; } + public function testProtocolVersionChangeLeavesOriginalUntouched():void { + $original = (new Response())->withProtocolVersion("1.1"); + $updated = $original->withProtocolVersion("2"); + self::assertNotSame($original, $updated); + self::assertSame("1.1", $original->getProtocolVersion()); + self::assertSame("2", $updated->getProtocolVersion()); + } + + public function testInvalidProtocolVersionIsRejected():void { + $response = (new Response())->withProtocolVersion("1.1"); + try { + $response->withProtocolVersion("invalid"); + self::fail("Invalid protocol must be rejected"); + } + catch(InvalidProtocolHttpException) { + self::assertSame("1.1", $response->getProtocolVersion()); + } + } + + public function testHeaderLookupIsCaseInsensitiveAndMissingHeadersAreEmpty():void { + $headers = new ResponseHeaders(); + $headers->add("X-Example", "first", "second"); + $response = new Response(headers: $headers); + self::assertTrue($response->hasHeader("x-example")); + self::assertFalse($response->hasHeader("Missing")); + self::assertSame(["first", "second"], $response->getHeader("X-EXAMPLE")); + self::assertSame([], $response->getHeader("Missing")); + self::assertSame("", $response->getHeaderLine("Missing")); + self::assertSame(["X-Example" => ["first", "second"]], $response->getHeaders()); + } + + public function testReplacingBodyPreservesOriginalStream():void { + $response = new Response(); + $originalBody = $response->getBody(); + $originalBody->write("original"); + $replacement = new Stream(); + $replacement->write("replacement"); + $updated = $response->withBody($replacement); + self::assertSame($originalBody, $response->getBody()); + self::assertSame($replacement, $updated->getBody()); + self::assertSame("original", (string)$response->getBody()); + self::assertSame("replacement", (string)$updated->getBody()); + } } diff --git a/test/phpunit/RequestTest.php b/test/phpunit/RequestTest.php index 6b8169d..b810806 100644 --- a/test/phpunit/RequestTest.php +++ b/test/phpunit/RequestTest.php @@ -7,7 +7,7 @@ use GT\Http\Request; use GT\Http\RequestMethod; use GT\Http\Uri; -use PHPUnit\Framework\MockObject\MockObject; +use PHPUnit\Framework\MockObject\Stub; use PHPUnit\Framework\TestCase; class RequestTest extends TestCase { @@ -98,7 +98,7 @@ public function testWithUri() { } public function testWithUriNewHost() { - $headers = self::getHeadersMock(); + $headers = self::createMock(RequestHeaders::class); $headers->expects($this->once()) ->method("add") ->with("Host", "example2.com"); @@ -147,12 +147,12 @@ public function testGetHeaderReturnsAllValuesAcrossSeparateHeaderLines():void { ); } - /** @return MockObject|Uri */ - protected function getUriMock(string $uriPath = ""):MockObject { + /** @return Stub|Uri */ + protected function getUriMock(string $uriPath = ""):Stub { $partPath = parse_url($uriPath, PHP_URL_PATH); $partQuery = parse_url($uriPath, PHP_URL_QUERY); $partHost = parse_url($uriPath, PHP_URL_HOST); - $uri = self::createMock(Uri::class); + $uri = self::createStub(Uri::class); $uri->method("getPath") ->willReturn($partPath ?? ""); $uri->method("getQuery") @@ -164,9 +164,9 @@ protected function getUriMock(string $uriPath = ""):MockObject { return $uri; } - /** @return MockObject|RequestHeaders */ - protected function getHeadersMock():MockObject { - $headers = self::createMock(RequestHeaders::class); + /** @return Stub|RequestHeaders */ + protected function getHeadersMock():Stub { + $headers = self::createStub(RequestHeaders::class); return $headers; } } diff --git a/test/phpunit/ResponseFactoryTest.php b/test/phpunit/ResponseFactoryTest.php index 385f0c8..1280c48 100644 --- a/test/phpunit/ResponseFactoryTest.php +++ b/test/phpunit/ResponseFactoryTest.php @@ -11,8 +11,8 @@ class ResponseFactoryTest extends TestCase { public function testCreateNoHeaderString() { self::expectException(UnknownAcceptHeaderException::class); - /** @var MockObject|Request $request */ - $request = self::createMock(Request::class); + /** @var Request $request */ + $request = self::createStub(Request::class); ResponseFactory::create($request); } @@ -20,17 +20,19 @@ public function testCreateUnknownAcceptHeader() { self::expectException(UnknownAcceptHeaderException::class); /** @var MockObject|Request $request */ $request = self::createMock(Request::class); - $request->method("getHeaderLine") + $request->expects(self::once()) + ->method("getHeaderLine") ->with("accept") ->willReturn("text/html"); ResponseFactory::create($request); } public function testCreateAfterRegisteringResponseClass() { - $mockResponseClass = self::createMock(Response::class); + $mockResponseClass = self::createStub(Response::class); /** @var MockObject|Request $request */ $request = self::createMock(Request::class); - $request->method("getHeaderLine") + $request->expects(self::once()) + ->method("getHeaderLine") ->with("accept") ->willReturn("test/example"); ResponseFactory::registerResponseClass( @@ -45,10 +47,11 @@ public function testCreateAfterRegisteringResponseClass() { } public function testRegisterResponseClassDefault() { - $mockResponseClass = self::createMock(Response::class); + $mockResponseClass = self::createStub(Response::class); /** @var MockObject|Request $request */ $request = self::createMock(Request::class); - $request->method("getHeaderLine") + $request->expects(self::once()) + ->method("getHeaderLine") ->with("accept") ->willReturn(ResponseFactory::DEFAULT_ACCEPT); ResponseFactory::registerResponseClass( diff --git a/test/phpunit/ResponseTest.php b/test/phpunit/ResponseTest.php index 8b50e6d..6cb86f4 100644 --- a/test/phpunit/ResponseTest.php +++ b/test/phpunit/ResponseTest.php @@ -5,6 +5,9 @@ use GT\Http\ArrayBuffer; use GT\Http\Blob; use GT\Http\FormData; +use GT\Http\HttpException; +use GT\Http\IntegrityMismatchException; +use GT\Http\InvalidIntegrityAlgorithmException; use GT\Http\Header\ResponseHeaders; use GT\Http\Request; use GT\Http\Response; @@ -12,7 +15,7 @@ use GT\Http\Stream; use GT\Http\Uri; use GT\Json\JSONObject; -use Gt\Promise\Deferred; +use GT\Promise\Deferred; use PHPUnit\Framework\TestCase; class ResponseTest extends TestCase { @@ -106,7 +109,7 @@ public function testReloadKeepsQuery() { $uri->method("__toString") ->willReturn($expectedRelativePath); - $request = self::createMock(Request::class); + $request = self::createStub(Request::class); $request->method("getUri") ->willReturn($uri); @@ -128,7 +131,7 @@ public function testReloadWithoutQuery() { $uri->method("__toString") ->willReturn($expectedRelativePath); - $request = self::createMock(Request::class); + $request = self::createStub(Request::class); $request->method("getUri") ->willReturn($uri); @@ -351,4 +354,89 @@ public function testPropGetRedirected_noRedirect():void { $sut = new Response(200, curl: $curl); self::assertFalse($sut->redirected); } + public function testStatusPropertiesTrackChangesAndSuccessBoundaries():void { + $response = new Response(); + self::assertSame(0, $response->status); + self::assertFalse($response->ok); + self::assertNull($response->statusText); + + foreach([199 => false, 200 => true, 299 => true, 300 => false, 500 => false] as $code => $ok) { + $response->setStatus($code); + self::assertSame($code, $response->status); + self::assertSame($ok, $response->ok); + } + + $response->setStatus(StatusCode::NOT_FOUND); + self::assertSame("Not Found", $response->statusText); + $response->setStatus(StatusCode::OK); + self::assertSame("OK", $response->statusText); + } + + public function testContentTypePropertyTracksHeadersCaseInsensitively():void { + $headers = new ResponseHeaders(); + $response = new Response(headers: $headers); + self::assertSame($headers, $response->headers); + self::assertSame("", $response->type); + $headers->set("Content-Type", "application/json"); + self::assertSame("application/json", $response->type); + $headers->set("content-type", "text/plain"); + self::assertSame("text/plain", $response->type); + } + + public function testUrlPropertiesUseEffectiveCurlUrl():void { + $curl = self::createMock(Curl::class); + $curl->expects(self::exactly(2)) + ->method("getInfo") + ->with(CURLINFO_EFFECTIVE_URL) + ->willReturn("https://example.com/redirected?key=value"); + $response = new Response(curl: $curl); + self::assertSame("https://example.com/redirected?key=value", $response->uri); + self::assertSame("https://example.com/redirected?key=value", $response->url); + } + + public function testDeferredResponseResolvesWholeBodyAndPreservesReadPosition():void { + foreach([null, "sha256-" . hash("sha256", "complete body")] as $integrity) { + $response = new Response(); + $deferred = $response->startDeferredResponse(self::createStub(Curl::class)); + $resolved = null; + $deferred->getPromise()->then(function(string $body)use(&$resolved) { + $resolved = $body; + }); + $response->getBody()->write("complete body"); + $response->getBody()->seek(4); + self::assertNull($resolved); + $response->endDeferredResponse($integrity); + self::assertSame("complete body", $resolved); + self::assertSame(4, $response->getBody()->tell()); + } + } + + public function testDeferredIntegrityFailureDoesNotResolveAndCanBeRetried():void { + $response = new Response(); + $deferred = $response->startDeferredResponse(self::createStub(Curl::class)); + $resolved = null; + $deferred->getPromise()->then(function(string $body)use(&$resolved) { + $resolved = $body; + }); + $response->getBody()->write("original body"); + $response->getBody()->seek(3); + + foreach([ + "unknownalgorithm-hash" => InvalidIntegrityAlgorithmException::class, + "sha256-" . hash("sha256", "tampered body") => IntegrityMismatchException::class, + ] as $integrity => $exceptionClass) { + try { + $response->endDeferredResponse($integrity); + self::fail("Integrity validation must reject this body"); + } + catch(HttpException $exception) { + self::assertInstanceOf($exceptionClass, $exception); + } + self::assertNull($resolved); + self::assertSame(3, $response->getBody()->tell()); + } + + $response->endDeferredResponse("sha256-" . hash("sha256", "original body")); + self::assertSame("original body", $resolved); + } } diff --git a/test/phpunit/ServerRequestTest.php b/test/phpunit/ServerRequestTest.php index 198524e..deaa72c 100644 --- a/test/phpunit/ServerRequestTest.php +++ b/test/phpunit/ServerRequestTest.php @@ -7,6 +7,7 @@ use GT\Http\Uri; use GT\Input\InputData\Datum\FileUpload; use PHPUnit\Framework\MockObject\MockObject; +use PHPUnit\Framework\MockObject\Stub; use PHPUnit\Framework\TestCase; class ServerRequestTest extends TestCase { @@ -159,8 +160,8 @@ public function testWithUploadedFilesEmptyToFull() { ); self::assertEmpty($sutEmpty->getUploadedFiles()); - $file1 = self::createMock(FileUpload::class); - $file2 = self::createMock(FileUpload::class); + $file1 = self::createStub(FileUpload::class); + $file2 = self::createStub(FileUpload::class); $sutFull = $sutEmpty->withUploadedFiles([ $file1, @@ -244,8 +245,8 @@ public function testGetAttributeWithout() { } protected function getServerRequest( - string $method = null, - string $uri = null, + ?string $method = null, + ?string $uri = null, array $headerArray = [], array $serverArray = [], array $globalsArray = [], @@ -262,7 +263,7 @@ protected function getServerRequest( PHP_QUERY_RFC3986 ); - /** @var MockObject|ServerInfo $serverInfo */ + /** @var Stub|ServerInfo $serverInfo */ $serverInfo = self::getMockServerInfo($serverArray); return new ServerRequest( @@ -276,21 +277,21 @@ protected function getServerRequest( ); } - /** @return MockObject|Uri */ - protected function getMockUri(string $uriPath):MockObject { - $mock = self::createMock(Uri::class); + /** @return Stub|Uri */ + protected function getMockUri(string $uriPath):Stub { + $mock = self::createStub(Uri::class); return $mock; } - /** @return MockObject|RequestHeaders */ - protected function getMockHeaders(array $headers = []):MockObject { - $mock = self::createMock(RequestHeaders::class); + /** @return Stub|RequestHeaders */ + protected function getMockHeaders(array $headers = []):Stub { + $mock = self::createStub(RequestHeaders::class); return $mock; } - /** @return MockObject|ServerInfo */ - protected function getMockServerInfo(array $server = []):MockObject { - $mock = self::createMock(ServerInfo::class); + /** @return Stub|ServerInfo */ + protected function getMockServerInfo(array $server = []):Stub { + $mock = self::createStub(ServerInfo::class); $mock->method("getParams") ->willReturn($server); $mock->method("getQueryParams") @@ -300,7 +301,7 @@ protected function getMockServerInfo(array $server = []):MockObject { }); $mock->method("withQueryParams") ->willReturnCallback(function($params)use($mock) { - $clone = self::createMock(ServerInfo::class); + $clone = self::createStub(ServerInfo::class); $clone->method("getQueryParams") ->willReturn($params); return $clone; diff --git a/test/phpunit/StatusCodeTest.php b/test/phpunit/StatusCodeTest.php new file mode 100644 index 0000000..ebba4ea --- /dev/null +++ b/test/phpunit/StatusCodeTest.php @@ -0,0 +1,82 @@ +get()); + } + + public function testSet():void { + $sut = new StatusCode(); + $sut->set(StatusCode::CREATED); + self::assertSame(StatusCode::CREATED, $sut->get()); + } + + #[DataProvider("validCodeProvider")] + public function testSet_validRange(int $code):void { + $sut = new StatusCode(); + $sut->set($code); + self::assertSame($code, $sut->get()); + } + + public static function validCodeProvider():array { + return [[100], [599], [299], [471]]; + } + + #[DataProvider("invalidCodeProvider")] + public function testSet_invalidCodePreservesState(int $code):void { + $sut = new StatusCode(); + $sut->set(StatusCode::CREATED); + + try { + $sut->set($code); + self::fail("Expected an invalid status code to be rejected"); + } + catch(InvalidArgumentException) { + self::assertSame(StatusCode::CREATED, $sut->get()); + } + } + + public static function invalidCodeProvider():array { + return [[PHP_INT_MIN], [-1], [0], [99], [600], [PHP_INT_MAX]]; + } + + public function testSet_replacesState():void { + $sut = new StatusCode(); + $sut->set(StatusCode::CREATED); + $sut->set(StatusCode::NOT_FOUND); + self::assertSame(StatusCode::NOT_FOUND, $sut->get()); + self::assertSame("Not Found", $sut->getReasonPhrase()); + } + + public function testReset():void { + $sut = new StatusCode(); + $sut->reset(); + self::assertNull($sut->get()); + $sut->set(StatusCode::CREATED); + $sut->reset(); + self::assertNull($sut->get()); + self::assertSame("", $sut->getReasonPhrase()); + $sut->set(StatusCode::OK); + self::assertSame(StatusCode::OK, $sut->get()); + } + + public function testGetReasonPhrase():void { + $sut = new StatusCode(); + self::assertSame("", $sut->getReasonPhrase()); + + foreach(StatusCode::REASON_PHRASE as $code => $phrase) { + $sut->set($code); + self::assertSame($phrase, $sut->getReasonPhrase()); + } + + $sut->set(471); + self::assertSame("", $sut->getReasonPhrase()); + } +} diff --git a/test/phpunit/URLSearchParamsTest.php b/test/phpunit/URLSearchParamsTest.php index 7875a31..136171e 100644 --- a/test/phpunit/URLSearchParamsTest.php +++ b/test/phpunit/URLSearchParamsTest.php @@ -48,13 +48,13 @@ public function testToString_multipleKeyValueFromAssocArray():void { } public function testToString_formDataOptionsEmpty():void { - $formData = self::createMock(FormData::class); + $formData = self::createStub(FormData::class); $sut = new URLSearchParams($formData); self::assertSame("", (string)$sut); } public function testToString_formDataOptions():void { - $formData = self::createMock(FormData::class); + $formData = self::createStub(FormData::class); $formData->method("valid") ->willReturnOnConsecutiveCalls(true, true, true, false); $formData->method("key") diff --git a/test/phpunit/UriTest.php b/test/phpunit/UriTest.php index e624569..e224b37 100644 --- a/test/phpunit/UriTest.php +++ b/test/phpunit/UriTest.php @@ -6,6 +6,7 @@ use GT\Http\Uri; use GT\Http\UriFactory; use GT\Http\UriParseErrorException; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use TypeError; @@ -43,13 +44,13 @@ public function testCanTransformAndRetrievePartsIndividually() { $this->assertSame('https://user:pass@example.com:8080/path/123?q=abc#test', (string)$uri); } - /** @dataProvider getValidUris */ + #[DataProvider("getValidUris")] public function testValidUrisStayValid($input) { $uri = new Uri($input); self::assertSame($input, (string)$uri); } - /** @dataProvider getValidUris */ + #[DataProvider("getValidUris")] public function testFromParts($input) { $uri = (new UriFactory())->createFromParts(parse_url($input)); self::assertSame($input, (string)$uri); @@ -83,7 +84,7 @@ public static function getValidUris():array { ]; } - /** @dataProvider getInvalidUris */ + #[DataProvider("getInvalidUris")] public function testInvalidUrisThrowException($invalidUri) { self::expectException(UriParseErrorException::class); new Uri($invalidUri); @@ -255,9 +256,7 @@ protected function isAuthorityPathValid(array $authorityParts):bool { $this->assertSame('admin@10.10.0.8/status.xml', $uri->getPath()); } - /** - * @dataProvider getPortTestCases - */ + #[DataProvider("getPortTestCases")] public function testIsDefaultPort($scheme, $port, $isDefaultPort) { $uri = (new Uri()) ->withScheme($scheme) @@ -562,9 +561,7 @@ public static function uriComponentsEncodingProvider() { ]; } - /** - * @dataProvider uriComponentsEncodingProvider - */ + #[DataProvider("uriComponentsEncodingProvider")] public static function testUriComponentsGetEncodedProperly( $input, $path,