diff --git a/composer.json b/composer.json index 3894f76..b088f25 100644 --- a/composer.json +++ b/composer.json @@ -22,9 +22,9 @@ }, "require": { "php": ">=8.1", - "phpunit/phpunit": "^9.5" - }, - "require-dev": { + + "phpunit/phpunit": "11.4.4", + "nikic/php-parser": "5.4.0" }, "scripts": { "test": "phpunit" diff --git a/composer.lock b/composer.lock index 43b3a2a..3a1eaec 100644 --- a/composer.lock +++ b/composer.lock @@ -4,91 +4,20 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "ff0ad2d1e0c506b4393964477394f0be", + "content-hash": "4007d07cdeee2d422803107eb3a8701e", "packages": [ - { - "name": "doctrine/instantiator", - "version": "2.0.x-dev", - "source": { - "type": "git", - "url": "https://github.com/doctrine/instantiator.git", - "reference": "be6a7e86c74841eac964ae16853e4036a6a319d0" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/doctrine/instantiator/zipball/be6a7e86c74841eac964ae16853e4036a6a319d0", - "reference": "be6a7e86c74841eac964ae16853e4036a6a319d0", - "shasum": "" - }, - "require": { - "php": "^8.1" - }, - "require-dev": { - "doctrine/coding-standard": "^12", - "ext-pdo": "*", - "ext-phar": "*", - "phpbench/phpbench": "^1.2", - "phpstan/phpstan": "^1.9.4", - "phpstan/phpstan-phpunit": "^1.3", - "phpunit/phpunit": "^10.5", - "vimeo/psalm": "^5.4" - }, - "default-branch": true, - "type": "library", - "autoload": { - "psr-4": { - "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Marco Pivetta", - "email": "ocramius@gmail.com", - "homepage": "https://ocramius.github.io/" - } - ], - "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", - "homepage": "https://www.doctrine-project.org/projects/instantiator.html", - "keywords": [ - "constructor", - "instantiate" - ], - "support": { - "issues": "https://github.com/doctrine/instantiator/issues", - "source": "https://github.com/doctrine/instantiator/tree/2.0.x" - }, - "funding": [ - { - "url": "https://www.doctrine-project.org/sponsorship.html", - "type": "custom" - }, - { - "url": "https://www.patreon.com/phpdoctrine", - "type": "patreon" - }, - { - "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finstantiator", - "type": "tidelift" - } - ], - "time": "2024-10-16T22:06:28+00:00" - }, { "name": "myclabs/deep-copy", "version": "1.x-dev", "source": { "type": "git", "url": "https://github.com/myclabs/DeepCopy.git", - "reference": "123267b2c49fbf30d78a7b2d333f6be754b94845" + "reference": "4764e040f8743e92b86c36f488f32d0265dd1dae" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/123267b2c49fbf30d78a7b2d333f6be754b94845", - "reference": "123267b2c49fbf30d78a7b2d333f6be754b94845", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/4764e040f8743e92b86c36f488f32d0265dd1dae", + "reference": "4764e040f8743e92b86c36f488f32d0265dd1dae", "shasum": "" }, "require": { @@ -128,7 +57,7 @@ ], "support": { "issues": "https://github.com/myclabs/DeepCopy/issues", - "source": "https://github.com/myclabs/DeepCopy/tree/1.12.1" + "source": "https://github.com/myclabs/DeepCopy/tree/1.x" }, "funding": [ { @@ -136,20 +65,20 @@ "type": "tidelift" } ], - "time": "2024-11-08T17:47:46+00:00" + "time": "2024-11-26T13:04:49+00:00" }, { "name": "nikic/php-parser", - "version": "v5.3.1", + "version": "v5.4.0", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "8eea230464783aa9671db8eea6f8c6ac5285794b" + "reference": "447a020a1f875a434d62f2a401f53b82a396e494" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/8eea230464783aa9671db8eea6f8c6ac5285794b", - "reference": "8eea230464783aa9671db8eea6f8c6ac5285794b", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/447a020a1f875a434d62f2a401f53b82a396e494", + "reference": "447a020a1f875a434d62f2a401f53b82a396e494", "shasum": "" }, "require": { @@ -192,9 +121,9 @@ ], "support": { "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v5.3.1" + "source": "https://github.com/nikic/PHP-Parser/tree/v5.4.0" }, - "time": "2024-10-08T18:51:32+00:00" + "time": "2024-12-30T11:07:19+00:00" }, { "name": "phar-io/manifest", @@ -317,35 +246,35 @@ }, { "name": "phpunit/php-code-coverage", - "version": "9.2.x-dev", + "version": "11.0.x-dev", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "0448d60087a382392a1b2a1abe434466e03dcc87" + "reference": "6d2586c37dab648446a0260698de0e4165904b40" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/0448d60087a382392a1b2a1abe434466e03dcc87", - "reference": "0448d60087a382392a1b2a1abe434466e03dcc87", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/6d2586c37dab648446a0260698de0e4165904b40", + "reference": "6d2586c37dab648446a0260698de0e4165904b40", "shasum": "" }, "require": { "ext-dom": "*", "ext-libxml": "*", "ext-xmlwriter": "*", - "nikic/php-parser": "^4.19.1 || ^5.1.0", - "php": ">=7.3", - "phpunit/php-file-iterator": "^3.0.6", - "phpunit/php-text-template": "^2.0.4", - "sebastian/code-unit-reverse-lookup": "^2.0.3", - "sebastian/complexity": "^2.0.3", - "sebastian/environment": "^5.1.5", - "sebastian/lines-of-code": "^1.0.4", - "sebastian/version": "^3.0.2", + "nikic/php-parser": "^5.4.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.0", + "sebastian/lines-of-code": "^3.0.1", + "sebastian/version": "^5.0.2", "theseer/tokenizer": "^1.2.3" }, "require-dev": { - "phpunit/phpunit": "^9.6" + "phpunit/phpunit": "^11.5.2" }, "suggest": { "ext-pcov": "PHP extension that provides line coverage", @@ -354,7 +283,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "9.2.x-dev" + "dev-main": "11.0.x-dev" } }, "autoload": { @@ -383,7 +312,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/9.2" + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/11.0" }, "funding": [ { @@ -391,32 +320,33 @@ "type": "github" } ], - "time": "2024-10-31T05:58:25+00:00" + "time": "2025-01-01T10:04:03+00:00" }, { "name": "phpunit/php-file-iterator", - "version": "3.0.x-dev", + "version": "dev-main", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-file-iterator.git", - "reference": "38b24367e1b340aa78b96d7cab042942d917bb84" + "reference": "2c98c03fbaf11947fa7af3addf0dd5cc53ef2222" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/38b24367e1b340aa78b96d7cab042942d917bb84", - "reference": "38b24367e1b340aa78b96d7cab042942d917bb84", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/2c98c03fbaf11947fa7af3addf0dd5cc53ef2222", + "reference": "2c98c03fbaf11947fa7af3addf0dd5cc53ef2222", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.2" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^11.3" }, + "default-branch": true, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.0-dev" + "dev-main": "5.1-dev" } }, "autoload": { @@ -443,7 +373,8 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", - "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/3.0" + "security": "https://github.com/sebastianbergmann/php-file-iterator/security/policy", + "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/main" }, "funding": [ { @@ -451,36 +382,37 @@ "type": "github" } ], - "time": "2022-02-11T16:23:04+00:00" + "time": "2025-01-01T09:40:42+00:00" }, { "name": "phpunit/php-invoker", - "version": "3.1.1", + "version": "dev-main", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-invoker.git", - "reference": "5a10147d0aaf65b58940a0b72f71c9ac0423cc67" + "reference": "8a37f00b9cabe5e6f9243da4a9f03a870d674c5f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/5a10147d0aaf65b58940a0b72f71c9ac0423cc67", - "reference": "5a10147d0aaf65b58940a0b72f71c9ac0423cc67", + "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/8a37f00b9cabe5e6f9243da4a9f03a870d674c5f", + "reference": "8a37f00b9cabe5e6f9243da4a9f03a870d674c5f", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.2" }, "require-dev": { "ext-pcntl": "*", - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^11.3" }, "suggest": { "ext-pcntl": "*" }, + "default-branch": true, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.1-dev" + "dev-main": "5.0-dev" } }, "autoload": { @@ -506,7 +438,8 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-invoker/issues", - "source": "https://github.com/sebastianbergmann/php-invoker/tree/3.1.1" + "security": "https://github.com/sebastianbergmann/php-invoker/security/policy", + "source": "https://github.com/sebastianbergmann/php-invoker/tree/main" }, "funding": [ { @@ -514,32 +447,33 @@ "type": "github" } ], - "time": "2020-09-28T05:58:55+00:00" + "time": "2025-01-01T09:41:13+00:00" }, { "name": "phpunit/php-text-template", - "version": "2.0.4", + "version": "dev-main", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-text-template.git", - "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28" + "reference": "448ebac2e0bce19946d1c94cd5ef7d7232223ab9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28", - "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28", + "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/448ebac2e0bce19946d1c94cd5ef7d7232223ab9", + "reference": "448ebac2e0bce19946d1c94cd5ef7d7232223ab9", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.2" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^11.3" }, + "default-branch": true, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0-dev" + "dev-main": "4.0-dev" } }, "autoload": { @@ -565,7 +499,8 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-text-template/issues", - "source": "https://github.com/sebastianbergmann/php-text-template/tree/2.0.4" + "security": "https://github.com/sebastianbergmann/php-text-template/security/policy", + "source": "https://github.com/sebastianbergmann/php-text-template/tree/main" }, "funding": [ { @@ -573,32 +508,33 @@ "type": "github" } ], - "time": "2020-10-26T05:33:50+00:00" + "time": "2025-01-01T09:41:42+00:00" }, { "name": "phpunit/php-timer", - "version": "5.0.3", + "version": "dev-main", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-timer.git", - "reference": "5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2" + "reference": "8bd85ca4d648a58374332de6de3ac7229c013466" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2", - "reference": "5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/8bd85ca4d648a58374332de6de3ac7229c013466", + "reference": "8bd85ca4d648a58374332de6de3ac7229c013466", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.2" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^11.3" }, + "default-branch": true, "type": "library", "extra": { "branch-alias": { - "dev-master": "5.0-dev" + "dev-main": "7.0-dev" } }, "autoload": { @@ -624,7 +560,8 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-timer/issues", - "source": "https://github.com/sebastianbergmann/php-timer/tree/5.0.3" + "security": "https://github.com/sebastianbergmann/php-timer/security/policy", + "source": "https://github.com/sebastianbergmann/php-timer/tree/main" }, "funding": [ { @@ -632,54 +569,51 @@ "type": "github" } ], - "time": "2020-10-26T13:16:10+00:00" + "time": "2025-01-01T09:42:21+00:00" }, { "name": "phpunit/phpunit", - "version": "9.6.x-dev", + "version": "11.4.4", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "7e5a1cc50d52a8019af1d0bf90f0980f16ea9f8a" + "reference": "f9ba7bd3c9f3ff54ec379d7a1c2e3f13fe0bbde4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/7e5a1cc50d52a8019af1d0bf90f0980f16ea9f8a", - "reference": "7e5a1cc50d52a8019af1d0bf90f0980f16ea9f8a", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/f9ba7bd3c9f3ff54ec379d7a1c2e3f13fe0bbde4", + "reference": "f9ba7bd3c9f3ff54ec379d7a1c2e3f13fe0bbde4", "shasum": "" }, "require": { - "doctrine/instantiator": "^1.5.0 || ^2", "ext-dom": "*", "ext-json": "*", "ext-libxml": "*", "ext-mbstring": "*", "ext-xml": "*", "ext-xmlwriter": "*", - "myclabs/deep-copy": "^1.12.0", + "myclabs/deep-copy": "^1.12.1", "phar-io/manifest": "^2.0.4", "phar-io/version": "^3.2.1", - "php": ">=7.3", - "phpunit/php-code-coverage": "^9.2.32", - "phpunit/php-file-iterator": "^3.0.6", - "phpunit/php-invoker": "^3.1.1", - "phpunit/php-text-template": "^2.0.4", - "phpunit/php-timer": "^5.0.3", - "sebastian/cli-parser": "^1.0.2", - "sebastian/code-unit": "^1.0.8", - "sebastian/comparator": "^4.0.8", - "sebastian/diff": "^4.0.6", - "sebastian/environment": "^5.1.5", - "sebastian/exporter": "^4.0.6", - "sebastian/global-state": "^5.0.7", - "sebastian/object-enumerator": "^4.0.4", - "sebastian/resource-operations": "^3.0.4", - "sebastian/type": "^3.2.1", - "sebastian/version": "^3.0.2" + "php": ">=8.2", + "phpunit/php-code-coverage": "^11.0.7", + "phpunit/php-file-iterator": "^5.1.0", + "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.1", + "sebastian/comparator": "^6.2.1", + "sebastian/diff": "^6.0.2", + "sebastian/environment": "^7.2.0", + "sebastian/exporter": "^6.1.3", + "sebastian/global-state": "^7.0.2", + "sebastian/object-enumerator": "^6.0.1", + "sebastian/type": "^5.1.0", + "sebastian/version": "^5.0.2" }, "suggest": { - "ext-soap": "To be able to generate mocks based on WSDL files", - "ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage" + "ext-soap": "To be able to generate mocks based on WSDL files" }, "bin": [ "phpunit" @@ -687,7 +621,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "9.6-dev" + "dev-main": "11.4-dev" } }, "autoload": { @@ -719,7 +653,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6" + "source": "https://github.com/sebastianbergmann/phpunit/tree/11.4.4" }, "funding": [ { @@ -735,32 +669,33 @@ "type": "tidelift" } ], - "time": "2024-10-31T05:51:17+00:00" + "time": "2024-11-27T10:44:52+00:00" }, { "name": "sebastian/cli-parser", - "version": "1.0.x-dev", + "version": "dev-main", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/cli-parser.git", - "reference": "2b56bea83a09de3ac06bb18b92f068e60cc6f50b" + "reference": "17bf3cd4330720e8b0779925527dcc0073d74a42" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/2b56bea83a09de3ac06bb18b92f068e60cc6f50b", - "reference": "2b56bea83a09de3ac06bb18b92f068e60cc6f50b", + "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/17bf3cd4330720e8b0779925527dcc0073d74a42", + "reference": "17bf3cd4330720e8b0779925527dcc0073d74a42", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.2" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^11.3" }, + "default-branch": true, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0-dev" + "dev-main": "3.0-dev" } }, "autoload": { @@ -783,7 +718,8 @@ "homepage": "https://github.com/sebastianbergmann/cli-parser", "support": { "issues": "https://github.com/sebastianbergmann/cli-parser/issues", - "source": "https://github.com/sebastianbergmann/cli-parser/tree/1.0.2" + "security": "https://github.com/sebastianbergmann/cli-parser/security/policy", + "source": "https://github.com/sebastianbergmann/cli-parser/tree/main" }, "funding": [ { @@ -791,32 +727,33 @@ "type": "github" } ], - "time": "2024-03-02T06:27:43+00:00" + "time": "2025-01-01T09:30:10+00:00" }, { "name": "sebastian/code-unit", - "version": "1.0.8", + "version": "dev-main", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/code-unit.git", - "reference": "1fc9f64c0927627ef78ba436c9b17d967e68e120" + "reference": "1f56f951e080c0353ee13ed8e5a8e900b9e7a6b7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/code-unit/zipball/1fc9f64c0927627ef78ba436c9b17d967e68e120", - "reference": "1fc9f64c0927627ef78ba436c9b17d967e68e120", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit/zipball/1f56f951e080c0353ee13ed8e5a8e900b9e7a6b7", + "reference": "1f56f951e080c0353ee13ed8e5a8e900b9e7a6b7", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.2" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^11.5" }, + "default-branch": true, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0-dev" + "dev-main": "3.0-dev" } }, "autoload": { @@ -839,7 +776,8 @@ "homepage": "https://github.com/sebastianbergmann/code-unit", "support": { "issues": "https://github.com/sebastianbergmann/code-unit/issues", - "source": "https://github.com/sebastianbergmann/code-unit/tree/1.0.8" + "security": "https://github.com/sebastianbergmann/code-unit/security/policy", + "source": "https://github.com/sebastianbergmann/code-unit/tree/main" }, "funding": [ { @@ -847,32 +785,33 @@ "type": "github" } ], - "time": "2020-10-26T13:08:54+00:00" + "time": "2025-01-01T09:30:51+00:00" }, { "name": "sebastian/code-unit-reverse-lookup", - "version": "2.0.3", + "version": "dev-main", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", - "reference": "ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5" + "reference": "1b040bebc0fc06a6e6f65cd3079de9ba0dbfaef1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5", - "reference": "ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/1b040bebc0fc06a6e6f65cd3079de9ba0dbfaef1", + "reference": "1b040bebc0fc06a6e6f65cd3079de9ba0dbfaef1", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.2" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^11.3" }, + "default-branch": true, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0-dev" + "dev-main": "4.0-dev" } }, "autoload": { @@ -894,7 +833,8 @@ "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/", "support": { "issues": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/issues", - "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/2.0.3" + "security": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/security/policy", + "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/main" }, "funding": [ { @@ -902,34 +842,39 @@ "type": "github" } ], - "time": "2020-09-28T05:30:19+00:00" + "time": "2025-01-01T09:31:42+00:00" }, { "name": "sebastian/comparator", - "version": "4.0.x-dev", + "version": "6.3.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "b247957a1c8dc81a671770f74b479c0a78a818f1" + "reference": "d4e47a769525c4dd38cea90e5dcd435ddbbc7115" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/b247957a1c8dc81a671770f74b479c0a78a818f1", - "reference": "b247957a1c8dc81a671770f74b479c0a78a818f1", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/d4e47a769525c4dd38cea90e5dcd435ddbbc7115", + "reference": "d4e47a769525c4dd38cea90e5dcd435ddbbc7115", "shasum": "" }, "require": { - "php": ">=7.3", - "sebastian/diff": "^4.0", - "sebastian/exporter": "^4.0" + "ext-dom": "*", + "ext-mbstring": "*", + "php": ">=8.2", + "sebastian/diff": "^6.0", + "sebastian/exporter": "^6.0" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^11.4" + }, + "suggest": { + "ext-bcmath": "For comparing BcMath\\Number objects" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "4.0-dev" + "dev-main": "6.2-dev" } }, "autoload": { @@ -968,7 +913,8 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/comparator/issues", - "source": "https://github.com/sebastianbergmann/comparator/tree/4.0" + "security": "https://github.com/sebastianbergmann/comparator/security/policy", + "source": "https://github.com/sebastianbergmann/comparator/tree/6.3.0" }, "funding": [ { @@ -976,33 +922,34 @@ "type": "github" } ], - "time": "2022-09-14T12:46:14+00:00" + "time": "2025-01-06T10:28:19+00:00" }, { "name": "sebastian/complexity", - "version": "2.0.x-dev", + "version": "dev-main", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/complexity.git", - "reference": "25f207c40d62b8b7aa32f5ab026c53561964053a" + "reference": "91d8c629065ffdc4a58e2f853abaf8285ca21d9e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/25f207c40d62b8b7aa32f5ab026c53561964053a", - "reference": "25f207c40d62b8b7aa32f5ab026c53561964053a", + "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/91d8c629065ffdc4a58e2f853abaf8285ca21d9e", + "reference": "91d8c629065ffdc4a58e2f853abaf8285ca21d9e", "shasum": "" }, "require": { - "nikic/php-parser": "^4.18 || ^5.0", - "php": ">=7.3" + "nikic/php-parser": "^5.0", + "php": ">=8.2" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^11.3" }, + "default-branch": true, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0-dev" + "dev-main": "4.0-dev" } }, "autoload": { @@ -1025,7 +972,8 @@ "homepage": "https://github.com/sebastianbergmann/complexity", "support": { "issues": "https://github.com/sebastianbergmann/complexity/issues", - "source": "https://github.com/sebastianbergmann/complexity/tree/2.0.3" + "security": "https://github.com/sebastianbergmann/complexity/security/policy", + "source": "https://github.com/sebastianbergmann/complexity/tree/main" }, "funding": [ { @@ -1033,33 +981,34 @@ "type": "github" } ], - "time": "2023-12-22T06:19:30+00:00" + "time": "2025-01-01T09:32:55+00:00" }, { "name": "sebastian/diff", - "version": "4.0.x-dev", + "version": "dev-main", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "ba01945089c3a293b01ba9badc29ad55b106b0bc" + "reference": "414180fa028225aad46f3536fb4db1b917259a2a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/ba01945089c3a293b01ba9badc29ad55b106b0bc", - "reference": "ba01945089c3a293b01ba9badc29ad55b106b0bc", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/414180fa028225aad46f3536fb4db1b917259a2a", + "reference": "414180fa028225aad46f3536fb4db1b917259a2a", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.2" }, "require-dev": { - "phpunit/phpunit": "^9.3", + "phpunit/phpunit": "^11.3", "symfony/process": "^4.2 || ^5" }, + "default-branch": true, "type": "library", "extra": { "branch-alias": { - "dev-master": "4.0-dev" + "dev-main": "6.0-dev" } }, "autoload": { @@ -1091,7 +1040,8 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/diff/issues", - "source": "https://github.com/sebastianbergmann/diff/tree/4.0.6" + "security": "https://github.com/sebastianbergmann/diff/security/policy", + "source": "https://github.com/sebastianbergmann/diff/tree/main" }, "funding": [ { @@ -1099,35 +1049,36 @@ "type": "github" } ], - "time": "2024-03-02T06:30:58+00:00" + "time": "2025-01-01T09:33:55+00:00" }, { "name": "sebastian/environment", - "version": "5.1.x-dev", + "version": "dev-main", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/environment.git", - "reference": "830c43a844f1f8d5b7a1f6d6076b784454d8b7ed" + "reference": "84b1c461d6979f3c005fbb49d3b0164850392582" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/830c43a844f1f8d5b7a1f6d6076b784454d8b7ed", - "reference": "830c43a844f1f8d5b7a1f6d6076b784454d8b7ed", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/84b1c461d6979f3c005fbb49d3b0164850392582", + "reference": "84b1c461d6979f3c005fbb49d3b0164850392582", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.2" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^11.3" }, "suggest": { "ext-posix": "*" }, + "default-branch": true, "type": "library", "extra": { "branch-alias": { - "dev-master": "5.1-dev" + "dev-main": "7.2-dev" } }, "autoload": { @@ -1146,7 +1097,7 @@ } ], "description": "Provides functionality to handle HHVM/PHP environments", - "homepage": "http://www.github.com/sebastianbergmann/environment", + "homepage": "https://github.com/sebastianbergmann/environment", "keywords": [ "Xdebug", "environment", @@ -1154,7 +1105,8 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/environment/issues", - "source": "https://github.com/sebastianbergmann/environment/tree/5.1" + "security": "https://github.com/sebastianbergmann/environment/security/policy", + "source": "https://github.com/sebastianbergmann/environment/tree/main" }, "funding": [ { @@ -1162,34 +1114,34 @@ "type": "github" } ], - "time": "2023-02-03T06:03:51+00:00" + "time": "2025-01-01T09:34:22+00:00" }, { "name": "sebastian/exporter", - "version": "4.0.x-dev", + "version": "6.3.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/exporter.git", - "reference": "78c00df8f170e02473b682df15bfcdacc3d32d72" + "reference": "3473f61172093b2da7de1fb5782e1f24cc036dc3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/78c00df8f170e02473b682df15bfcdacc3d32d72", - "reference": "78c00df8f170e02473b682df15bfcdacc3d32d72", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/3473f61172093b2da7de1fb5782e1f24cc036dc3", + "reference": "3473f61172093b2da7de1fb5782e1f24cc036dc3", "shasum": "" }, "require": { - "php": ">=7.3", - "sebastian/recursion-context": "^4.0" + "ext-mbstring": "*", + "php": ">=8.2", + "sebastian/recursion-context": "^6.0" }, "require-dev": { - "ext-mbstring": "*", - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^11.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "4.0-dev" + "dev-main": "6.1-dev" } }, "autoload": { @@ -1231,7 +1183,8 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/exporter/issues", - "source": "https://github.com/sebastianbergmann/exporter/tree/4.0.6" + "security": "https://github.com/sebastianbergmann/exporter/security/policy", + "source": "https://github.com/sebastianbergmann/exporter/tree/6.3.0" }, "funding": [ { @@ -1239,38 +1192,36 @@ "type": "github" } ], - "time": "2024-03-02T06:33:00+00:00" + "time": "2024-12-05T09:17:50+00:00" }, { "name": "sebastian/global-state", - "version": "5.0.x-dev", + "version": "dev-main", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/global-state.git", - "reference": "bca7df1f32ee6fe93b4d4a9abbf69e13a4ada2c9" + "reference": "28e45982a64f4d801eaea55a8bba489452772642" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bca7df1f32ee6fe93b4d4a9abbf69e13a4ada2c9", - "reference": "bca7df1f32ee6fe93b4d4a9abbf69e13a4ada2c9", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/28e45982a64f4d801eaea55a8bba489452772642", + "reference": "28e45982a64f4d801eaea55a8bba489452772642", "shasum": "" }, "require": { - "php": ">=7.3", - "sebastian/object-reflector": "^2.0", - "sebastian/recursion-context": "^4.0" + "php": ">=8.2", + "sebastian/object-reflector": "^4.0", + "sebastian/recursion-context": "^6.0" }, "require-dev": { "ext-dom": "*", - "phpunit/phpunit": "^9.3" - }, - "suggest": { - "ext-uopz": "*" + "phpunit/phpunit": "^11.3" }, + "default-branch": true, "type": "library", "extra": { "branch-alias": { - "dev-master": "5.0-dev" + "dev-main": "7.0-dev" } }, "autoload": { @@ -1289,13 +1240,14 @@ } ], "description": "Snapshotting of global state", - "homepage": "http://www.github.com/sebastianbergmann/global-state", + "homepage": "https://www.github.com/sebastianbergmann/global-state", "keywords": [ "global state" ], "support": { "issues": "https://github.com/sebastianbergmann/global-state/issues", - "source": "https://github.com/sebastianbergmann/global-state/tree/5.0.7" + "security": "https://github.com/sebastianbergmann/global-state/security/policy", + "source": "https://github.com/sebastianbergmann/global-state/tree/main" }, "funding": [ { @@ -1303,33 +1255,34 @@ "type": "github" } ], - "time": "2024-03-02T06:35:11+00:00" + "time": "2025-01-01T09:35:39+00:00" }, { "name": "sebastian/lines-of-code", - "version": "1.0.x-dev", + "version": "dev-main", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/lines-of-code.git", - "reference": "e1e4a170560925c26d424b6a03aed157e7dcc5c5" + "reference": "bbc228f25b917818bff5fc1bad8fc323a8f65e44" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/e1e4a170560925c26d424b6a03aed157e7dcc5c5", - "reference": "e1e4a170560925c26d424b6a03aed157e7dcc5c5", + "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/bbc228f25b917818bff5fc1bad8fc323a8f65e44", + "reference": "bbc228f25b917818bff5fc1bad8fc323a8f65e44", "shasum": "" }, "require": { - "nikic/php-parser": "^4.18 || ^5.0", - "php": ">=7.3" + "nikic/php-parser": "^5.0", + "php": ">=8.2" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^11.3" }, + "default-branch": true, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0-dev" + "dev-main": "3.0-dev" } }, "autoload": { @@ -1352,7 +1305,8 @@ "homepage": "https://github.com/sebastianbergmann/lines-of-code", "support": { "issues": "https://github.com/sebastianbergmann/lines-of-code/issues", - "source": "https://github.com/sebastianbergmann/lines-of-code/tree/1.0.4" + "security": "https://github.com/sebastianbergmann/lines-of-code/security/policy", + "source": "https://github.com/sebastianbergmann/lines-of-code/tree/main" }, "funding": [ { @@ -1360,34 +1314,35 @@ "type": "github" } ], - "time": "2023-12-22T06:20:34+00:00" + "time": "2025-01-01T09:36:19+00:00" }, { "name": "sebastian/object-enumerator", - "version": "4.0.4", + "version": "dev-main", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/object-enumerator.git", - "reference": "5c9eeac41b290a3712d88851518825ad78f45c71" + "reference": "ffbcccb1cc5d3fea834b706b1a4b06fc84a20b45" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/5c9eeac41b290a3712d88851518825ad78f45c71", - "reference": "5c9eeac41b290a3712d88851518825ad78f45c71", + "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/ffbcccb1cc5d3fea834b706b1a4b06fc84a20b45", + "reference": "ffbcccb1cc5d3fea834b706b1a4b06fc84a20b45", "shasum": "" }, "require": { - "php": ">=7.3", - "sebastian/object-reflector": "^2.0", - "sebastian/recursion-context": "^4.0" + "php": ">=8.2", + "sebastian/object-reflector": "^4.0", + "sebastian/recursion-context": "^6.0" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^11.3" }, + "default-branch": true, "type": "library", "extra": { "branch-alias": { - "dev-master": "4.0-dev" + "dev-main": "6.0-dev" } }, "autoload": { @@ -1409,7 +1364,8 @@ "homepage": "https://github.com/sebastianbergmann/object-enumerator/", "support": { "issues": "https://github.com/sebastianbergmann/object-enumerator/issues", - "source": "https://github.com/sebastianbergmann/object-enumerator/tree/4.0.4" + "security": "https://github.com/sebastianbergmann/object-enumerator/security/policy", + "source": "https://github.com/sebastianbergmann/object-enumerator/tree/main" }, "funding": [ { @@ -1417,32 +1373,33 @@ "type": "github" } ], - "time": "2020-10-26T13:12:34+00:00" + "time": "2025-01-01T09:37:20+00:00" }, { "name": "sebastian/object-reflector", - "version": "2.0.4", + "version": "dev-main", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/object-reflector.git", - "reference": "b4f479ebdbf63ac605d183ece17d8d7fe49c15c7" + "reference": "e2a50646c445ce25637b6a2e80840240078e3ab9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/b4f479ebdbf63ac605d183ece17d8d7fe49c15c7", - "reference": "b4f479ebdbf63ac605d183ece17d8d7fe49c15c7", + "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/e2a50646c445ce25637b6a2e80840240078e3ab9", + "reference": "e2a50646c445ce25637b6a2e80840240078e3ab9", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.2" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^11.3" }, + "default-branch": true, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0-dev" + "dev-main": "4.0-dev" } }, "autoload": { @@ -1464,7 +1421,8 @@ "homepage": "https://github.com/sebastianbergmann/object-reflector/", "support": { "issues": "https://github.com/sebastianbergmann/object-reflector/issues", - "source": "https://github.com/sebastianbergmann/object-reflector/tree/2.0.4" + "security": "https://github.com/sebastianbergmann/object-reflector/security/policy", + "source": "https://github.com/sebastianbergmann/object-reflector/tree/main" }, "funding": [ { @@ -1472,32 +1430,33 @@ "type": "github" } ], - "time": "2020-10-26T13:14:26+00:00" + "time": "2025-01-01T09:38:05+00:00" }, { "name": "sebastian/recursion-context", - "version": "4.0.x-dev", + "version": "dev-main", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/recursion-context.git", - "reference": "e75bd0f07204fec2a0af9b0f3cfe97d05f92efc1" + "reference": "9d338b105f4ac32986976a04f600f576c21c2aed" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/e75bd0f07204fec2a0af9b0f3cfe97d05f92efc1", - "reference": "e75bd0f07204fec2a0af9b0f3cfe97d05f92efc1", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/9d338b105f4ac32986976a04f600f576c21c2aed", + "reference": "9d338b105f4ac32986976a04f600f576c21c2aed", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.2" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^11.3" }, + "default-branch": true, "type": "library", "extra": { "branch-alias": { - "dev-master": "4.0-dev" + "dev-main": "6.0-dev" } }, "autoload": { @@ -1527,7 +1486,8 @@ "homepage": "https://github.com/sebastianbergmann/recursion-context", "support": { "issues": "https://github.com/sebastianbergmann/recursion-context/issues", - "source": "https://github.com/sebastianbergmann/recursion-context/tree/4.0.5" + "security": "https://github.com/sebastianbergmann/recursion-context/security/policy", + "source": "https://github.com/sebastianbergmann/recursion-context/tree/main" }, "funding": [ { @@ -1535,87 +1495,33 @@ "type": "github" } ], - "time": "2023-02-03T06:07:39+00:00" - }, - { - "name": "sebastian/resource-operations", - "version": "dev-main", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/resource-operations.git", - "reference": "ff553e7482dcee39fa4acc2b175d6ddeb0f7bc25" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/ff553e7482dcee39fa4acc2b175d6ddeb0f7bc25", - "reference": "ff553e7482dcee39fa4acc2b175d6ddeb0f7bc25", - "shasum": "" - }, - "require": { - "php": ">=7.3" - }, - "require-dev": { - "phpunit/phpunit": "^9.0" - }, - "default-branch": true, - "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" - } - ], - "description": "Provides a list of PHP built-in functions that operate on resources", - "homepage": "https://www.github.com/sebastianbergmann/resource-operations", - "support": { - "source": "https://github.com/sebastianbergmann/resource-operations/tree/main" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2024-03-14T18:47:08+00:00" + "time": "2025-01-01T09:44:26+00:00" }, { "name": "sebastian/type", - "version": "3.2.x-dev", + "version": "dev-main", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/type.git", - "reference": "75e2c2a32f5e0b3aef905b9ed0b179b953b3d7c7" + "reference": "5e8629d28ab6f9ed567eaefede8897e0af2d19b0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/75e2c2a32f5e0b3aef905b9ed0b179b953b3d7c7", - "reference": "75e2c2a32f5e0b3aef905b9ed0b179b953b3d7c7", + "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/5e8629d28ab6f9ed567eaefede8897e0af2d19b0", + "reference": "5e8629d28ab6f9ed567eaefede8897e0af2d19b0", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.2" }, "require-dev": { - "phpunit/phpunit": "^9.5" + "phpunit/phpunit": "^11.3" }, + "default-branch": true, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.2-dev" + "dev-main": "5.1-dev" } }, "autoload": { @@ -1638,7 +1544,8 @@ "homepage": "https://github.com/sebastianbergmann/type", "support": { "issues": "https://github.com/sebastianbergmann/type/issues", - "source": "https://github.com/sebastianbergmann/type/tree/3.2" + "security": "https://github.com/sebastianbergmann/type/security/policy", + "source": "https://github.com/sebastianbergmann/type/tree/main" }, "funding": [ { @@ -1646,29 +1553,30 @@ "type": "github" } ], - "time": "2023-02-03T06:13:03+00:00" + "time": "2025-01-01T09:44:51+00:00" }, { "name": "sebastian/version", - "version": "3.0.x-dev", + "version": "dev-main", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/version.git", - "reference": "c6c1022351a901512170118436c764e473f6de8c" + "reference": "41070aa60621ad62d3e2a580953142be9a79900b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/c6c1022351a901512170118436c764e473f6de8c", - "reference": "c6c1022351a901512170118436c764e473f6de8c", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/41070aa60621ad62d3e2a580953142be9a79900b", + "reference": "41070aa60621ad62d3e2a580953142be9a79900b", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.2" }, + "default-branch": true, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.0-dev" + "dev-main": "5.0-dev" } }, "autoload": { @@ -1691,7 +1599,8 @@ "homepage": "https://github.com/sebastianbergmann/version", "support": { "issues": "https://github.com/sebastianbergmann/version/issues", - "source": "https://github.com/sebastianbergmann/version/tree/3.0.2" + "security": "https://github.com/sebastianbergmann/version/security/policy", + "source": "https://github.com/sebastianbergmann/version/tree/main" }, "funding": [ { @@ -1699,7 +1608,7 @@ "type": "github" } ], - "time": "2020-09-28T06:39:44+00:00" + "time": "2025-01-01T09:45:27+00:00" }, { "name": "theseer/tokenizer", @@ -1755,12 +1664,12 @@ "packages-dev": [], "aliases": [], "minimum-stability": "dev", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, "platform": { "php": ">=8.1" }, - "platform-dev": [], + "platform-dev": {}, "plugin-api-version": "2.6.0" } diff --git a/Examples/ExampleScripts/generateMessageSchema.php b/examples/ExampleScripts/generateMessageSchema.php similarity index 83% rename from Examples/ExampleScripts/generateMessageSchema.php rename to examples/ExampleScripts/generateMessageSchema.php index 26eef41..dffbd14 100644 --- a/Examples/ExampleScripts/generateMessageSchema.php +++ b/examples/ExampleScripts/generateMessageSchema.php @@ -4,7 +4,7 @@ namespace Darksparrow\AuxiliumSchemaBuilder\examples\SchemaBuilder; require_once __DIR__ . "/../../vendor/autoload.php"; -require_once __DIR__ . "/../../Examples/Schemas/Message.php"; +require_once __DIR__ . "/../../examples/Schemas/Message.php"; use Darksparrow\AuxiliumSchemaBuilder\Examples\SchemaBuilder\Schemas\Message; use Darksparrow\AuxiliumSchemaBuilder\SchemaBuilder\SchemaBuilder; diff --git a/examples/Schemas/CaseSchema.php b/examples/Schemas/CaseSchema.php new file mode 100644 index 0000000..6bad961 --- /dev/null +++ b/examples/Schemas/CaseSchema.php @@ -0,0 +1,97 @@ +Name = $data["name"]; + $this->Departments = $data["departments"]; + $this->Cases = $data["cases"]; + $this->Staff = $data["staff"]; + } + */ +} diff --git a/examples/Schemas/UserSchema.php b/examples/Schemas/UserSchema.php new file mode 100644 index 0000000..3de7591 --- /dev/null +++ b/examples/Schemas/UserSchema.php @@ -0,0 +1,169 @@ + + + + tests + + + diff --git a/src/Attributes/SchemaDocument.php b/src/Attributes/SchemaDocument.php index 80e9d89..4b7e554 100644 --- a/src/Attributes/SchemaDocument.php +++ b/src/Attributes/SchemaDocument.php @@ -10,6 +10,7 @@ use PhpParser\Node\Name; #[\Attribute] class SchemaDocument extends Attribute { + public string $Name; public int $MaxSize; public string $Comment; public string $MimeType; @@ -21,6 +22,7 @@ class SchemaDocument extends Attribute string $MimeType = "" ) { + $this->Name = $Name; $this->MaxSize = $MaxSize; $this->Comment = $Comment; $this->MimeType = $MimeType; diff --git a/src/Attributes/SchemaDocumentChildField.php b/src/Attributes/SchemaDocumentChildField.php deleted file mode 100644 index 7c0aa7f..0000000 --- a/src/Attributes/SchemaDocumentChildField.php +++ /dev/null @@ -1,24 +0,0 @@ -Comment = $Comment; - $this->ValidSchemas = $ValidSchemas; - parent::__construct(new Name("SchemaDocumentChildField"), [], []); - } - -} diff --git a/src/Attributes/SchemaDocumentField.php b/src/Attributes/SchemaDocumentField.php index 16c3b3d..21144f4 100644 --- a/src/Attributes/SchemaDocumentField.php +++ b/src/Attributes/SchemaDocumentField.php @@ -12,26 +12,34 @@ class SchemaDocumentField extends Attribute { public string $Name; - public SchemaFieldExistence $Existence; - public string $Comment; - public array $ValidSchemas; - public int $MaxSize; - public string $MimeType; + public ?SchemaFieldExistence $Existence; + public ?string $Comment; + public ?array $ValidSchemas; + public int $MaxSize = PHP_INT_MIN; + public ?string $MimeType; + public ?SchemaDocumentField $Child; + public ?array $Children; public function __construct( string $Name, - SchemaFieldExistence $Existence = SchemaFieldExistence::MAY, - string $Comment = "", - array $ValidSchemas = [], - int $MaxSize = 0, - string $MimeType = "", - SchemaDocumentChildField $Child = null + ?SchemaFieldExistence $Existence = null, + ?string $Comment = null, + ?array $ValidSchemas = null, + int $MaxSize = PHP_INT_MIN, + ?string $MimeType = null, + ?SchemaDocumentField $Child = null, + ?array $Children = null, ) { + $this->Name = $Name; $this->Existence = $Existence; $this->Comment = $Comment; $this->ValidSchemas = $ValidSchemas; + $this->MaxSize = $MaxSize; $this->MimeType = $MimeType; + $this->Child = $Child; + $this->Children = $Children; + parent::__construct(new Name("SchemaDocumentField"), [], []); } diff --git a/src/Interfaces/SchemaDocumentInterface.php b/src/Interfaces/SchemaDocumentInterface.php new file mode 100644 index 0000000..6507358 --- /dev/null +++ b/src/Interfaces/SchemaDocumentInterface.php @@ -0,0 +1,8 @@ +$value) + { + switch($key) + { + case "Name": + $propertyName = $value; + break; + case "Existence": + if($value == null) continue; + $propertySchema["@existence"] = $value; + break; + case "Comment": + if($value == null) continue; + $propertySchema["@comment"] = $value; + break; + case "ValidSchemas": + if($value == null) continue; + + $propertySchema["@valid_schemas"] = []; + foreach($value as $validSchema) + { + if (preg_match(self::CLASS_NAME_REGEX, $validSchema)) + $propertySchema["@valid_schemas"][] = URLHandling::GetURLForSchema($validSchema); + elseif (preg_match(self::URL_REGEX, $validSchema)) + $propertySchema["@valid_schemas"][] = $validSchema; + else + throw new \Exception("Invalid schema property: " . $validSchema); + } + break; + case "MaxSize": + if($value == PHP_INT_MIN) continue; + $propertySchema["@max_size"] = $value; + break; + case "MimeType": + if($value == null) continue; + $propertySchema["@mime_type"] = $value; + break; + case "Child": + if($value == null) continue; + $temp = json_decode(json_encode($value), true); + unset($temp['nodeType']); + unset($temp['attributes']); + unset($temp['name']); + unset($temp['args']); + $propertySchema["#"] = self::ProcessSchemaPropertyArguments($temp)[1]; + break; + case "Children": + if($value == null) continue; + foreach($value as $child) + { + $temp = json_decode(json_encode($child), true); + unset($temp['nodeType']); + unset($temp['attributes']); + unset($temp['name']); + unset($temp['args']); + $propertySchema[$child->Name] = self::ProcessSchemaPropertyArguments($temp)[1]; + } + break; + default: + throw new \Exception("unknown property: " . $key); + } + } + return [$propertyName, $propertySchema]; + } - /** - * @throws SchemaDocumentFieldNameUnsetException - */ - public static function GenerateSchema(string $targetSchemaClassName): array + private static function ProcessSchemaProperties($reflection): array { $schema = []; - $validKeys = self::GetValidKeys(); + foreach ($reflection->getProperties() as $property) + { + $targetAttribute = null; + foreach ($property->getAttributes() as $attribute) + if($attribute->getName() == SchemaDocumentField::class) + $targetAttribute = $attribute; + + if($targetAttribute == null) + throw new \Exception("required attribute does not exist"); + + $temp = self::ProcessSchemaPropertyArguments($targetAttribute->getArguments()); + $propertyName = $temp[0]; + $propertySchema = $temp[1]; + if($propertyName == "") + throw new SchemaDocumentFieldNameUnsetException(); + $schema["$propertyName"] = $propertySchema; + } + return $schema; + } + + + public static function GenerateSchema(string $targetSchemaClassName): array + { $reflection = new ReflectionClass(new $targetSchemaClassName()); + $schema = []; + /* * Schema "meta-data" from here... */ foreach($reflection->getAttributes()[0]->getArguments() as $key=>$value) - if(self::VerifyField($key, $value, $validKeys[0])) - $schema["@" . self::PascalCaseToSnakeCase(input: $key)] = $value; + if(self::VerifyField($key, $value, self::GetValidKeys()[0])) + if($key != "Name") + $schema["@" . self::PascalCaseToSnakeCase(input: $key)] = $value; /* * Property handling from here... */ - foreach ($reflection->getProperties() as $property) - { - $propertyName = ""; - $propertySchema = []; - - foreach ($property->getAttributes() as $attribute) - { - if($attribute->getName() != SchemaDocumentField::class) - continue; - - foreach($attribute->getArguments() as $key=>$value) - { - if($key == "Name") - { - $propertyName = $value; - } - elseif($key == "Child") - { - $propertySchema["#"] = [ - "@comment" => $value->Comment, - "@valid_schemas" => $value->ValidSchemas, - ]; - } - elseif(self::VerifyField($key, $value, $validKeys[1])) - { - $propertySchema["@" . self::PascalCaseToSnakeCase(input: $key)] = $value; - } - } - } - if($propertyName == "") - throw new SchemaDocumentFieldNameUnsetException(); - - $schema["$propertyName"] = $propertySchema; - } + foreach(self::ProcessSchemaProperties($reflection) as $key=>$value) + $schema[$key] = $value; return $schema; } diff --git a/src/Utilities/URLHandling.php b/src/Utilities/URLHandling.php new file mode 100644 index 0000000..63da986 --- /dev/null +++ b/src/Utilities/URLHandling.php @@ -0,0 +1,24 @@ +getAttributes() as $attribute) + { + if($attribute->getName() === SchemaDocument::class) + { + $name = $attribute->getArguments()["Name"]; + return self::$URLBase . $name . ".json"; + } + } + throw new \Exception("Could not determine URL for schema " . $targetSchemaClassName . "."); + } +} diff --git a/tests/SchemaURITest.php b/tests/SchemaURITest.php new file mode 100644 index 0000000..5e472b4 --- /dev/null +++ b/tests/SchemaURITest.php @@ -0,0 +1,20 @@ +