diff --git a/composer.lock b/composer.lock index f050a95d..3d8bf18f 100644 --- a/composer.lock +++ b/composer.lock @@ -83,79 +83,32 @@ }, "time": "2023-02-02T22:02:53+00:00" }, - { - "name": "doctrine/deprecations", - "version": "v1.1.1", - "source": { - "type": "git", - "url": "https://github.com/doctrine/deprecations.git", - "reference": "612a3ee5ab0d5dd97b7cf3874a6efe24325efac3" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/doctrine/deprecations/zipball/612a3ee5ab0d5dd97b7cf3874a6efe24325efac3", - "reference": "612a3ee5ab0d5dd97b7cf3874a6efe24325efac3", - "shasum": "" - }, - "require": { - "php": "^7.1 || ^8.0" - }, - "require-dev": { - "doctrine/coding-standard": "^9", - "phpstan/phpstan": "1.4.10 || 1.10.15", - "phpstan/phpstan-phpunit": "^1.0", - "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", - "psalm/plugin-phpunit": "0.18.4", - "psr/log": "^1 || ^2 || ^3", - "vimeo/psalm": "4.30.0 || 5.12.0" - }, - "suggest": { - "psr/log": "Allows logging deprecations via PSR-3 logger implementation" - }, - "type": "library", - "autoload": { - "psr-4": { - "Doctrine\\Deprecations\\": "lib/Doctrine/Deprecations" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "A small layer on top of trigger_error(E_USER_DEPRECATED) or PSR-3 logging with options to disable all deprecations or selectively for packages.", - "homepage": "https://www.doctrine-project.org/", - "support": { - "issues": "https://github.com/doctrine/deprecations/issues", - "source": "https://github.com/doctrine/deprecations/tree/v1.1.1" - }, - "time": "2023-06-03T09:27:29+00:00" - }, { "name": "doctrine/instantiator", - "version": "1.5.0", + "version": "2.0.0", "source": { "type": "git", "url": "https://github.com/doctrine/instantiator.git", - "reference": "0a0fa9780f5d4e507415a065172d26a98d02047b" + "reference": "c6222283fa3f4ac679f8b9ced9a4e23f163e80d0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/instantiator/zipball/0a0fa9780f5d4e507415a065172d26a98d02047b", - "reference": "0a0fa9780f5d4e507415a065172d26a98d02047b", + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/c6222283fa3f4ac679f8b9ced9a4e23f163e80d0", + "reference": "c6222283fa3f4ac679f8b9ced9a4e23f163e80d0", "shasum": "" }, "require": { - "php": "^7.1 || ^8.0" + "php": "^8.1" }, "require-dev": { - "doctrine/coding-standard": "^9 || ^11", + "doctrine/coding-standard": "^11", "ext-pdo": "*", "ext-phar": "*", - "phpbench/phpbench": "^0.16 || ^1", - "phpstan/phpstan": "^1.4", - "phpstan/phpstan-phpunit": "^1", - "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", - "vimeo/psalm": "^4.30 || ^5.4" + "phpbench/phpbench": "^1.2", + "phpstan/phpstan": "^1.9.4", + "phpstan/phpstan-phpunit": "^1.3", + "phpunit/phpunit": "^9.5.27", + "vimeo/psalm": "^5.4" }, "type": "library", "autoload": { @@ -182,7 +135,7 @@ ], "support": { "issues": "https://github.com/doctrine/instantiator/issues", - "source": "https://github.com/doctrine/instantiator/tree/1.5.0" + "source": "https://github.com/doctrine/instantiator/tree/2.0.0" }, "funding": [ { @@ -198,32 +151,31 @@ "type": "tidelift" } ], - "time": "2022-12-30T00:15:36+00:00" + "time": "2022-12-30T00:23:10+00:00" }, { "name": "doctrine/lexer", - "version": "2.1.0", + "version": "3.0.0", "source": { "type": "git", "url": "https://github.com/doctrine/lexer.git", - "reference": "39ab8fcf5a51ce4b85ca97c7a7d033eb12831124" + "reference": "84a527db05647743d50373e0ec53a152f2cde568" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/lexer/zipball/39ab8fcf5a51ce4b85ca97c7a7d033eb12831124", - "reference": "39ab8fcf5a51ce4b85ca97c7a7d033eb12831124", + "url": "https://api.github.com/repos/doctrine/lexer/zipball/84a527db05647743d50373e0ec53a152f2cde568", + "reference": "84a527db05647743d50373e0ec53a152f2cde568", "shasum": "" }, "require": { - "doctrine/deprecations": "^1.0", - "php": "^7.1 || ^8.0" + "php": "^8.1" }, "require-dev": { - "doctrine/coding-standard": "^9 || ^10", - "phpstan/phpstan": "^1.3", - "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", + "doctrine/coding-standard": "^10", + "phpstan/phpstan": "^1.9", + "phpunit/phpunit": "^9.5", "psalm/plugin-phpunit": "^0.18.3", - "vimeo/psalm": "^4.11 || ^5.0" + "vimeo/psalm": "^5.0" }, "type": "library", "autoload": { @@ -260,7 +212,7 @@ ], "support": { "issues": "https://github.com/doctrine/lexer/issues", - "source": "https://github.com/doctrine/lexer/tree/2.1.0" + "source": "https://github.com/doctrine/lexer/tree/3.0.0" }, "funding": [ { @@ -276,20 +228,20 @@ "type": "tidelift" } ], - "time": "2022-12-14T08:49:07+00:00" + "time": "2022-12-15T16:57:16+00:00" }, { "name": "laravel/pint", - "version": "v1.5.0", + "version": "v1.13.7", "source": { "type": "git", "url": "https://github.com/laravel/pint.git", - "reference": "e0a8cef58b74662f27355be9cdea0e726bbac362" + "reference": "4157768980dbd977f1c4b4cc94997416d8b30ece" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/pint/zipball/e0a8cef58b74662f27355be9cdea0e726bbac362", - "reference": "e0a8cef58b74662f27355be9cdea0e726bbac362", + "url": "https://api.github.com/repos/laravel/pint/zipball/4157768980dbd977f1c4b4cc94997416d8b30ece", + "reference": "4157768980dbd977f1c4b4cc94997416d8b30ece", "shasum": "" }, "require": { @@ -297,16 +249,16 @@ "ext-mbstring": "*", "ext-tokenizer": "*", "ext-xml": "*", - "php": "^8.0" + "php": "^8.1.0" }, "require-dev": { - "friendsofphp/php-cs-fixer": "^3.14.4", - "illuminate/view": "^9.51.0", - "laravel-zero/framework": "^9.2.0", - "mockery/mockery": "^1.5.1", - "nunomaduro/larastan": "^2.4.0", + "friendsofphp/php-cs-fixer": "^3.38.0", + "illuminate/view": "^10.30.1", + "laravel-zero/framework": "^10.3.0", + "mockery/mockery": "^1.6.6", + "nunomaduro/larastan": "^2.6.4", "nunomaduro/termwind": "^1.15.1", - "pestphp/pest": "^1.22.4" + "pestphp/pest": "^2.24.2" }, "bin": [ "builds/pint" @@ -342,7 +294,7 @@ "issues": "https://github.com/laravel/pint/issues", "source": "https://github.com/laravel/pint" }, - "time": "2023-02-14T16:31:02+00:00" + "time": "2023-12-05T19:43:12+00:00" }, { "name": "myclabs/deep-copy", @@ -572,21 +524,21 @@ }, { "name": "phpbench/container", - "version": "2.2.1", + "version": "2.2.2", "source": { "type": "git", "url": "https://github.com/phpbench/container.git", - "reference": "6d555ff7174fca13f9b1ec0b4a089ed41d0ab392" + "reference": "a59b929e00b87b532ca6d0edd8eca0967655af33" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpbench/container/zipball/6d555ff7174fca13f9b1ec0b4a089ed41d0ab392", - "reference": "6d555ff7174fca13f9b1ec0b4a089ed41d0ab392", + "url": "https://api.github.com/repos/phpbench/container/zipball/a59b929e00b87b532ca6d0edd8eca0967655af33", + "reference": "a59b929e00b87b532ca6d0edd8eca0967655af33", "shasum": "" }, "require": { "psr/container": "^1.0|^2.0", - "symfony/options-resolver": "^4.2 || ^5.0 || ^6.0" + "symfony/options-resolver": "^4.2 || ^5.0 || ^6.0 || ^7.0" }, "require-dev": { "friendsofphp/php-cs-fixer": "^2.16", @@ -617,9 +569,9 @@ "description": "Simple, configurable, service container.", "support": { "issues": "https://github.com/phpbench/container/issues", - "source": "https://github.com/phpbench/container/tree/2.2.1" + "source": "https://github.com/phpbench/container/tree/2.2.2" }, - "time": "2022-01-25T10:17:35+00:00" + "time": "2023-10-30T13:38:26+00:00" }, { "name": "phpbench/dom", @@ -674,49 +626,50 @@ }, { "name": "phpbench/phpbench", - "version": "1.2.14", + "version": "1.2.15", "source": { "type": "git", "url": "https://github.com/phpbench/phpbench.git", - "reference": "edbd1b7ecf704eb01f7a2bcd1b8aa8c189f9fa4e" + "reference": "f7000319695cfad04a57fc64bf7ef7abdf4c437c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpbench/phpbench/zipball/edbd1b7ecf704eb01f7a2bcd1b8aa8c189f9fa4e", - "reference": "edbd1b7ecf704eb01f7a2bcd1b8aa8c189f9fa4e", + "url": "https://api.github.com/repos/phpbench/phpbench/zipball/f7000319695cfad04a57fc64bf7ef7abdf4c437c", + "reference": "f7000319695cfad04a57fc64bf7ef7abdf4c437c", "shasum": "" }, "require": { - "doctrine/annotations": "^1.13 || ^2.0", + "doctrine/annotations": "^2.0", "ext-dom": "*", "ext-json": "*", "ext-pcre": "*", "ext-reflection": "*", "ext-spl": "*", "ext-tokenizer": "*", - "php": "^7.4 || ^8.0", + "php": "^8.1", "phpbench/container": "^2.1", "phpbench/dom": "~0.3.3", "psr/log": "^1.1 || ^2.0 || ^3.0", "seld/jsonlint": "^1.1", - "symfony/console": "^4.2 || ^5.0 || ^6.0", - "symfony/filesystem": "^4.2 || ^5.0 || ^6.0", - "symfony/finder": "^4.2 || ^5.0 || ^6.0", - "symfony/options-resolver": "^4.2 || ^5.0 || ^6.0", - "symfony/process": "^4.2 || ^5.0 || ^6.0", + "symfony/console": "^4.2 || ^5.0 || ^6.0 || ^7.0", + "symfony/filesystem": "^4.2 || ^5.0 || ^6.0 || ^7.0", + "symfony/finder": "^4.2 || ^5.0 || ^6.0 || ^7.0", + "symfony/options-resolver": "^4.2 || ^5.0 || ^6.0 || ^7.0", + "symfony/process": "^4.2 || ^5.0 || ^6.0 || ^7.0", "webmozart/glob": "^4.6" }, "require-dev": { "dantleech/invoke": "^2.0", "friendsofphp/php-cs-fixer": "^3.0", "jangregor/phpstan-prophecy": "^1.0", - "phpspec/prophecy": "^1.12", + "phpspec/prophecy": "dev-master", "phpstan/extension-installer": "^1.1", "phpstan/phpstan": "^1.0", "phpstan/phpstan-phpunit": "^1.0", - "phpunit/phpunit": "^9.0", - "symfony/error-handler": "^5.2 || ^6.0", - "symfony/var-dumper": "^4.0 || ^5.0 || ^6.0" + "phpunit/phpunit": "^10.0", + "rector/rector": "^0.18.10", + "symfony/error-handler": "^5.2 || ^6.0 || ^7.0", + "symfony/var-dumper": "^4.0 || ^5.0 || ^6.0 || ^7.0" }, "suggest": { "ext-xdebug": "For Xdebug profiling extension." @@ -750,9 +703,16 @@ } ], "description": "PHP Benchmarking Framework", + "keywords": [ + "benchmarking", + "optimization", + "performance", + "profiling", + "testing" + ], "support": { "issues": "https://github.com/phpbench/phpbench/issues", - "source": "https://github.com/phpbench/phpbench/tree/1.2.14" + "source": "https://github.com/phpbench/phpbench/tree/1.2.15" }, "funding": [ { @@ -760,20 +720,20 @@ "type": "github" } ], - "time": "2023-07-09T09:16:08+00:00" + "time": "2023-11-29T12:21:11+00:00" }, { "name": "phpstan/phpstan", - "version": "1.10.32", + "version": "1.10.48", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan.git", - "reference": "c47e47d3ab03137c0e121e77c4d2cb58672f6d44" + "reference": "087ed4b5f4a7a6e8f3bbdfbfe98ce5c181380bc6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/c47e47d3ab03137c0e121e77c4d2cb58672f6d44", - "reference": "c47e47d3ab03137c0e121e77c4d2cb58672f6d44", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/087ed4b5f4a7a6e8f3bbdfbfe98ce5c181380bc6", + "reference": "087ed4b5f4a7a6e8f3bbdfbfe98ce5c181380bc6", "shasum": "" }, "require": { @@ -822,20 +782,20 @@ "type": "tidelift" } ], - "time": "2023-08-24T21:54:50+00:00" + "time": "2023-12-08T14:34:28+00:00" }, { "name": "phpunit/php-code-coverage", - "version": "9.2.27", + "version": "9.2.29", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "b0a88255cb70d52653d80c890bd7f38740ea50d1" + "reference": "6a3a87ac2bbe33b25042753df8195ba4aa534c76" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/b0a88255cb70d52653d80c890bd7f38740ea50d1", - "reference": "b0a88255cb70d52653d80c890bd7f38740ea50d1", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/6a3a87ac2bbe33b25042753df8195ba4aa534c76", + "reference": "6a3a87ac2bbe33b25042753df8195ba4aa534c76", "shasum": "" }, "require": { @@ -892,7 +852,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.27" + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.29" }, "funding": [ { @@ -900,7 +860,7 @@ "type": "github" } ], - "time": "2023-07-26T13:44:30+00:00" + "time": "2023-09-19T04:57:46+00:00" }, { "name": "phpunit/php-file-iterator", @@ -1145,16 +1105,16 @@ }, { "name": "phpunit/phpunit", - "version": "9.6.11", + "version": "9.6.15", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "810500e92855eba8a7a5319ae913be2da6f957b0" + "reference": "05017b80304e0eb3f31d90194a563fd53a6021f1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/810500e92855eba8a7a5319ae913be2da6f957b0", - "reference": "810500e92855eba8a7a5319ae913be2da6f957b0", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/05017b80304e0eb3f31d90194a563fd53a6021f1", + "reference": "05017b80304e0eb3f31d90194a563fd53a6021f1", "shasum": "" }, "require": { @@ -1169,7 +1129,7 @@ "phar-io/manifest": "^2.0.3", "phar-io/version": "^3.0.2", "php": ">=7.3", - "phpunit/php-code-coverage": "^9.2.13", + "phpunit/php-code-coverage": "^9.2.28", "phpunit/php-file-iterator": "^3.0.5", "phpunit/php-invoker": "^3.1.1", "phpunit/php-text-template": "^2.0.3", @@ -1228,7 +1188,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.11" + "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.15" }, "funding": [ { @@ -1244,7 +1204,7 @@ "type": "tidelift" } ], - "time": "2023-08-19T07:10:56+00:00" + "time": "2023-12-01T16:55:19+00:00" }, { "name": "psr/cache", @@ -2428,48 +2388,46 @@ }, { "name": "symfony/console", - "version": "v6.0.19", + "version": "v7.0.1", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "c3ebc83d031b71c39da318ca8b7a07ecc67507ed" + "reference": "cdce5c684b2f920bb1343deecdfba356ffad83d5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/c3ebc83d031b71c39da318ca8b7a07ecc67507ed", - "reference": "c3ebc83d031b71c39da318ca8b7a07ecc67507ed", + "url": "https://api.github.com/repos/symfony/console/zipball/cdce5c684b2f920bb1343deecdfba356ffad83d5", + "reference": "cdce5c684b2f920bb1343deecdfba356ffad83d5", "shasum": "" }, "require": { - "php": ">=8.0.2", + "php": ">=8.2", "symfony/polyfill-mbstring": "~1.0", - "symfony/service-contracts": "^1.1|^2|^3", - "symfony/string": "^5.4|^6.0" + "symfony/service-contracts": "^2.5|^3", + "symfony/string": "^6.4|^7.0" }, "conflict": { - "symfony/dependency-injection": "<5.4", - "symfony/dotenv": "<5.4", - "symfony/event-dispatcher": "<5.4", - "symfony/lock": "<5.4", - "symfony/process": "<5.4" + "symfony/dependency-injection": "<6.4", + "symfony/dotenv": "<6.4", + "symfony/event-dispatcher": "<6.4", + "symfony/lock": "<6.4", + "symfony/process": "<6.4" }, "provide": { "psr/log-implementation": "1.0|2.0|3.0" }, "require-dev": { "psr/log": "^1|^2|^3", - "symfony/config": "^5.4|^6.0", - "symfony/dependency-injection": "^5.4|^6.0", - "symfony/event-dispatcher": "^5.4|^6.0", - "symfony/lock": "^5.4|^6.0", - "symfony/process": "^5.4|^6.0", - "symfony/var-dumper": "^5.4|^6.0" - }, - "suggest": { - "psr/log": "For using the console logger", - "symfony/event-dispatcher": "", - "symfony/lock": "", - "symfony/process": "" + "symfony/config": "^6.4|^7.0", + "symfony/dependency-injection": "^6.4|^7.0", + "symfony/event-dispatcher": "^6.4|^7.0", + "symfony/http-foundation": "^6.4|^7.0", + "symfony/http-kernel": "^6.4|^7.0", + "symfony/lock": "^6.4|^7.0", + "symfony/messenger": "^6.4|^7.0", + "symfony/process": "^6.4|^7.0", + "symfony/stopwatch": "^6.4|^7.0", + "symfony/var-dumper": "^6.4|^7.0" }, "type": "library", "autoload": { @@ -2498,12 +2456,12 @@ "homepage": "https://symfony.com", "keywords": [ "cli", - "command line", + "command-line", "console", "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v6.0.19" + "source": "https://github.com/symfony/console/tree/v7.0.1" }, "funding": [ { @@ -2519,29 +2477,29 @@ "type": "tidelift" } ], - "time": "2023-01-01T08:36:10+00:00" + "time": "2023-12-01T15:10:06+00:00" }, { "name": "symfony/deprecation-contracts", - "version": "v3.0.2", + "version": "v3.4.0", "source": { "type": "git", "url": "https://github.com/symfony/deprecation-contracts.git", - "reference": "26954b3d62a6c5fd0ea8a2a00c0353a14978d05c" + "reference": "7c3aff79d10325257a001fcf92d991f24fc967cf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/26954b3d62a6c5fd0ea8a2a00c0353a14978d05c", - "reference": "26954b3d62a6c5fd0ea8a2a00c0353a14978d05c", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/7c3aff79d10325257a001fcf92d991f24fc967cf", + "reference": "7c3aff79d10325257a001fcf92d991f24fc967cf", "shasum": "" }, "require": { - "php": ">=8.0.2" + "php": ">=8.1" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "3.0-dev" + "dev-main": "3.4-dev" }, "thanks": { "name": "symfony/contracts", @@ -2570,7 +2528,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.0.2" + "source": "https://github.com/symfony/deprecation-contracts/tree/v3.4.0" }, "funding": [ { @@ -2586,24 +2544,24 @@ "type": "tidelift" } ], - "time": "2022-01-02T09:55:41+00:00" + "time": "2023-05-23T14:45:45+00:00" }, { "name": "symfony/filesystem", - "version": "v6.0.19", + "version": "v7.0.0", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "3d49eec03fda1f0fc19b7349fbbe55ebc1004214" + "reference": "7da8ea2362a283771478c5f7729cfcb43a76b8b7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/3d49eec03fda1f0fc19b7349fbbe55ebc1004214", - "reference": "3d49eec03fda1f0fc19b7349fbbe55ebc1004214", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/7da8ea2362a283771478c5f7729cfcb43a76b8b7", + "reference": "7da8ea2362a283771478c5f7729cfcb43a76b8b7", "shasum": "" }, "require": { - "php": ">=8.0.2", + "php": ">=8.2", "symfony/polyfill-ctype": "~1.8", "symfony/polyfill-mbstring": "~1.8" }, @@ -2633,7 +2591,7 @@ "description": "Provides basic utilities for the filesystem", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/filesystem/tree/v6.0.19" + "source": "https://github.com/symfony/filesystem/tree/v7.0.0" }, "funding": [ { @@ -2649,24 +2607,27 @@ "type": "tidelift" } ], - "time": "2023-01-20T17:44:14+00:00" + "time": "2023-07-27T06:33:22+00:00" }, { "name": "symfony/finder", - "version": "v6.0.19", + "version": "v7.0.0", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "5cc9cac6586fc0c28cd173780ca696e419fefa11" + "reference": "6e5688d69f7cfc4ed4a511e96007e06c2d34ce56" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/5cc9cac6586fc0c28cd173780ca696e419fefa11", - "reference": "5cc9cac6586fc0c28cd173780ca696e419fefa11", + "url": "https://api.github.com/repos/symfony/finder/zipball/6e5688d69f7cfc4ed4a511e96007e06c2d34ce56", + "reference": "6e5688d69f7cfc4ed4a511e96007e06c2d34ce56", "shasum": "" }, "require": { - "php": ">=8.0.2" + "php": ">=8.2" + }, + "require-dev": { + "symfony/filesystem": "^6.4|^7.0" }, "type": "library", "autoload": { @@ -2694,7 +2655,7 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v6.0.19" + "source": "https://github.com/symfony/finder/tree/v7.0.0" }, "funding": [ { @@ -2710,25 +2671,25 @@ "type": "tidelift" } ], - "time": "2023-01-20T17:44:14+00:00" + "time": "2023-10-31T17:59:56+00:00" }, { "name": "symfony/options-resolver", - "version": "v6.0.19", + "version": "v7.0.0", "source": { "type": "git", "url": "https://github.com/symfony/options-resolver.git", - "reference": "6a180d1c45e0d9797470ca9eb46215692de00fa3" + "reference": "700ff4096e346f54cb628ea650767c8130f1001f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/options-resolver/zipball/6a180d1c45e0d9797470ca9eb46215692de00fa3", - "reference": "6a180d1c45e0d9797470ca9eb46215692de00fa3", + "url": "https://api.github.com/repos/symfony/options-resolver/zipball/700ff4096e346f54cb628ea650767c8130f1001f", + "reference": "700ff4096e346f54cb628ea650767c8130f1001f", "shasum": "" }, "require": { - "php": ">=8.0.2", - "symfony/deprecation-contracts": "^2.1|^3" + "php": ">=8.2", + "symfony/deprecation-contracts": "^2.5|^3" }, "type": "library", "autoload": { @@ -2761,7 +2722,7 @@ "options" ], "support": { - "source": "https://github.com/symfony/options-resolver/tree/v6.0.19" + "source": "https://github.com/symfony/options-resolver/tree/v7.0.0" }, "funding": [ { @@ -2777,7 +2738,7 @@ "type": "tidelift" } ], - "time": "2023-01-01T08:36:10+00:00" + "time": "2023-08-08T10:20:21+00:00" }, { "name": "symfony/polyfill-ctype", @@ -3111,20 +3072,20 @@ }, { "name": "symfony/process", - "version": "v6.0.19", + "version": "v7.0.0", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "2114fd60f26a296cc403a7939ab91478475a33d4" + "reference": "13bdb1670c7f510494e04fcb2bfa29af63db9c0d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/2114fd60f26a296cc403a7939ab91478475a33d4", - "reference": "2114fd60f26a296cc403a7939ab91478475a33d4", + "url": "https://api.github.com/repos/symfony/process/zipball/13bdb1670c7f510494e04fcb2bfa29af63db9c0d", + "reference": "13bdb1670c7f510494e04fcb2bfa29af63db9c0d", "shasum": "" }, "require": { - "php": ">=8.0.2" + "php": ">=8.2" }, "type": "library", "autoload": { @@ -3152,7 +3113,7 @@ "description": "Executes commands in sub-processes", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/process/tree/v6.0.19" + "source": "https://github.com/symfony/process/tree/v7.0.0" }, "funding": [ { @@ -3168,36 +3129,33 @@ "type": "tidelift" } ], - "time": "2023-01-01T08:36:10+00:00" + "time": "2023-11-20T16:43:42+00:00" }, { "name": "symfony/service-contracts", - "version": "v3.0.2", + "version": "v3.4.0", "source": { "type": "git", "url": "https://github.com/symfony/service-contracts.git", - "reference": "d78d39c1599bd1188b8e26bb341da52c3c6d8a66" + "reference": "b3313c2dbffaf71c8de2934e2ea56ed2291a3838" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/service-contracts/zipball/d78d39c1599bd1188b8e26bb341da52c3c6d8a66", - "reference": "d78d39c1599bd1188b8e26bb341da52c3c6d8a66", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/b3313c2dbffaf71c8de2934e2ea56ed2291a3838", + "reference": "b3313c2dbffaf71c8de2934e2ea56ed2291a3838", "shasum": "" }, "require": { - "php": ">=8.0.2", + "php": ">=8.1", "psr/container": "^2.0" }, "conflict": { "ext-psr": "<1.1|>=2" }, - "suggest": { - "symfony/service-implementation": "" - }, "type": "library", "extra": { "branch-alias": { - "dev-main": "3.0-dev" + "dev-main": "3.4-dev" }, "thanks": { "name": "symfony/contracts", @@ -3207,7 +3165,10 @@ "autoload": { "psr-4": { "Symfony\\Contracts\\Service\\": "" - } + }, + "exclude-from-classmap": [ + "/Test/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -3234,7 +3195,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/service-contracts/tree/v3.0.2" + "source": "https://github.com/symfony/service-contracts/tree/v3.4.0" }, "funding": [ { @@ -3250,37 +3211,38 @@ "type": "tidelift" } ], - "time": "2022-05-30T19:17:58+00:00" + "time": "2023-07-30T20:28:31+00:00" }, { "name": "symfony/string", - "version": "v6.0.19", + "version": "v7.0.0", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "d9e72497367c23e08bf94176d2be45b00a9d232a" + "reference": "92bd2bfbba476d4a1838e5e12168bef2fd1e6620" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/d9e72497367c23e08bf94176d2be45b00a9d232a", - "reference": "d9e72497367c23e08bf94176d2be45b00a9d232a", + "url": "https://api.github.com/repos/symfony/string/zipball/92bd2bfbba476d4a1838e5e12168bef2fd1e6620", + "reference": "92bd2bfbba476d4a1838e5e12168bef2fd1e6620", "shasum": "" }, "require": { - "php": ">=8.0.2", + "php": ">=8.2", "symfony/polyfill-ctype": "~1.8", "symfony/polyfill-intl-grapheme": "~1.0", "symfony/polyfill-intl-normalizer": "~1.0", "symfony/polyfill-mbstring": "~1.0" }, "conflict": { - "symfony/translation-contracts": "<2.0" + "symfony/translation-contracts": "<2.5" }, "require-dev": { - "symfony/error-handler": "^5.4|^6.0", - "symfony/http-client": "^5.4|^6.0", - "symfony/translation-contracts": "^2.0|^3.0", - "symfony/var-exporter": "^5.4|^6.0" + "symfony/error-handler": "^6.4|^7.0", + "symfony/http-client": "^6.4|^7.0", + "symfony/intl": "^6.4|^7.0", + "symfony/translation-contracts": "^2.5|^3.0", + "symfony/var-exporter": "^6.4|^7.0" }, "type": "library", "autoload": { @@ -3319,7 +3281,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v6.0.19" + "source": "https://github.com/symfony/string/tree/v7.0.0" }, "funding": [ { @@ -3335,20 +3297,20 @@ "type": "tidelift" } ], - "time": "2023-01-01T08:36:10+00:00" + "time": "2023-11-29T08:40:23+00:00" }, { "name": "theseer/tokenizer", - "version": "1.2.1", + "version": "1.2.2", "source": { "type": "git", "url": "https://github.com/theseer/tokenizer.git", - "reference": "34a41e998c2183e22995f158c581e7b5e755ab9e" + "reference": "b2ad5003ca10d4ee50a12da31de12a5774ba6b96" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/theseer/tokenizer/zipball/34a41e998c2183e22995f158c581e7b5e755ab9e", - "reference": "34a41e998c2183e22995f158c581e7b5e755ab9e", + "url": "https://api.github.com/repos/theseer/tokenizer/zipball/b2ad5003ca10d4ee50a12da31de12a5774ba6b96", + "reference": "b2ad5003ca10d4ee50a12da31de12a5774ba6b96", "shasum": "" }, "require": { @@ -3377,7 +3339,7 @@ "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.2.1" + "source": "https://github.com/theseer/tokenizer/tree/1.2.2" }, "funding": [ { @@ -3385,7 +3347,7 @@ "type": "github" } ], - "time": "2021-07-28T10:34:58+00:00" + "time": "2023-11-20T00:12:19+00:00" }, { "name": "webmozart/glob", @@ -3446,5 +3408,5 @@ "php": ">=8.0" }, "platform-dev": [], - "plugin-api-version": "2.3.0" + "plugin-api-version": "2.6.0" } diff --git a/src/Hook.php b/src/Hook.php index d59942d1..4b933528 100644 --- a/src/Hook.php +++ b/src/Hook.php @@ -252,7 +252,7 @@ public function getParamsValues(): array */ public function setParamValue(string $key, mixed $value): static { - if (! isset($this->params[$key])) { + if (!isset($this->params[$key])) { throw new Exception('Unknown key'); } @@ -271,7 +271,7 @@ public function setParamValue(string $key, mixed $value): static */ public function getParamValue(string $key): mixed { - if (! isset($this->params[$key])) { + if (!isset($this->params[$key])) { throw new Exception('Unknown key'); } diff --git a/src/Request.php b/src/Request.php index 474ca3ce..b877920a 100755 --- a/src/Request.php +++ b/src/Request.php @@ -427,7 +427,7 @@ public function getSize(): int public function getContentRangeStart(): ?int { $data = $this->parseContentRange(); - if (! empty($data)) { + if (!empty($data)) { return $data['start']; } else { return null; @@ -444,7 +444,7 @@ public function getContentRangeStart(): ?int public function getContentRangeEnd(): ?int { $data = $this->parseContentRange(); - if (! empty($data)) { + if (!empty($data)) { return $data['end']; } else { return null; @@ -461,7 +461,7 @@ public function getContentRangeEnd(): ?int public function getContentRangeSize(): ?int { $data = $this->parseContentRange(); - if (! empty($data)) { + if (!empty($data)) { return $data['size']; } else { return null; @@ -478,7 +478,7 @@ public function getContentRangeSize(): ?int public function getContentRangeUnit(): ?string { $data = $this->parseContentRange(); - if (! empty($data)) { + if (!empty($data)) { return $data['unit']; } else { return null; @@ -495,7 +495,7 @@ public function getContentRangeUnit(): ?string public function getRangeStart(): ?int { $data = $this->parseRange(); - if (! empty($data)) { + if (!empty($data)) { return $data['start']; } @@ -512,7 +512,7 @@ public function getRangeStart(): ?int public function getRangeEnd(): ?int { $data = $this->parseRange(); - if (! empty($data)) { + if (!empty($data)) { return $data['end']; } @@ -529,7 +529,7 @@ public function getRangeEnd(): ?int public function getRangeUnit(): ?string { $data = $this->parseRange(); - if (! empty($data)) { + if (!empty($data)) { return $data['unit']; } @@ -621,7 +621,7 @@ protected function generateHeaders(): array * Fallback for older PHP versions * that do not support generateHeaders */ - if (! \function_exists('getallheaders')) { + if (!\function_exists('getallheaders')) { $headers = []; foreach ($_SERVER as $name => $value) { @@ -652,7 +652,7 @@ protected function parseContentRange(): ?array { $contentRange = $this->getHeader('content-range', ''); $data = []; - if (! empty($contentRange)) { + if (!empty($contentRange)) { $contentRange = explode(' ', $contentRange); if (count($contentRange) !== 2) { return null; @@ -669,7 +669,7 @@ protected function parseContentRange(): ?array return null; } - if (! ctype_digit($rangeData[1])) { + if (!ctype_digit($rangeData[1])) { return null; } @@ -679,7 +679,7 @@ protected function parseContentRange(): ?array return null; } - if (! ctype_digit($parts[0]) || ! ctype_digit($parts[1])) { + if (!ctype_digit($parts[0]) || !ctype_digit($parts[1])) { return null; } @@ -721,7 +721,7 @@ protected function parseRange(): ?array return null; } - if (! ctype_digit($ranges[0])) { + if (!ctype_digit($ranges[0])) { return null; } @@ -730,7 +730,7 @@ protected function parseRange(): ?array if (strlen($ranges[1]) === 0) { $data['end'] = null; } else { - if (! ctype_digit($ranges[1])) { + if (!ctype_digit($ranges[1])) { return null; } $data['end'] = (int) $ranges[1]; diff --git a/src/Response.php b/src/Response.php index bd04fe5d..b9c7ba84 100755 --- a/src/Response.php +++ b/src/Response.php @@ -249,7 +249,7 @@ class Response */ public function __construct(float $time = 0) { - $this->startTime = (! empty($time)) ? $time : \microtime(true); + $this->startTime = (!empty($time)) ? $time : \microtime(true); } /** @@ -262,7 +262,7 @@ public function __construct(float $time = 0) */ public function setContentType(string $type, string $charset = ''): static { - $this->contentType = $type.((! empty($charset) ? '; charset='.$charset : '')); + $this->contentType = $type.((!empty($charset) ? '; charset='.$charset : '')); return $this; } @@ -300,7 +300,7 @@ public function isSent(): bool */ public function setStatusCode(int $code = 200): static { - if (! \array_key_exists($code, $this->statusCodes)) { + if (!\array_key_exists($code, $this->statusCodes)) { throw new Exception('Unknown HTTP status code'); } @@ -413,7 +413,8 @@ public function getHeaders(): array public function addCookie(string $name, string $value = null, int $expire = null, string $path = null, string $domain = null, bool $secure = null, bool $httponly = null, string $sameSite = null): static { $name = strtolower($name); - $this->cookies[$name] = [ + + $this->cookies[] = [ 'name' => $name, 'value' => $value, 'expire' => $expire, @@ -436,9 +437,9 @@ public function addCookie(string $name, string $value = null, int $expire = null */ public function removeCookie(string $name): static { - if (isset($this->headers[$name])) { - unset($this->cookies[$name]); - } + $this->cookies = array_filter($this->cookies, function ($cookie) use ($name) { + return $cookie['name'] !== $name; + }); return $this; } @@ -477,7 +478,7 @@ public function send(string $body = ''): void ->appendCookies() ->appendHeaders(); - if (! $this->disablePayload) { + if (!$this->disablePayload) { $length = strlen($body); $this->size = $this->size + strlen(implode("\n", $this->headers)) + $length; @@ -524,7 +525,7 @@ protected function write(string $content): void */ protected function end(string $content = null): void { - if (! is_null($content)) { + if (!is_null($content)) { echo $content; } } @@ -555,7 +556,7 @@ public function chunk(string $body = '', bool $end = false): void ->appendCookies() ->appendHeaders(); - if (! $this->disablePayload) { + if (!$this->disablePayload) { $this->write($body); if ($end) { $this->disablePayload(); @@ -578,7 +579,7 @@ protected function appendHeaders(): static $this->sendStatus($this->statusCode); // Send content type header - if (! empty($this->contentType)) { + if (!empty($this->contentType)) { $this->addHeader('Content-Type', $this->contentType); } @@ -734,7 +735,7 @@ public function text(string $data): void */ public function json($data): void { - if (! is_array($data) && ! $data instanceof \stdClass) { + if (!is_array($data) && !$data instanceof \stdClass) { throw new \Exception('Invalid JSON input var'); } diff --git a/src/Validator/ArrayList.php b/src/Validator/ArrayList.php index 9ff0aced..2c1ed1e1 100644 --- a/src/Validator/ArrayList.php +++ b/src/Validator/ArrayList.php @@ -91,7 +91,7 @@ public function getValidator(): Validator */ public function isValid(mixed $value): bool { - if (! \is_array($value)) { + if (!\is_array($value)) { return false; } @@ -100,7 +100,7 @@ public function isValid(mixed $value): bool } foreach ($value as $element) { - if (! $this->validator->isValid($element)) { + if (!$this->validator->isValid($element)) { return false; } } diff --git a/src/Validator/Assoc.php b/src/Validator/Assoc.php index d1e9ae31..52618682 100644 --- a/src/Validator/Assoc.php +++ b/src/Validator/Assoc.php @@ -57,7 +57,7 @@ public function getType(): string */ public function isValid($value): bool { - if (! \is_array($value)) { + if (!\is_array($value)) { return false; } diff --git a/src/Validator/FloatValidator.php b/src/Validator/FloatValidator.php index f2846fb0..36414248 100755 --- a/src/Validator/FloatValidator.php +++ b/src/Validator/FloatValidator.php @@ -74,12 +74,12 @@ public function getType(): string public function isValid(mixed $value): bool { if ($this->loose) { - if (! \is_numeric($value)) { + if (!\is_numeric($value)) { return false; } $value = $value + 0; } - if (! \is_float($value) && ! \is_int($value)) { + if (!\is_float($value) && !\is_int($value)) { return false; } diff --git a/src/Validator/Hostname.php b/src/Validator/Hostname.php index 0532baf1..b26d62da 100644 --- a/src/Validator/Hostname.php +++ b/src/Validator/Hostname.php @@ -62,7 +62,7 @@ public function getType(): string public function isValid(mixed $value): bool { // Validate proper format - if (! \is_string($value) || empty($value)) { + if (!\is_string($value) || empty($value)) { return false; } diff --git a/src/Validator/Integer.php b/src/Validator/Integer.php index 10480efb..ed885218 100755 --- a/src/Validator/Integer.php +++ b/src/Validator/Integer.php @@ -74,12 +74,12 @@ public function getType(): string public function isValid(mixed $value): bool { if ($this->loose) { - if (! \is_numeric($value)) { + if (!\is_numeric($value)) { return false; } $value = $value + 0; } - if (! \is_int($value)) { + if (!\is_int($value)) { return false; } diff --git a/src/Validator/Numeric.php b/src/Validator/Numeric.php index 480d84f9..e3db46c0 100755 --- a/src/Validator/Numeric.php +++ b/src/Validator/Numeric.php @@ -57,7 +57,7 @@ public function getType(): string */ public function isValid(mixed $value): bool { - if (! \is_numeric($value)) { + if (!\is_numeric($value)) { return false; } diff --git a/src/Validator/Range.php b/src/Validator/Range.php index 063d6c8d..ca13c189 100755 --- a/src/Validator/Range.php +++ b/src/Validator/Range.php @@ -114,7 +114,7 @@ public function getType(): string */ public function isValid(mixed $value): bool { - if (! parent::isValid($value)) { + if (!parent::isValid($value)) { return false; } @@ -126,12 +126,12 @@ public function isValid(mixed $value): bool break; // move to check if value is within range } $value = $value + 0; - if (! is_int($value)) { + if (!is_int($value)) { return false; } break; case self::TYPE_FLOAT: - if (! is_numeric($value)) { + if (!is_numeric($value)) { return false; } $value = $value + 0.0; diff --git a/src/Validator/Text.php b/src/Validator/Text.php index 49224e70..8be82d4f 100644 --- a/src/Validator/Text.php +++ b/src/Validator/Text.php @@ -127,7 +127,7 @@ public function isValid(mixed $value): bool if (\count($this->allowList) > 0) { foreach (\str_split($value) as $char) { - if (! \in_array($char, $this->allowList)) { + if (!\in_array($char, $this->allowList)) { return false; } } diff --git a/src/Validator/WhiteList.php b/src/Validator/WhiteList.php index 02057f26..b374bb4f 100755 --- a/src/Validator/WhiteList.php +++ b/src/Validator/WhiteList.php @@ -41,7 +41,7 @@ public function __construct(array $list, bool $strict = false, string $type = se $this->strict = $strict; $this->type = $type; - if (! $this->strict) { + if (!$this->strict) { foreach ($this->list as $key => &$value) { $this->list[$key] = \strtolower($value); } @@ -110,7 +110,7 @@ public function isValid(mixed $value): bool $value = ($this->strict) ? $value : \strtolower($value); - if (! \in_array($value, $this->list, $this->strict)) { + if (!\in_array($value, $this->list, $this->strict)) { return false; } diff --git a/src/View.php b/src/View.php index 3445e8d8..ef2796af 100755 --- a/src/View.php +++ b/src/View.php @@ -107,7 +107,7 @@ public function setParent(self $view): static */ public function getParent(): ?self { - if (! empty($this->parent)) { + if (!empty($this->parent)) { return $this->parent; } @@ -207,17 +207,17 @@ public function addFilter(string $name, callable $callback): static */ public function print(mixed $value, string|array $filter = ''): mixed { - if (! empty($filter)) { + if (!empty($filter)) { if (\is_array($filter)) { foreach ($filter as $callback) { - if (! isset($this->filters[$callback])) { + if (!isset($this->filters[$callback])) { throw new Exception('Filter "'.$callback.'" is not registered'); } $value = $this->filters[$callback]($value); } } else { - if (! isset($this->filters[$filter])) { + if (!isset($this->filters[$filter])) { throw new Exception('Filter "'.$filter.'" is not registered'); } diff --git a/tests/e2e/Client.php b/tests/e2e/Client.php index 662d860d..4052689b 100644 --- a/tests/e2e/Client.php +++ b/tests/e2e/Client.php @@ -54,7 +54,7 @@ public function __construct() public function call(string $method, string $path = '', array $headers = [], array $params = []) { usleep(50000); - $ch = curl_init($this->baseUrl.$path.(($method == self::METHOD_GET && ! empty($params)) ? '?'.http_build_query($params) : '')); + $ch = curl_init($this->baseUrl.$path.(($method == self::METHOD_GET && !empty($params)) ? '?'.http_build_query($params) : '')); $responseHeaders = []; $responseStatus = -1; $responseType = '';