diff --git a/.laminas-ci.json b/.laminas-ci.json index 1f673b44..3a2c2acb 100644 --- a/.laminas-ci.json +++ b/.laminas-ci.json @@ -5,6 +5,6 @@ } ], "ignore_php_platform_requirements": { - "8.3": true + "8.4": true } -} \ No newline at end of file +} diff --git a/composer.json b/composer.json index d17af16d..a61a8ea9 100644 --- a/composer.json +++ b/composer.json @@ -28,15 +28,15 @@ "extra": { }, "require": { - "php": "~8.1.0 || ~8.2.0 || ~8.3.0", + "php": "~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0", "laminas/laminas-code": "^4.7.1", "laminas/laminas-stdlib": "^3.3.1" }, "require-dev": { - "laminas/laminas-coding-standard": "~2.5.0", - "phpunit/phpunit": "^9.5.5", - "psalm/plugin-phpunit": "^0.18.0", - "vimeo/psalm": "^4.6.4" + "laminas/laminas-coding-standard": "~3.0.1", + "phpunit/phpunit": "^10.5.38", + "psalm/plugin-phpunit": "^0.18.4", + "vimeo/psalm": "^5.26.1" }, "autoload": { "psr-4": { diff --git a/composer.lock b/composer.lock index 7de72d25..780371fd 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "fa8b25740026c9475d89c87f44c07b83", + "content-hash": "f3928c13d92627583e2a534dbb6b8519", "packages": [ { "name": "laminas/laminas-code", @@ -591,35 +591,38 @@ }, { "name": "dealerdirect/phpcodesniffer-composer-installer", - "version": "v0.7.2", + "version": "v1.0.0", "source": { "type": "git", - "url": "https://github.com/Dealerdirect/phpcodesniffer-composer-installer.git", - "reference": "1c968e542d8843d7cd71de3c5c9c3ff3ad71a1db" + "url": "https://github.com/PHPCSStandards/composer-installer.git", + "reference": "4be43904336affa5c2f70744a348312336afd0da" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Dealerdirect/phpcodesniffer-composer-installer/zipball/1c968e542d8843d7cd71de3c5c9c3ff3ad71a1db", - "reference": "1c968e542d8843d7cd71de3c5c9c3ff3ad71a1db", + "url": "https://api.github.com/repos/PHPCSStandards/composer-installer/zipball/4be43904336affa5c2f70744a348312336afd0da", + "reference": "4be43904336affa5c2f70744a348312336afd0da", "shasum": "" }, "require": { "composer-plugin-api": "^1.0 || ^2.0", - "php": ">=5.3", + "php": ">=5.4", "squizlabs/php_codesniffer": "^2.0 || ^3.1.0 || ^4.0" }, "require-dev": { "composer/composer": "*", + "ext-json": "*", + "ext-zip": "*", "php-parallel-lint/php-parallel-lint": "^1.3.1", - "phpcompatibility/php-compatibility": "^9.0" + "phpcompatibility/php-compatibility": "^9.0", + "yoast/phpunit-polyfills": "^1.0" }, "type": "composer-plugin", "extra": { - "class": "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin" + "class": "PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin" }, "autoload": { "psr-4": { - "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\": "src/" + "PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", @@ -635,7 +638,7 @@ }, { "name": "Contributors", - "homepage": "https://github.com/Dealerdirect/phpcodesniffer-composer-installer/graphs/contributors" + "homepage": "https://github.com/PHPCSStandards/composer-installer/graphs/contributors" } ], "description": "PHP_CodeSniffer Standards Composer Installer Plugin", @@ -659,10 +662,10 @@ "tests" ], "support": { - "issues": "https://github.com/dealerdirect/phpcodesniffer-composer-installer/issues", - "source": "https://github.com/dealerdirect/phpcodesniffer-composer-installer" + "issues": "https://github.com/PHPCSStandards/composer-installer/issues", + "source": "https://github.com/PHPCSStandards/composer-installer" }, - "time": "2022-02-04T12:51:07+00:00" + "time": "2023-01-05T11:28:13+00:00" }, { "name": "dnoegel/php-xdg-base-dir", @@ -702,74 +705,51 @@ "time": "2019-12-04T15:06:13+00:00" }, { - "name": "doctrine/instantiator", - "version": "2.0.0", + "name": "doctrine/deprecations", + "version": "1.1.3", "source": { "type": "git", - "url": "https://github.com/doctrine/instantiator.git", - "reference": "c6222283fa3f4ac679f8b9ced9a4e23f163e80d0" + "url": "https://github.com/doctrine/deprecations.git", + "reference": "dfbaa3c2d2e9a9df1118213f3b8b0c597bb99fab" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/instantiator/zipball/c6222283fa3f4ac679f8b9ced9a4e23f163e80d0", - "reference": "c6222283fa3f4ac679f8b9ced9a4e23f163e80d0", + "url": "https://api.github.com/repos/doctrine/deprecations/zipball/dfbaa3c2d2e9a9df1118213f3b8b0c597bb99fab", + "reference": "dfbaa3c2d2e9a9df1118213f3b8b0c597bb99fab", "shasum": "" }, "require": { - "php": "^8.1" + "php": "^7.1 || ^8.0" }, "require-dev": { - "doctrine/coding-standard": "^11", - "ext-pdo": "*", - "ext-phar": "*", - "phpbench/phpbench": "^1.2", - "phpstan/phpstan": "^1.9.4", - "phpstan/phpstan-phpunit": "^1.3", - "phpunit/phpunit": "^9.5.27", - "vimeo/psalm": "^5.4" + "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\\Instantiator\\": "src/Doctrine/Instantiator/" + "Doctrine\\Deprecations\\": "lib/Doctrine/Deprecations" } }, "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" - ], + "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/instantiator/issues", - "source": "https://github.com/doctrine/instantiator/tree/2.0.0" + "issues": "https://github.com/doctrine/deprecations/issues", + "source": "https://github.com/doctrine/deprecations/tree/1.1.3" }, - "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": "2022-12-30T00:23:10+00:00" + "time": "2024-01-30T19:34:25+00:00" }, { "name": "felixfbecker/advanced-json-rpc", @@ -872,29 +852,87 @@ }, "time": "2024-04-30T00:40:11+00:00" }, + { + "name": "fidry/cpu-core-counter", + "version": "1.2.0", + "source": { + "type": "git", + "url": "https://github.com/theofidry/cpu-core-counter.git", + "reference": "8520451a140d3f46ac33042715115e290cf5785f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/theofidry/cpu-core-counter/zipball/8520451a140d3f46ac33042715115e290cf5785f", + "reference": "8520451a140d3f46ac33042715115e290cf5785f", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "require-dev": { + "fidry/makefile": "^0.2.0", + "fidry/php-cs-fixer-config": "^1.1.2", + "phpstan/extension-installer": "^1.2.0", + "phpstan/phpstan": "^1.9.2", + "phpstan/phpstan-deprecation-rules": "^1.0.0", + "phpstan/phpstan-phpunit": "^1.2.2", + "phpstan/phpstan-strict-rules": "^1.4.4", + "phpunit/phpunit": "^8.5.31 || ^9.5.26", + "webmozarts/strict-phpunit": "^7.5" + }, + "type": "library", + "autoload": { + "psr-4": { + "Fidry\\CpuCoreCounter\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Théo FIDRY", + "email": "theo.fidry@gmail.com" + } + ], + "description": "Tiny utility to get the number of CPU cores.", + "keywords": [ + "CPU", + "core" + ], + "support": { + "issues": "https://github.com/theofidry/cpu-core-counter/issues", + "source": "https://github.com/theofidry/cpu-core-counter/tree/1.2.0" + }, + "funding": [ + { + "url": "https://github.com/theofidry", + "type": "github" + } + ], + "time": "2024-08-06T10:04:20+00:00" + }, { "name": "laminas/laminas-coding-standard", - "version": "2.5.0", + "version": "3.0.1", "source": { "type": "git", "url": "https://github.com/laminas/laminas-coding-standard.git", - "reference": "c1aaa18a7c860c6932677a3e4ec13161f9fc7d61" + "reference": "ac809f5b27f0b22d0c1ec0cbc78cb67f92bfebcb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laminas/laminas-coding-standard/zipball/c1aaa18a7c860c6932677a3e4ec13161f9fc7d61", - "reference": "c1aaa18a7c860c6932677a3e4ec13161f9fc7d61", + "url": "https://api.github.com/repos/laminas/laminas-coding-standard/zipball/ac809f5b27f0b22d0c1ec0cbc78cb67f92bfebcb", + "reference": "ac809f5b27f0b22d0c1ec0cbc78cb67f92bfebcb", "shasum": "" }, "require": { "dealerdirect/phpcodesniffer-composer-installer": "^0.7 || ^1.0", "php": "^7.4 || ^8.0", - "slevomat/coding-standard": "^7.0", - "squizlabs/php_codesniffer": "^3.6", - "webimpress/coding-standard": "^1.2" - }, - "conflict": { - "phpstan/phpdoc-parser": ">=1.6.0" + "slevomat/coding-standard": "^8.15.0", + "squizlabs/php_codesniffer": "^3.10", + "webimpress/coding-standard": "^1.3" }, "type": "phpcodesniffer-standard", "autoload": { @@ -926,7 +964,7 @@ "type": "community_bridge" } ], - "time": "2023-01-05T15:53:40+00:00" + "time": "2024-10-16T09:23:09+00:00" }, { "name": "myclabs/deep-copy", @@ -1321,28 +1359,35 @@ }, { "name": "phpdocumentor/reflection-docblock", - "version": "5.3.0", + "version": "5.6.0", "source": { "type": "git", "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", - "reference": "622548b623e81ca6d78b721c5e029f4ce664f170" + "reference": "f3558a4c23426d12bffeaab463f8a8d8b681193c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/622548b623e81ca6d78b721c5e029f4ce664f170", - "reference": "622548b623e81ca6d78b721c5e029f4ce664f170", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/f3558a4c23426d12bffeaab463f8a8d8b681193c", + "reference": "f3558a4c23426d12bffeaab463f8a8d8b681193c", "shasum": "" }, "require": { + "doctrine/deprecations": "^1.1", "ext-filter": "*", - "php": "^7.2 || ^8.0", + "php": "^7.4 || ^8.0", "phpdocumentor/reflection-common": "^2.2", - "phpdocumentor/type-resolver": "^1.3", + "phpdocumentor/type-resolver": "^1.7", + "phpstan/phpdoc-parser": "^1.7|^2.0", "webmozart/assert": "^1.9.1" }, "require-dev": { - "mockery/mockery": "~1.3.2", - "psalm/phar": "^4.8" + "mockery/mockery": "~1.3.5 || ~1.6.0", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan": "^1.8", + "phpstan/phpstan-mockery": "^1.1", + "phpstan/phpstan-webmozart-assert": "^1.2", + "phpunit/phpunit": "^9.5", + "psalm/phar": "^5.26" }, "type": "library", "extra": { @@ -1366,36 +1411,39 @@ }, { "name": "Jaap van Otterdijk", - "email": "account@ijaap.nl" + "email": "opensource@ijaap.nl" } ], "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", "support": { "issues": "https://github.com/phpDocumentor/ReflectionDocBlock/issues", - "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/5.3.0" + "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/5.6.0" }, - "time": "2021-10-19T17:43:47+00:00" + "time": "2024-11-12T11:25:25+00:00" }, { "name": "phpdocumentor/type-resolver", - "version": "1.6.2", + "version": "1.10.0", "source": { "type": "git", "url": "https://github.com/phpDocumentor/TypeResolver.git", - "reference": "48f445a408c131e38cab1c235aa6d2bb7a0bb20d" + "reference": "679e3ce485b99e84c775d28e2e96fade9a7fb50a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/48f445a408c131e38cab1c235aa6d2bb7a0bb20d", - "reference": "48f445a408c131e38cab1c235aa6d2bb7a0bb20d", + "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/679e3ce485b99e84c775d28e2e96fade9a7fb50a", + "reference": "679e3ce485b99e84c775d28e2e96fade9a7fb50a", "shasum": "" }, "require": { - "php": "^7.4 || ^8.0", - "phpdocumentor/reflection-common": "^2.0" + "doctrine/deprecations": "^1.0", + "php": "^7.3 || ^8.0", + "phpdocumentor/reflection-common": "^2.0", + "phpstan/phpdoc-parser": "^1.18|^2.0" }, "require-dev": { "ext-tokenizer": "*", + "phpbench/phpbench": "^1.2", "phpstan/extension-installer": "^1.1", "phpstan/phpstan": "^1.8", "phpstan/phpstan-phpunit": "^1.1", @@ -1427,31 +1475,34 @@ "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names", "support": { "issues": "https://github.com/phpDocumentor/TypeResolver/issues", - "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.6.2" + "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.10.0" }, - "time": "2022-10-14T12:47:21+00:00" + "time": "2024-11-09T15:12:26+00:00" }, { "name": "phpstan/phpdoc-parser", - "version": "1.5.1", + "version": "1.33.0", "source": { "type": "git", "url": "https://github.com/phpstan/phpdoc-parser.git", - "reference": "981cc368a216c988e862a75e526b6076987d1b50" + "reference": "82a311fd3690fb2bf7b64d5c98f912b3dd746140" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/981cc368a216c988e862a75e526b6076987d1b50", - "reference": "981cc368a216c988e862a75e526b6076987d1b50", + "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/82a311fd3690fb2bf7b64d5c98f912b3dd746140", + "reference": "82a311fd3690fb2bf7b64d5c98f912b3dd746140", "shasum": "" }, "require": { "php": "^7.2 || ^8.0" }, "require-dev": { + "doctrine/annotations": "^2.0", + "nikic/php-parser": "^4.15", "php-parallel-lint/php-parallel-lint": "^1.2", "phpstan/extension-installer": "^1.0", "phpstan/phpstan": "^1.5", + "phpstan/phpstan-phpunit": "^1.1", "phpstan/phpstan-strict-rules": "^1.0", "phpunit/phpunit": "^9.5", "symfony/process": "^5.2" @@ -1471,22 +1522,22 @@ "description": "PHPDoc parser with support for nullable, intersection and generic types", "support": { "issues": "https://github.com/phpstan/phpdoc-parser/issues", - "source": "https://github.com/phpstan/phpdoc-parser/tree/1.5.1" + "source": "https://github.com/phpstan/phpdoc-parser/tree/1.33.0" }, - "time": "2022-05-05T11:32:40+00:00" + "time": "2024-10-13T11:25:22+00:00" }, { "name": "phpunit/php-code-coverage", - "version": "9.2.32", + "version": "10.1.16", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "85402a822d1ecf1db1096959413d35e1c37cf1a5" + "reference": "7e308268858ed6baedc8704a304727d20bc07c77" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/85402a822d1ecf1db1096959413d35e1c37cf1a5", - "reference": "85402a822d1ecf1db1096959413d35e1c37cf1a5", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/7e308268858ed6baedc8704a304727d20bc07c77", + "reference": "7e308268858ed6baedc8704a304727d20bc07c77", "shasum": "" }, "require": { @@ -1494,18 +1545,18 @@ "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", + "php": ">=8.1", + "phpunit/php-file-iterator": "^4.1.0", + "phpunit/php-text-template": "^3.0.1", + "sebastian/code-unit-reverse-lookup": "^3.0.0", + "sebastian/complexity": "^3.2.0", + "sebastian/environment": "^6.1.0", + "sebastian/lines-of-code": "^2.0.2", + "sebastian/version": "^4.0.1", "theseer/tokenizer": "^1.2.3" }, "require-dev": { - "phpunit/phpunit": "^9.6" + "phpunit/phpunit": "^10.1" }, "suggest": { "ext-pcov": "PHP extension that provides line coverage", @@ -1514,7 +1565,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "9.2.x-dev" + "dev-main": "10.1.x-dev" } }, "autoload": { @@ -1543,7 +1594,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.32" + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/10.1.16" }, "funding": [ { @@ -1551,32 +1602,32 @@ "type": "github" } ], - "time": "2024-08-22T04:23:01+00:00" + "time": "2024-08-22T04:31:57+00:00" }, { "name": "phpunit/php-file-iterator", - "version": "3.0.6", + "version": "4.1.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-file-iterator.git", - "reference": "cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf" + "reference": "a95037b6d9e608ba092da1b23931e537cadc3c3c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf", - "reference": "cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/a95037b6d9e608ba092da1b23931e537cadc3c3c", + "reference": "a95037b6d9e608ba092da1b23931e537cadc3c3c", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.1" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^10.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.0-dev" + "dev-main": "4.0-dev" } }, "autoload": { @@ -1603,7 +1654,8 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", - "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/3.0.6" + "security": "https://github.com/sebastianbergmann/php-file-iterator/security/policy", + "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/4.1.0" }, "funding": [ { @@ -1611,28 +1663,28 @@ "type": "github" } ], - "time": "2021-12-02T12:48:52+00:00" + "time": "2023-08-31T06:24:48+00:00" }, { "name": "phpunit/php-invoker", - "version": "3.1.1", + "version": "4.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-invoker.git", - "reference": "5a10147d0aaf65b58940a0b72f71c9ac0423cc67" + "reference": "f5e568ba02fa5ba0ddd0f618391d5a9ea50b06d7" }, "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/f5e568ba02fa5ba0ddd0f618391d5a9ea50b06d7", + "reference": "f5e568ba02fa5ba0ddd0f618391d5a9ea50b06d7", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.1" }, "require-dev": { "ext-pcntl": "*", - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^10.0" }, "suggest": { "ext-pcntl": "*" @@ -1640,7 +1692,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "3.1-dev" + "dev-main": "4.0-dev" } }, "autoload": { @@ -1666,7 +1718,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-invoker/issues", - "source": "https://github.com/sebastianbergmann/php-invoker/tree/3.1.1" + "source": "https://github.com/sebastianbergmann/php-invoker/tree/4.0.0" }, "funding": [ { @@ -1674,32 +1726,32 @@ "type": "github" } ], - "time": "2020-09-28T05:58:55+00:00" + "time": "2023-02-03T06:56:09+00:00" }, { "name": "phpunit/php-text-template", - "version": "2.0.4", + "version": "3.0.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-text-template.git", - "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28" + "reference": "0c7b06ff49e3d5072f057eb1fa59258bf287a748" }, "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/0c7b06ff49e3d5072f057eb1fa59258bf287a748", + "reference": "0c7b06ff49e3d5072f057eb1fa59258bf287a748", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.1" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^10.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0-dev" + "dev-main": "3.0-dev" } }, "autoload": { @@ -1725,7 +1777,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/3.0.1" }, "funding": [ { @@ -1733,32 +1786,32 @@ "type": "github" } ], - "time": "2020-10-26T05:33:50+00:00" + "time": "2023-08-31T14:07:24+00:00" }, { "name": "phpunit/php-timer", - "version": "5.0.3", + "version": "6.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-timer.git", - "reference": "5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2" + "reference": "e2a2d67966e740530f4a3343fe2e030ffdc1161d" }, "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/e2a2d67966e740530f4a3343fe2e030ffdc1161d", + "reference": "e2a2d67966e740530f4a3343fe2e030ffdc1161d", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.1" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^10.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "5.0-dev" + "dev-main": "6.0-dev" } }, "autoload": { @@ -1784,7 +1837,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-timer/issues", - "source": "https://github.com/sebastianbergmann/php-timer/tree/5.0.3" + "source": "https://github.com/sebastianbergmann/php-timer/tree/6.0.0" }, "funding": [ { @@ -1792,24 +1845,23 @@ "type": "github" } ], - "time": "2020-10-26T13:16:10+00:00" + "time": "2023-02-03T06:57:52+00:00" }, { "name": "phpunit/phpunit", - "version": "9.6.22", + "version": "10.5.38", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "f80235cb4d3caa59ae09be3adf1ded27521d1a9c" + "reference": "a86773b9e887a67bc53efa9da9ad6e3f2498c132" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/f80235cb4d3caa59ae09be3adf1ded27521d1a9c", - "reference": "f80235cb4d3caa59ae09be3adf1ded27521d1a9c", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/a86773b9e887a67bc53efa9da9ad6e3f2498c132", + "reference": "a86773b9e887a67bc53efa9da9ad6e3f2498c132", "shasum": "" }, "require": { - "doctrine/instantiator": "^1.5.0 || ^2", "ext-dom": "*", "ext-json": "*", "ext-libxml": "*", @@ -1819,27 +1871,26 @@ "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.1", + "phpunit/php-code-coverage": "^10.1.16", + "phpunit/php-file-iterator": "^4.1.0", + "phpunit/php-invoker": "^4.0.0", + "phpunit/php-text-template": "^3.0.1", + "phpunit/php-timer": "^6.0.0", + "sebastian/cli-parser": "^2.0.1", + "sebastian/code-unit": "^2.0.0", + "sebastian/comparator": "^5.0.3", + "sebastian/diff": "^5.1.1", + "sebastian/environment": "^6.1.0", + "sebastian/exporter": "^5.1.2", + "sebastian/global-state": "^6.0.2", + "sebastian/object-enumerator": "^5.0.0", + "sebastian/recursion-context": "^5.0.0", + "sebastian/type": "^4.0.0", + "sebastian/version": "^4.0.1" }, "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" @@ -1847,7 +1898,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "9.6-dev" + "dev-main": "10.5-dev" } }, "autoload": { @@ -1879,7 +1930,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.22" + "source": "https://github.com/sebastianbergmann/phpunit/tree/10.5.38" }, "funding": [ { @@ -1895,7 +1946,7 @@ "type": "tidelift" } ], - "time": "2024-12-05T13:48:26+00:00" + "time": "2024-10-28T13:06:21+00:00" }, { "name": "psalm/plugin-phpunit", @@ -2062,28 +2113,28 @@ }, { "name": "sebastian/cli-parser", - "version": "1.0.2", + "version": "2.0.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/cli-parser.git", - "reference": "2b56bea83a09de3ac06bb18b92f068e60cc6f50b" + "reference": "c34583b87e7b7a8055bf6c450c2c77ce32a24084" }, "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/c34583b87e7b7a8055bf6c450c2c77ce32a24084", + "reference": "c34583b87e7b7a8055bf6c450c2c77ce32a24084", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.1" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^10.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0-dev" + "dev-main": "2.0-dev" } }, "autoload": { @@ -2106,7 +2157,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/2.0.1" }, "funding": [ { @@ -2114,32 +2166,32 @@ "type": "github" } ], - "time": "2024-03-02T06:27:43+00:00" + "time": "2024-03-02T07:12:49+00:00" }, { "name": "sebastian/code-unit", - "version": "1.0.8", + "version": "2.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/code-unit.git", - "reference": "1fc9f64c0927627ef78ba436c9b17d967e68e120" + "reference": "a81fee9eef0b7a76af11d121767abc44c104e503" }, "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/a81fee9eef0b7a76af11d121767abc44c104e503", + "reference": "a81fee9eef0b7a76af11d121767abc44c104e503", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.1" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^10.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0-dev" + "dev-main": "2.0-dev" } }, "autoload": { @@ -2162,7 +2214,7 @@ "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" + "source": "https://github.com/sebastianbergmann/code-unit/tree/2.0.0" }, "funding": [ { @@ -2170,32 +2222,32 @@ "type": "github" } ], - "time": "2020-10-26T13:08:54+00:00" + "time": "2023-02-03T06:58:43+00:00" }, { "name": "sebastian/code-unit-reverse-lookup", - "version": "2.0.3", + "version": "3.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", - "reference": "ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5" + "reference": "5e3a687f7d8ae33fb362c5c0743794bbb2420a1d" }, "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/5e3a687f7d8ae33fb362c5c0743794bbb2420a1d", + "reference": "5e3a687f7d8ae33fb362c5c0743794bbb2420a1d", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.1" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^10.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0-dev" + "dev-main": "3.0-dev" } }, "autoload": { @@ -2217,7 +2269,7 @@ "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" + "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/3.0.0" }, "funding": [ { @@ -2225,34 +2277,36 @@ "type": "github" } ], - "time": "2020-09-28T05:30:19+00:00" + "time": "2023-02-03T06:59:15+00:00" }, { "name": "sebastian/comparator", - "version": "4.0.8", + "version": "5.0.3", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "fa0f136dd2334583309d32b62544682ee972b51a" + "reference": "a18251eb0b7a2dcd2f7aa3d6078b18545ef0558e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/fa0f136dd2334583309d32b62544682ee972b51a", - "reference": "fa0f136dd2334583309d32b62544682ee972b51a", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/a18251eb0b7a2dcd2f7aa3d6078b18545ef0558e", + "reference": "a18251eb0b7a2dcd2f7aa3d6078b18545ef0558e", "shasum": "" }, "require": { - "php": ">=7.3", - "sebastian/diff": "^4.0", - "sebastian/exporter": "^4.0" + "ext-dom": "*", + "ext-mbstring": "*", + "php": ">=8.1", + "sebastian/diff": "^5.0", + "sebastian/exporter": "^5.0" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^10.5" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "4.0-dev" + "dev-main": "5.0-dev" } }, "autoload": { @@ -2291,7 +2345,8 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/comparator/issues", - "source": "https://github.com/sebastianbergmann/comparator/tree/4.0.8" + "security": "https://github.com/sebastianbergmann/comparator/security/policy", + "source": "https://github.com/sebastianbergmann/comparator/tree/5.0.3" }, "funding": [ { @@ -2299,33 +2354,33 @@ "type": "github" } ], - "time": "2022-09-14T12:41:17+00:00" + "time": "2024-10-18T14:56:07+00:00" }, { "name": "sebastian/complexity", - "version": "2.0.3", + "version": "3.2.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/complexity.git", - "reference": "25f207c40d62b8b7aa32f5ab026c53561964053a" + "reference": "68ff824baeae169ec9f2137158ee529584553799" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/25f207c40d62b8b7aa32f5ab026c53561964053a", - "reference": "25f207c40d62b8b7aa32f5ab026c53561964053a", + "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/68ff824baeae169ec9f2137158ee529584553799", + "reference": "68ff824baeae169ec9f2137158ee529584553799", "shasum": "" }, "require": { "nikic/php-parser": "^4.18 || ^5.0", - "php": ">=7.3" + "php": ">=8.1" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^10.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0-dev" + "dev-main": "3.2-dev" } }, "autoload": { @@ -2348,7 +2403,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/3.2.0" }, "funding": [ { @@ -2356,33 +2412,33 @@ "type": "github" } ], - "time": "2023-12-22T06:19:30+00:00" + "time": "2023-12-21T08:37:17+00:00" }, { "name": "sebastian/diff", - "version": "4.0.6", + "version": "5.1.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "ba01945089c3a293b01ba9badc29ad55b106b0bc" + "reference": "c41e007b4b62af48218231d6c2275e4c9b975b2e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/ba01945089c3a293b01ba9badc29ad55b106b0bc", - "reference": "ba01945089c3a293b01ba9badc29ad55b106b0bc", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/c41e007b4b62af48218231d6c2275e4c9b975b2e", + "reference": "c41e007b4b62af48218231d6c2275e4c9b975b2e", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.1" }, "require-dev": { - "phpunit/phpunit": "^9.3", - "symfony/process": "^4.2 || ^5" + "phpunit/phpunit": "^10.0", + "symfony/process": "^6.4" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "4.0-dev" + "dev-main": "5.1-dev" } }, "autoload": { @@ -2414,7 +2470,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/5.1.1" }, "funding": [ { @@ -2422,27 +2479,27 @@ "type": "github" } ], - "time": "2024-03-02T06:30:58+00:00" + "time": "2024-03-02T07:15:17+00:00" }, { "name": "sebastian/environment", - "version": "5.1.5", + "version": "6.1.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/environment.git", - "reference": "830c43a844f1f8d5b7a1f6d6076b784454d8b7ed" + "reference": "8074dbcd93529b357029f5cc5058fd3e43666984" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/830c43a844f1f8d5b7a1f6d6076b784454d8b7ed", - "reference": "830c43a844f1f8d5b7a1f6d6076b784454d8b7ed", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/8074dbcd93529b357029f5cc5058fd3e43666984", + "reference": "8074dbcd93529b357029f5cc5058fd3e43666984", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.1" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^10.0" }, "suggest": { "ext-posix": "*" @@ -2450,7 +2507,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "5.1-dev" + "dev-main": "6.1-dev" } }, "autoload": { @@ -2469,7 +2526,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", @@ -2477,7 +2534,8 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/environment/issues", - "source": "https://github.com/sebastianbergmann/environment/tree/5.1.5" + "security": "https://github.com/sebastianbergmann/environment/security/policy", + "source": "https://github.com/sebastianbergmann/environment/tree/6.1.0" }, "funding": [ { @@ -2485,34 +2543,34 @@ "type": "github" } ], - "time": "2023-02-03T06:03:51+00:00" + "time": "2024-03-23T08:47:14+00:00" }, { "name": "sebastian/exporter", - "version": "4.0.6", + "version": "5.1.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/exporter.git", - "reference": "78c00df8f170e02473b682df15bfcdacc3d32d72" + "reference": "955288482d97c19a372d3f31006ab3f37da47adf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/78c00df8f170e02473b682df15bfcdacc3d32d72", - "reference": "78c00df8f170e02473b682df15bfcdacc3d32d72", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/955288482d97c19a372d3f31006ab3f37da47adf", + "reference": "955288482d97c19a372d3f31006ab3f37da47adf", "shasum": "" }, "require": { - "php": ">=7.3", - "sebastian/recursion-context": "^4.0" + "ext-mbstring": "*", + "php": ">=8.1", + "sebastian/recursion-context": "^5.0" }, "require-dev": { - "ext-mbstring": "*", - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^10.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "4.0-dev" + "dev-main": "5.1-dev" } }, "autoload": { @@ -2554,7 +2612,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/5.1.2" }, "funding": [ { @@ -2562,38 +2621,35 @@ "type": "github" } ], - "time": "2024-03-02T06:33:00+00:00" + "time": "2024-03-02T07:17:12+00:00" }, { "name": "sebastian/global-state", - "version": "5.0.7", + "version": "6.0.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/global-state.git", - "reference": "bca7df1f32ee6fe93b4d4a9abbf69e13a4ada2c9" + "reference": "987bafff24ecc4c9ac418cab1145b96dd6e9cbd9" }, "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/987bafff24ecc4c9ac418cab1145b96dd6e9cbd9", + "reference": "987bafff24ecc4c9ac418cab1145b96dd6e9cbd9", "shasum": "" }, "require": { - "php": ">=7.3", - "sebastian/object-reflector": "^2.0", - "sebastian/recursion-context": "^4.0" + "php": ">=8.1", + "sebastian/object-reflector": "^3.0", + "sebastian/recursion-context": "^5.0" }, "require-dev": { "ext-dom": "*", - "phpunit/phpunit": "^9.3" - }, - "suggest": { - "ext-uopz": "*" + "phpunit/phpunit": "^10.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "5.0-dev" + "dev-main": "6.0-dev" } }, "autoload": { @@ -2612,13 +2668,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/6.0.2" }, "funding": [ { @@ -2626,33 +2683,33 @@ "type": "github" } ], - "time": "2024-03-02T06:35:11+00:00" + "time": "2024-03-02T07:19:19+00:00" }, { "name": "sebastian/lines-of-code", - "version": "1.0.4", + "version": "2.0.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/lines-of-code.git", - "reference": "e1e4a170560925c26d424b6a03aed157e7dcc5c5" + "reference": "856e7f6a75a84e339195d48c556f23be2ebf75d0" }, "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/856e7f6a75a84e339195d48c556f23be2ebf75d0", + "reference": "856e7f6a75a84e339195d48c556f23be2ebf75d0", "shasum": "" }, "require": { "nikic/php-parser": "^4.18 || ^5.0", - "php": ">=7.3" + "php": ">=8.1" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^10.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0-dev" + "dev-main": "2.0-dev" } }, "autoload": { @@ -2675,7 +2732,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/2.0.2" }, "funding": [ { @@ -2683,34 +2741,34 @@ "type": "github" } ], - "time": "2023-12-22T06:20:34+00:00" + "time": "2023-12-21T08:38:20+00:00" }, { "name": "sebastian/object-enumerator", - "version": "4.0.4", + "version": "5.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/object-enumerator.git", - "reference": "5c9eeac41b290a3712d88851518825ad78f45c71" + "reference": "202d0e344a580d7f7d04b3fafce6933e59dae906" }, "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/202d0e344a580d7f7d04b3fafce6933e59dae906", + "reference": "202d0e344a580d7f7d04b3fafce6933e59dae906", "shasum": "" }, "require": { - "php": ">=7.3", - "sebastian/object-reflector": "^2.0", - "sebastian/recursion-context": "^4.0" + "php": ">=8.1", + "sebastian/object-reflector": "^3.0", + "sebastian/recursion-context": "^5.0" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^10.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "4.0-dev" + "dev-main": "5.0-dev" } }, "autoload": { @@ -2732,7 +2790,7 @@ "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" + "source": "https://github.com/sebastianbergmann/object-enumerator/tree/5.0.0" }, "funding": [ { @@ -2740,32 +2798,32 @@ "type": "github" } ], - "time": "2020-10-26T13:12:34+00:00" + "time": "2023-02-03T07:08:32+00:00" }, { "name": "sebastian/object-reflector", - "version": "2.0.4", + "version": "3.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/object-reflector.git", - "reference": "b4f479ebdbf63ac605d183ece17d8d7fe49c15c7" + "reference": "24ed13d98130f0e7122df55d06c5c4942a577957" }, "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/24ed13d98130f0e7122df55d06c5c4942a577957", + "reference": "24ed13d98130f0e7122df55d06c5c4942a577957", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.1" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^10.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0-dev" + "dev-main": "3.0-dev" } }, "autoload": { @@ -2787,7 +2845,7 @@ "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" + "source": "https://github.com/sebastianbergmann/object-reflector/tree/3.0.0" }, "funding": [ { @@ -2795,32 +2853,32 @@ "type": "github" } ], - "time": "2020-10-26T13:14:26+00:00" + "time": "2023-02-03T07:06:18+00:00" }, { "name": "sebastian/recursion-context", - "version": "4.0.5", + "version": "5.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/recursion-context.git", - "reference": "e75bd0f07204fec2a0af9b0f3cfe97d05f92efc1" + "reference": "05909fb5bc7df4c52992396d0116aed689f93712" }, "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/05909fb5bc7df4c52992396d0116aed689f93712", + "reference": "05909fb5bc7df4c52992396d0116aed689f93712", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.1" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^10.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "4.0-dev" + "dev-main": "5.0-dev" } }, "autoload": { @@ -2850,7 +2908,7 @@ "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" + "source": "https://github.com/sebastianbergmann/recursion-context/tree/5.0.0" }, "funding": [ { @@ -2858,32 +2916,32 @@ "type": "github" } ], - "time": "2023-02-03T06:07:39+00:00" + "time": "2023-02-03T07:05:40+00:00" }, { - "name": "sebastian/resource-operations", - "version": "3.0.4", + "name": "sebastian/type", + "version": "4.0.0", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/resource-operations.git", - "reference": "05d5692a7993ecccd56a03e40cd7e5b09b1d404e" + "url": "https://github.com/sebastianbergmann/type.git", + "reference": "462699a16464c3944eefc02ebdd77882bd3925bf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/05d5692a7993ecccd56a03e40cd7e5b09b1d404e", - "reference": "05d5692a7993ecccd56a03e40cd7e5b09b1d404e", + "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/462699a16464c3944eefc02ebdd77882bd3925bf", + "reference": "462699a16464c3944eefc02ebdd77882bd3925bf", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.1" }, "require-dev": { - "phpunit/phpunit": "^9.0" + "phpunit/phpunit": "^10.0" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "3.0-dev" + "dev-main": "4.0-dev" } }, "autoload": { @@ -2898,13 +2956,15 @@ "authors": [ { "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" + "email": "sebastian@phpunit.de", + "role": "lead" } ], - "description": "Provides a list of PHP built-in functions that operate on resources", - "homepage": "https://www.github.com/sebastianbergmann/resource-operations", + "description": "Collection of value objects that represent the types of the PHP type system", + "homepage": "https://github.com/sebastianbergmann/type", "support": { - "source": "https://github.com/sebastianbergmann/resource-operations/tree/3.0.4" + "issues": "https://github.com/sebastianbergmann/type/issues", + "source": "https://github.com/sebastianbergmann/type/tree/4.0.0" }, "funding": [ { @@ -2912,32 +2972,29 @@ "type": "github" } ], - "time": "2024-03-14T16:00:52+00:00" + "time": "2023-02-03T07:10:45+00:00" }, { - "name": "sebastian/type", - "version": "3.2.1", + "name": "sebastian/version", + "version": "4.0.1", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/type.git", - "reference": "75e2c2a32f5e0b3aef905b9ed0b179b953b3d7c7" + "url": "https://github.com/sebastianbergmann/version.git", + "reference": "c51fa83a5d8f43f1402e3f32a005e6262244ef17" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/75e2c2a32f5e0b3aef905b9ed0b179b953b3d7c7", - "reference": "75e2c2a32f5e0b3aef905b9ed0b179b953b3d7c7", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/c51fa83a5d8f43f1402e3f32a005e6262244ef17", + "reference": "c51fa83a5d8f43f1402e3f32a005e6262244ef17", "shasum": "" }, "require": { - "php": ">=7.3" - }, - "require-dev": { - "phpunit/phpunit": "^9.5" + "php": ">=8.1" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.2-dev" + "dev-main": "4.0-dev" } }, "autoload": { @@ -2956,11 +3013,11 @@ "role": "lead" } ], - "description": "Collection of value objects that represent the types of the PHP type system", - "homepage": "https://github.com/sebastianbergmann/type", + "description": "Library that helps with managing the version number of Git-hosted PHP projects", + "homepage": "https://github.com/sebastianbergmann/version", "support": { - "issues": "https://github.com/sebastianbergmann/type/issues", - "source": "https://github.com/sebastianbergmann/type/tree/3.2.1" + "issues": "https://github.com/sebastianbergmann/version/issues", + "source": "https://github.com/sebastianbergmann/version/tree/4.0.1" }, "funding": [ { @@ -2968,121 +3025,140 @@ "type": "github" } ], - "time": "2023-02-03T06:13:03+00:00" + "time": "2023-02-07T11:34:05+00:00" }, { - "name": "sebastian/version", - "version": "3.0.2", + "name": "slevomat/coding-standard", + "version": "8.15.0", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/version.git", - "reference": "c6c1022351a901512170118436c764e473f6de8c" + "url": "https://github.com/slevomat/coding-standard.git", + "reference": "7d1d957421618a3803b593ec31ace470177d7817" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/c6c1022351a901512170118436c764e473f6de8c", - "reference": "c6c1022351a901512170118436c764e473f6de8c", + "url": "https://api.github.com/repos/slevomat/coding-standard/zipball/7d1d957421618a3803b593ec31ace470177d7817", + "reference": "7d1d957421618a3803b593ec31ace470177d7817", "shasum": "" }, "require": { - "php": ">=7.3" + "dealerdirect/phpcodesniffer-composer-installer": "^0.6.2 || ^0.7 || ^1.0", + "php": "^7.2 || ^8.0", + "phpstan/phpdoc-parser": "^1.23.1", + "squizlabs/php_codesniffer": "^3.9.0" }, - "type": "library", + "require-dev": { + "phing/phing": "2.17.4", + "php-parallel-lint/php-parallel-lint": "1.3.2", + "phpstan/phpstan": "1.10.60", + "phpstan/phpstan-deprecation-rules": "1.1.4", + "phpstan/phpstan-phpunit": "1.3.16", + "phpstan/phpstan-strict-rules": "1.5.2", + "phpunit/phpunit": "8.5.21|9.6.8|10.5.11" + }, + "type": "phpcodesniffer-standard", "extra": { "branch-alias": { - "dev-master": "3.0-dev" + "dev-master": "8.x-dev" } }, "autoload": { - "classmap": [ - "src/" - ] + "psr-4": { + "SlevomatCodingStandard\\": "SlevomatCodingStandard/" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ - "BSD-3-Clause" + "MIT" ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } + "description": "Slevomat Coding Standard for PHP_CodeSniffer complements Consistence Coding Standard by providing sniffs with additional checks.", + "keywords": [ + "dev", + "phpcs" ], - "description": "Library that helps with managing the version number of Git-hosted PHP projects", - "homepage": "https://github.com/sebastianbergmann/version", "support": { - "issues": "https://github.com/sebastianbergmann/version/issues", - "source": "https://github.com/sebastianbergmann/version/tree/3.0.2" + "issues": "https://github.com/slevomat/coding-standard/issues", + "source": "https://github.com/slevomat/coding-standard/tree/8.15.0" }, "funding": [ { - "url": "https://github.com/sebastianbergmann", + "url": "https://github.com/kukulich", "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/slevomat/coding-standard", + "type": "tidelift" } ], - "time": "2020-09-28T06:39:44+00:00" + "time": "2024-03-09T15:20:58+00:00" }, { - "name": "slevomat/coding-standard", - "version": "7.2.1", + "name": "spatie/array-to-xml", + "version": "3.3.0", "source": { "type": "git", - "url": "https://github.com/slevomat/coding-standard.git", - "reference": "aff06ae7a84e4534bf6f821dc982a93a5d477c90" + "url": "https://github.com/spatie/array-to-xml.git", + "reference": "f56b220fe2db1ade4c88098d83413ebdfc3bf876" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/slevomat/coding-standard/zipball/aff06ae7a84e4534bf6f821dc982a93a5d477c90", - "reference": "aff06ae7a84e4534bf6f821dc982a93a5d477c90", + "url": "https://api.github.com/repos/spatie/array-to-xml/zipball/f56b220fe2db1ade4c88098d83413ebdfc3bf876", + "reference": "f56b220fe2db1ade4c88098d83413ebdfc3bf876", "shasum": "" }, "require": { - "dealerdirect/phpcodesniffer-composer-installer": "^0.6.2 || ^0.7", - "php": "^7.2 || ^8.0", - "phpstan/phpdoc-parser": "^1.5.1", - "squizlabs/php_codesniffer": "^3.6.2" + "ext-dom": "*", + "php": "^8.0" }, "require-dev": { - "phing/phing": "2.17.3", - "php-parallel-lint/php-parallel-lint": "1.3.2", - "phpstan/phpstan": "1.4.10|1.7.1", - "phpstan/phpstan-deprecation-rules": "1.0.0", - "phpstan/phpstan-phpunit": "1.0.0|1.1.1", - "phpstan/phpstan-strict-rules": "1.2.3", - "phpunit/phpunit": "7.5.20|8.5.21|9.5.20" + "mockery/mockery": "^1.2", + "pestphp/pest": "^1.21", + "spatie/pest-plugin-snapshots": "^1.1" }, - "type": "phpcodesniffer-standard", + "type": "library", "extra": { "branch-alias": { - "dev-master": "7.x-dev" + "dev-main": "3.x-dev" } }, "autoload": { "psr-4": { - "SlevomatCodingStandard\\": "SlevomatCodingStandard" + "Spatie\\ArrayToXml\\": "src" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], - "description": "Slevomat Coding Standard for PHP_CodeSniffer complements Consistence Coding Standard by providing sniffs with additional checks.", + "authors": [ + { + "name": "Freek Van der Herten", + "email": "freek@spatie.be", + "homepage": "https://freek.dev", + "role": "Developer" + } + ], + "description": "Convert an array to xml", + "homepage": "https://github.com/spatie/array-to-xml", + "keywords": [ + "array", + "convert", + "xml" + ], "support": { - "issues": "https://github.com/slevomat/coding-standard/issues", - "source": "https://github.com/slevomat/coding-standard/tree/7.2.1" + "source": "https://github.com/spatie/array-to-xml/tree/3.3.0" }, "funding": [ { - "url": "https://github.com/kukulich", - "type": "github" + "url": "https://spatie.be/open-source/support-us", + "type": "custom" }, { - "url": "https://tidelift.com/funding/github/packagist/slevomat/coding-standard", - "type": "tidelift" + "url": "https://github.com/spatie", + "type": "github" } ], - "time": "2022-05-25T10:58:12+00:00" + "time": "2024-05-01T10:20:27+00:00" }, { "name": "squizlabs/php_codesniffer", @@ -3325,6 +3401,72 @@ ], "time": "2024-09-25T14:20:29+00:00" }, + { + "name": "symfony/filesystem", + "version": "v6.4.13", + "source": { + "type": "git", + "url": "https://github.com/symfony/filesystem.git", + "reference": "4856c9cf585d5a0313d8d35afd681a526f038dd3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/4856c9cf585d5a0313d8d35afd681a526f038dd3", + "reference": "4856c9cf585d5a0313d8d35afd681a526f038dd3", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "symfony/polyfill-ctype": "~1.8", + "symfony/polyfill-mbstring": "~1.8" + }, + "require-dev": { + "symfony/process": "^5.4|^6.4|^7.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Filesystem\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides basic utilities for the filesystem", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/filesystem/tree/v6.4.13" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-10-25T15:07:50+00:00" + }, { "name": "symfony/polyfill-ctype", "version": "v1.31.0", @@ -3499,6 +3641,9 @@ "require": { "php": ">=7.2" }, + "provide": { + "ext-mbstring": "*" + }, "suggest": { "ext-intl": "For best performance" }, @@ -3944,24 +4089,24 @@ }, { "name": "vimeo/psalm", - "version": "4.30.0", + "version": "5.26.1", "source": { "type": "git", "url": "https://github.com/vimeo/psalm.git", - "reference": "d0bc6e25d89f649e4f36a534f330f8bb4643dd69" + "reference": "d747f6500b38ac4f7dfc5edbcae6e4b637d7add0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/vimeo/psalm/zipball/d0bc6e25d89f649e4f36a534f330f8bb4643dd69", - "reference": "d0bc6e25d89f649e4f36a534f330f8bb4643dd69", + "url": "https://api.github.com/repos/vimeo/psalm/zipball/d747f6500b38ac4f7dfc5edbcae6e4b637d7add0", + "reference": "d747f6500b38ac4f7dfc5edbcae6e4b637d7add0", "shasum": "" }, "require": { "amphp/amp": "^2.4.2", "amphp/byte-stream": "^1.5", - "composer/package-versions-deprecated": "^1.8.0", + "composer-runtime-api": "^2", "composer/semver": "^1.4 || ^2.0 || ^3.0", - "composer/xdebug-handler": "^1.1 || ^2.0 || ^3.0", + "composer/xdebug-handler": "^2.0 || ^3.0", "dnoegel/php-xdg-base-dir": "^0.1.1", "ext-ctype": "*", "ext-dom": "*", @@ -3970,35 +4115,38 @@ "ext-mbstring": "*", "ext-simplexml": "*", "ext-tokenizer": "*", - "felixfbecker/advanced-json-rpc": "^3.0.3", - "felixfbecker/language-server-protocol": "^1.5", + "felixfbecker/advanced-json-rpc": "^3.1", + "felixfbecker/language-server-protocol": "^1.5.2", + "fidry/cpu-core-counter": "^0.4.1 || ^0.5.1 || ^1.0.0", "netresearch/jsonmapper": "^1.0 || ^2.0 || ^3.0 || ^4.0", - "nikic/php-parser": "^4.13", - "openlss/lib-array2xml": "^1.0", - "php": "^7.1|^8", - "sebastian/diff": "^3.0 || ^4.0", - "symfony/console": "^3.4.17 || ^4.1.6 || ^5.0 || ^6.0", - "symfony/polyfill-php80": "^1.25", - "webmozart/path-util": "^2.3" + "nikic/php-parser": "^4.17", + "php": "^7.4 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0", + "sebastian/diff": "^4.0 || ^5.0 || ^6.0", + "spatie/array-to-xml": "^2.17.0 || ^3.0", + "symfony/console": "^4.1.6 || ^5.0 || ^6.0 || ^7.0", + "symfony/filesystem": "^5.4 || ^6.0 || ^7.0" + }, + "conflict": { + "nikic/php-parser": "4.17.0" }, "provide": { "psalm/psalm": "self.version" }, "require-dev": { - "bamarni/composer-bin-plugin": "^1.2", - "brianium/paratest": "^4.0||^6.0", + "amphp/phpunit-util": "^2.0", + "bamarni/composer-bin-plugin": "^1.4", + "brianium/paratest": "^6.9", "ext-curl": "*", + "mockery/mockery": "^1.5", + "nunomaduro/mock-final-classes": "^1.1", "php-parallel-lint/php-parallel-lint": "^1.2", - "phpdocumentor/reflection-docblock": "^5", - "phpmyadmin/sql-parser": "5.1.0||dev-master", - "phpspec/prophecy": ">=1.9.0", - "phpstan/phpdoc-parser": "1.2.* || 1.6.4", - "phpunit/phpunit": "^9.0", - "psalm/plugin-phpunit": "^0.16", - "slevomat/coding-standard": "^7.0", - "squizlabs/php_codesniffer": "^3.5", - "symfony/process": "^4.3 || ^5.0 || ^6.0", - "weirdan/prophecy-shim": "^1.0 || ^2.0" + "phpstan/phpdoc-parser": "^1.6", + "phpunit/phpunit": "^9.6", + "psalm/plugin-mockery": "^1.1", + "psalm/plugin-phpunit": "^0.18", + "slevomat/coding-standard": "^8.4", + "squizlabs/php_codesniffer": "^3.6", + "symfony/process": "^4.4 || ^5.0 || ^6.0 || ^7.0" }, "suggest": { "ext-curl": "In order to send data to shepherd", @@ -4011,20 +4159,16 @@ "psalm-refactor", "psalter" ], - "type": "library", + "type": "project", "extra": { "branch-alias": { - "dev-1.x": "1.x-dev", - "dev-2.x": "2.x-dev", + "dev-master": "5.x-dev", + "dev-4.x": "4.x-dev", "dev-3.x": "3.x-dev", - "dev-master": "4.x-dev" + "dev-1.x": "1.x-dev" } }, "autoload": { - "files": [ - "src/functions.php", - "src/spl_object_id.php" - ], "psr-4": { "Psalm\\": "src/Psalm/" } @@ -4042,13 +4186,15 @@ "keywords": [ "code", "inspection", - "php" + "php", + "static analysis" ], "support": { + "docs": "https://psalm.dev/docs", "issues": "https://github.com/vimeo/psalm/issues", - "source": "https://github.com/vimeo/psalm/tree/4.30.0" + "source": "https://github.com/vimeo/psalm" }, - "time": "2022-11-06T20:37:08+00:00" + "time": "2024-09-08T18:53:08+00:00" }, { "name": "webimpress/coding-standard", @@ -4162,57 +4308,6 @@ "source": "https://github.com/webmozarts/assert/tree/1.11.0" }, "time": "2022-06-03T18:03:27+00:00" - }, - { - "name": "webmozart/path-util", - "version": "2.3.0", - "source": { - "type": "git", - "url": "https://github.com/webmozart/path-util.git", - "reference": "d939f7edc24c9a1bb9c0dee5cb05d8e859490725" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/webmozart/path-util/zipball/d939f7edc24c9a1bb9c0dee5cb05d8e859490725", - "reference": "d939f7edc24c9a1bb9c0dee5cb05d8e859490725", - "shasum": "" - }, - "require": { - "php": ">=5.3.3", - "webmozart/assert": "~1.0" - }, - "require-dev": { - "phpunit/phpunit": "^4.6", - "sebastian/version": "^1.0.1" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.3-dev" - } - }, - "autoload": { - "psr-4": { - "Webmozart\\PathUtil\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Bernhard Schussek", - "email": "bschussek@gmail.com" - } - ], - "description": "A robust cross-platform utility for normalizing, comparing and modifying file paths.", - "support": { - "issues": "https://github.com/webmozart/path-util/issues", - "source": "https://github.com/webmozart/path-util/tree/2.3.0" - }, - "abandoned": "symfony/filesystem", - "time": "2015-12-17T08:42:14+00:00" } ], "aliases": [], @@ -4221,7 +4316,7 @@ "prefer-stable": false, "prefer-lowest": false, "platform": { - "php": "~8.1.0 || ~8.2.0 || ~8.3.0" + "php": "~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0" }, "platform-dev": {}, "platform-overrides": { diff --git a/phpunit.xml.dist b/phpunit.xml.dist index cf492d6d..5de8ef79 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -2,16 +2,26 @@ <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd" bootstrap="vendor/autoload.php" - convertDeprecationsToExceptions="true" - colors="true"> + colors="true" + cacheDirectory=".phpunit.cache" + displayDetailsOnIncompleteTests="true" + displayDetailsOnSkippedTests="true" + displayDetailsOnTestsThatTriggerDeprecations="true" + displayDetailsOnTestsThatTriggerErrors="true" + displayDetailsOnTestsThatTriggerNotices="true" + displayDetailsOnTestsThatTriggerWarnings="true" + failOnWarning="true" + failOnDeprecation="true" + failOnNotice="true" +> <testsuites> <testsuite name="laminas-server Test Suite"> <directory>./test</directory> </testsuite> </testsuites> - <coverage processUncoveredFiles="true"> + <source> <include> <directory suffix=".php">./src</directory> </include> - </coverage> + </source> </phpunit> diff --git a/psalm-baseline.xml b/psalm-baseline.xml index 07561da2..484d16a0 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -1,449 +1,521 @@ <?xml version="1.0" encoding="UTF-8"?> -<files psalm-version="4.30.0@d0bc6e25d89f649e4f36a534f330f8bb4643dd69"> +<files psalm-version="5.26.1@d747f6500b38ac4f7dfc5edbcae6e4b637d7add0"> <file src="src/AbstractServer.php"> - <ArgumentTypeCoercion occurrences="1"> - <code>$class</code> + <ArgumentTypeCoercion> + <code><![CDATA[$class]]></code> </ArgumentTypeCoercion> - <DeprecatedInterface occurrences="1"> - <code>AbstractServer</code> + <DeprecatedInterface> + <code><![CDATA[AbstractServer]]></code> </DeprecatedInterface> - <DeprecatedMethod occurrences="2"> - <code>_fixType</code> - <code>_fixType</code> + <DeprecatedMethod> + <code><![CDATA[_fixType]]></code> + <code><![CDATA[_fixType]]></code> </DeprecatedMethod> - <ImplementedReturnTypeMismatch occurrences="1"> - <code>Definition</code> + <ImplementedReturnTypeMismatch> + <code><![CDATA[Definition]]></code> </ImplementedReturnTypeMismatch> - <InvalidStringClass occurrences="1"> - <code>new $class()</code> + <InvalidStringClass> + <code><![CDATA[new $class()]]></code> </InvalidStringClass> - <MixedArgument occurrences="5"> - <code>$method</code> - <code>$method</code> - <code>$reflection->getDeclaringClass()->getName()</code> - <code>$reflection->getName()</code> - <code>$reflection->getName()</code> + <MixedArgument> + <code><![CDATA[$method]]></code> + <code><![CDATA[$method]]></code> </MixedArgument> - <MixedArgumentTypeCoercion occurrences="1"> - <code>$invokeArgs</code> - </MixedArgumentTypeCoercion> - <MixedAssignment occurrences="2"> - <code>$method</code> - <code>$name</code> + <MixedAssignment> + <code><![CDATA[$method]]></code> + <code><![CDATA[$name]]></code> </MixedAssignment> - <MixedOperand occurrences="2"> - <code>$method</code> - <code>$name</code> + <MixedOperand> + <code><![CDATA[$method]]></code> + <code><![CDATA[$name]]></code> </MixedOperand> - <PossiblyNullArgument occurrences="1"> - <code>$class</code> + <PossiblyNullArgument> + <code><![CDATA[$class]]></code> </PossiblyNullArgument> - <PossiblyNullFunctionCall occurrences="1"> - <code>call_user_func_array($function, $params)</code> + <PossiblyNullFunctionCall> + <code><![CDATA[call_user_func_array($function, $params)]]></code> </PossiblyNullFunctionCall> - <UndefinedClass occurrences="1"> - <code>new $class()</code> + <UndefinedClass> + <code><![CDATA[new $class()]]></code> </UndefinedClass> + <UnusedClass> + <code><![CDATA[AbstractServer]]></code> + </UnusedClass> </file> <file src="src/Cache.php"> - <DeprecatedClass occurrences="2"> - <code>Server</code> - <code>Server</code> - </DeprecatedClass> - <DocblockTypeContradiction occurrences="2"> - <code>! is_string($filename)</code> - <code>! is_string($filename)</code> + <DeprecatedInterface> + <code><![CDATA[Server]]></code> + <code><![CDATA[Server]]></code> + </DeprecatedInterface> + <DocblockTypeContradiction> + <code><![CDATA[! is_string($filename)]]></code> + <code><![CDATA[! is_string($filename)]]></code> </DocblockTypeContradiction> - <MixedArgument occurrences="1"> - <code>$dispatchArray</code> + <MixedArgument> + <code><![CDATA[$dispatchArray]]></code> </MixedArgument> - <MixedAssignment occurrences="1"> - <code>$dispatchArray</code> + <MixedAssignment> + <code><![CDATA[$dispatchArray]]></code> </MixedAssignment> + <PossiblyUnusedMethod> + <code><![CDATA[delete]]></code> + <code><![CDATA[get]]></code> + </PossiblyUnusedMethod> + </file> + <file src="src/Client.php"> + <PossiblyUnusedMethod> + <code><![CDATA[call]]></code> + </PossiblyUnusedMethod> + </file> + <file src="src/ClientInterface.php"> + <UnusedClass> + <code><![CDATA[ClientInterface]]></code> + </UnusedClass> </file> <file src="src/Definition.php"> - <DocblockTypeContradiction occurrences="1"> - <code>null === $name</code> + <DocblockTypeContradiction> + <code><![CDATA[null === $name]]></code> </DocblockTypeContradiction> - <FalsableReturnStatement occurrences="1"> - <code>false</code> - </FalsableReturnStatement> - <ImplementedReturnTypeMismatch occurrences="1"> - <code>Method\Definition</code> + <ImplementedReturnTypeMismatch> + <code><![CDATA[Method\Definition]]></code> </ImplementedReturnTypeMismatch> - <MixedArgument occurrences="1"> - <code>$method</code> + <MissingTemplateParam> + <code><![CDATA[Iterator]]></code> + </MissingTemplateParam> + <MixedArgument> + <code><![CDATA[$method]]></code> </MixedArgument> - <MixedArgumentTypeCoercion occurrences="1"> - <code>$key</code> + <MixedArgumentTypeCoercion> + <code><![CDATA[$key]]></code> </MixedArgumentTypeCoercion> - <MixedAssignment occurrences="3"> - <code>$method</code> - <code>$method</code> - <code>$methods[$key]</code> + <MixedAssignment> + <code><![CDATA[$method]]></code> + <code><![CDATA[$method]]></code> + <code><![CDATA[$methods[$key]]]></code> </MixedAssignment> - <MixedInferredReturnType occurrences="3"> - <code>Method\Definition</code> - <code>Method\Definition</code> - <code>null|\Laminas\Server\Method\Definition</code> + <MixedInferredReturnType> + <code><![CDATA[Method\Definition]]></code> + <code><![CDATA[Method\Definition]]></code> + <code><![CDATA[null|false|\Laminas\Server\Method\Definition]]></code> </MixedInferredReturnType> - <MixedMethodCall occurrences="1"> - <code>toArray</code> + <MixedMethodCall> + <code><![CDATA[toArray]]></code> </MixedMethodCall> - <MixedReturnStatement occurrences="3"> - <code>$this->methods[$method]</code> - <code>current($this->methods)</code> - <code>next($this->methods)</code> + <MixedReturnStatement> + <code><![CDATA[$this->methods[$method]]]></code> + <code><![CDATA[current($this->methods)]]></code> + <code><![CDATA[current($this->methods)]]></code> + <code><![CDATA[next($this->methods)]]></code> + <code><![CDATA[next($this->methods)]]></code> </MixedReturnStatement> + <PossiblyUnusedMethod> + <code><![CDATA[count]]></code> + </PossiblyUnusedMethod> </file> <file src="src/Method/Callback.php"> - <DocblockTypeContradiction occurrences="1"> - <code>is_object($class)</code> + <DocblockTypeContradiction> + <code><![CDATA[is_object($class)]]></code> </DocblockTypeContradiction> - <MixedArgumentTypeCoercion occurrences="1"> - <code>$key</code> + <MixedArgumentTypeCoercion> + <code><![CDATA[$key]]></code> </MixedArgumentTypeCoercion> - <MixedAssignment occurrences="1"> - <code>$value</code> + <MixedAssignment> + <code><![CDATA[$class]]></code> + <code><![CDATA[$this->class]]></code> + <code><![CDATA[$value]]></code> </MixedAssignment> - <PropertyNotSetInConstructor occurrences="4"> - <code>$class</code> - <code>$function</code> - <code>$method</code> - <code>$type</code> + <PropertyNotSetInConstructor> + <code><![CDATA[$class]]></code> + <code><![CDATA[$function]]></code> + <code><![CDATA[$method]]></code> + <code><![CDATA[$type]]></code> </PropertyNotSetInConstructor> </file> <file src="src/Method/Definition.php"> - <DocblockTypeContradiction occurrences="1"> - <code>! is_object($object)</code> + <DocblockTypeContradiction> + <code><![CDATA[! is_object($object)]]></code> </DocblockTypeContradiction> - <MixedArgument occurrences="1"> - <code>$prototype</code> + <MixedArgument> + <code><![CDATA[$prototype]]></code> </MixedArgument> - <MixedArgumentTypeCoercion occurrences="1"> - <code>$key</code> + <MixedArgumentTypeCoercion> + <code><![CDATA[$key]]></code> </MixedArgumentTypeCoercion> - <MixedAssignment occurrences="4"> - <code>$prototype</code> - <code>$prototype</code> - <code>$signatures[]</code> - <code>$value</code> + <MixedAssignment> + <code><![CDATA[$prototype]]></code> + <code><![CDATA[$prototype]]></code> + <code><![CDATA[$signatures[]]]></code> + <code><![CDATA[$value]]></code> </MixedAssignment> - <MixedMethodCall occurrences="1"> - <code>toArray</code> + <MixedMethodCall> + <code><![CDATA[toArray]]></code> </MixedMethodCall> - <PropertyNotSetInConstructor occurrences="2"> - <code>$callback</code> - <code>$name</code> + <PropertyNotSetInConstructor> + <code><![CDATA[$callback]]></code> + <code><![CDATA[$name]]></code> </PropertyNotSetInConstructor> + <RedundantCondition> + <code><![CDATA[! is_object($object) && (null !== $object)]]></code> + </RedundantCondition> </file> <file src="src/Method/Parameter.php"> - <MixedArgumentTypeCoercion occurrences="1"> - <code>$key</code> + <MixedArgumentTypeCoercion> + <code><![CDATA[$key]]></code> </MixedArgumentTypeCoercion> - <MixedAssignment occurrences="1"> - <code>$value</code> + <MixedAssignment> + <code><![CDATA[$value]]></code> </MixedAssignment> - <PropertyNotSetInConstructor occurrences="1"> - <code>$name</code> + <PropertyNotSetInConstructor> + <code><![CDATA[$name]]></code> </PropertyNotSetInConstructor> </file> <file src="src/Method/Prototype.php"> - <DocblockTypeContradiction occurrences="1"> - <code>! is_string($index) && ! is_numeric($index)</code> + <DocblockTypeContradiction> + <code><![CDATA[! is_string($index) && ! is_numeric($index)]]></code> </DocblockTypeContradiction> - <MixedArgument occurrences="2"> - <code>$index</code> - <code>$parameter</code> + <MixedArgument> + <code><![CDATA[$index]]></code> + <code><![CDATA[$parameter]]></code> </MixedArgument> - <MixedArgumentTypeCoercion occurrences="1"> - <code>$key</code> + <MixedArgumentTypeCoercion> + <code><![CDATA[$key]]></code> </MixedArgumentTypeCoercion> - <MixedAssignment occurrences="5"> - <code>$index</code> - <code>$parameter</code> - <code>$parameter</code> - <code>$types[]</code> - <code>$value</code> + <MixedAssignment> + <code><![CDATA[$index]]></code> + <code><![CDATA[$parameter]]></code> + <code><![CDATA[$parameter]]></code> + <code><![CDATA[$types[]]]></code> + <code><![CDATA[$value]]></code> </MixedAssignment> - <MixedInferredReturnType occurrences="1"> - <code>null|Parameter</code> + <MixedInferredReturnType> + <code><![CDATA[null|Parameter]]></code> </MixedInferredReturnType> - <MixedMethodCall occurrences="1"> - <code>getType</code> + <MixedMethodCall> + <code><![CDATA[getType]]></code> </MixedMethodCall> - <MixedReturnStatement occurrences="1"> - <code>$this->parameters[$index]</code> + <MixedReturnStatement> + <code><![CDATA[$this->parameters[$index]]]></code> </MixedReturnStatement> </file> <file src="src/Reflection.php"> - <DocblockTypeContradiction occurrences="1"> - <code>! is_string($function)</code> + <DocblockTypeContradiction> + <code><![CDATA[! is_string($function)]]></code> </DocblockTypeContradiction> + <RiskyTruthyFalsyComparison> + <code><![CDATA[$argv]]></code> + </RiskyTruthyFalsyComparison> </file> <file src="src/Reflection/AbstractFunction.php"> - <ArgumentTypeCoercion occurrences="2"> - <code>$this->class</code> - <code>$this->name</code> + <ArgumentTypeCoercion> + <code><![CDATA[$this->class]]></code> + <code><![CDATA[$this->name]]></code> </ArgumentTypeCoercion> - <DocblockTypeContradiction occurrences="2"> - <code>! is_string($namespace)</code> - <code>is_string($string)</code> + <DocblockTypeContradiction> + <code><![CDATA[is_string($string)]]></code> </DocblockTypeContradiction> - <MixedArgument occurrences="3"> - <code>$tmp</code> - <code>$type</code> - <code>array_shift($signature)</code> + <InvalidArrayOffset> + <code><![CDATA[$parameters[$i]]]></code> + </InvalidArrayOffset> + <MixedArgument> + <code><![CDATA[$tmp]]></code> + <code><![CDATA[$type]]></code> + <code><![CDATA[array_shift($signature)]]></code> </MixedArgument> - <MixedAssignment occurrences="8"> - <code>$name</code> - <code>$root</code> - <code>$serializable[]</code> - <code>$tmp</code> - <code>$type</code> - <code>$value</code> - <code>$value</code> - <code>$value</code> + <MixedAssignment> + <code><![CDATA[$name]]></code> + <code><![CDATA[$root]]></code> + <code><![CDATA[$serializable[]]]></code> + <code><![CDATA[$tmp]]></code> + <code><![CDATA[$type]]></code> + <code><![CDATA[$value]]></code> + <code><![CDATA[$value]]></code> + <code><![CDATA[$value]]></code> </MixedAssignment> - <MixedMethodCall occurrences="1"> - <code>getEndPoints</code> + <MixedMethodCall> + <code><![CDATA[getEndPoints]]></code> + <code><![CDATA[isOptional]]></code> </MixedMethodCall> - <MixedReturnTypeCoercion occurrences="4"> - <code>$serializable</code> - <code>$this->prototypes</code> - <code>Prototype[]</code> - <code>string[]</code> + <MixedReturnTypeCoercion> + <code><![CDATA[$serializable]]></code> + <code><![CDATA[$this->prototypes]]></code> + <code><![CDATA[Prototype[]]]></code> + <code><![CDATA[string[]]]></code> </MixedReturnTypeCoercion> - <PossiblyNullArgument occurrences="2"> - <code>$this->paramDesc[$key] ?? null</code> - <code>$returnDesc</code> + <PossiblyNullArgument> + <code><![CDATA[$returnDesc]]></code> + <code><![CDATA[$this->paramDesc[$key] ?? null]]></code> </PossiblyNullArgument> - <PropertyNotSetInConstructor occurrences="2"> - <code>$class</code> - <code>$namespace</code> + <PropertyNotSetInConstructor> + <code><![CDATA[$class]]></code> + <code><![CDATA[$namespace]]></code> </PropertyNotSetInConstructor> - <RawObjectIteration occurrences="1"> - <code>$this</code> + <RawObjectIteration> + <code><![CDATA[$this]]></code> </RawObjectIteration> - <RedundantConditionGivenDocblockType occurrences="2"> - <code>$returnTag</code> - <code>$returnTag</code> + <RedundantConditionGivenDocblockType> + <code><![CDATA[$returnTag]]></code> </RedundantConditionGivenDocblockType> + <RiskyTruthyFalsyComparison> + <code><![CDATA[$paramTag->getDescription()]]></code> + <code><![CDATA[$this->docComment]]></code> + </RiskyTruthyFalsyComparison> + <TooManyArguments> + <code><![CDATA[paramIsArray]]></code> + </TooManyArguments> + <TypeDoesNotContainType> + <code><![CDATA[! is_string($namespace)]]></code> + </TypeDoesNotContainType> </file> <file src="src/Reflection/Node.php"> - <MixedArgument occurrences="1"> - <code>$childEndPoints</code> + <InvalidReturnStatement> + <code><![CDATA[$this]]></code> + </InvalidReturnStatement> + <MixedArgument> + <code><![CDATA[$childEndPoints]]></code> </MixedArgument> - <MixedAssignment occurrences="4"> - <code>$child</code> - <code>$childEndPoints</code> - <code>$endPoints[]</code> - <code>$value</code> + <MixedAssignment> + <code><![CDATA[$child]]></code> + <code><![CDATA[$childEndPoints]]></code> + <code><![CDATA[$endPoints[]]]></code> + <code><![CDATA[$value]]></code> </MixedAssignment> - <MixedMethodCall occurrences="4"> - <code>getEndPoints</code> - <code>getValue</code> - <code>hasChildren</code> - <code>hasChildren</code> + <MixedMethodCall> + <code><![CDATA[getEndPoints]]></code> + <code><![CDATA[getValue]]></code> + <code><![CDATA[hasChildren]]></code> + <code><![CDATA[hasChildren]]></code> </MixedMethodCall> - <PropertyNotSetInConstructor occurrences="1"> - <code>$parent</code> + <PropertyNotSetInConstructor> + <code><![CDATA[$parent]]></code> </PropertyNotSetInConstructor> - <UnsafeInstantiation occurrences="1"> - <code>new static($value, $this)</code> + <UnsafeInstantiation> + <code><![CDATA[new static($value, $this)]]></code> </UnsafeInstantiation> </file> <file src="src/Reflection/Prototype.php"> - <DeprecatedProperty occurrences="3"> - <code>$this->return</code> - <code>$this->return</code> - <code>$this->return</code> + <DeprecatedProperty> + <code><![CDATA[$this->return]]></code> + <code><![CDATA[$this->return]]></code> + <code><![CDATA[$this->return]]></code> </DeprecatedProperty> </file> <file src="src/Reflection/ReflectionClass.php"> - <ArgumentTypeCoercion occurrences="1"> - <code>$this->name</code> + <ArgumentTypeCoercion> + <code><![CDATA[$this->name]]></code> </ArgumentTypeCoercion> - <DocblockTypeContradiction occurrences="1"> - <code>! is_string($namespace)</code> - </DocblockTypeContradiction> - <PossiblyNullArgument occurrences="1"> - <code>$namespace</code> + <PossiblyNullArgument> + <code><![CDATA[$namespace]]></code> </PossiblyNullArgument> + <TypeDoesNotContainType> + <code><![CDATA[! is_string($namespace)]]></code> + </TypeDoesNotContainType> </file> <file src="src/Reflection/ReflectionFunction.php"> - <PropertyNotSetInConstructor occurrences="2"> - <code>ReflectionFunction</code> - <code>ReflectionFunction</code> + <PropertyNotSetInConstructor> + <code><![CDATA[ReflectionFunction]]></code> + <code><![CDATA[ReflectionFunction]]></code> </PropertyNotSetInConstructor> </file> <file src="src/Reflection/ReflectionMethod.php"> - <ArgumentTypeCoercion occurrences="1"> - <code>$this->class</code> + <ArgumentTypeCoercion> + <code><![CDATA[$this->class]]></code> </ArgumentTypeCoercion> - <MixedArgument occurrences="2"> - <code>$docComment</code> - <code>$this->classReflection->getName()</code> + <InvalidArgument> + <code><![CDATA[$normalizedDocCommentList]]></code> + </InvalidArgument> + <MixedArgument> + <code><![CDATA[$docComment]]></code> + <code><![CDATA[$this->classReflection->getName()]]></code> </MixedArgument> - <MixedAssignment occurrences="4"> - <code>$docCommentList[]</code> - <code>$interfaceReflection</code> - <code>$interfaceReflectionList</code> - <code>$this->class</code> + <MixedAssignment> + <code><![CDATA[$docCommentList[]]]></code> + <code><![CDATA[$interfaceReflection]]></code> + <code><![CDATA[$interfaceReflectionList]]></code> + <code><![CDATA[$this->class]]></code> </MixedAssignment> - <MixedMethodCall occurrences="3"> - <code>getDocComment</code> - <code>getMethod</code> - <code>hasMethod</code> + <MixedMethodCall> + <code><![CDATA[getDocComment]]></code> + <code><![CDATA[getMethod]]></code> + <code><![CDATA[hasMethod]]></code> </MixedMethodCall> - <PossiblyFalseArgument occurrences="1"> - <code>$docComment</code> - </PossiblyFalseArgument> - <PossiblyInvalidArgument occurrences="1"> - <code>$this->classReflection</code> + <PossiblyInvalidArgument> + <code><![CDATA[$this->classReflection]]></code> </PossiblyInvalidArgument> - <PossiblyUndefinedVariable occurrences="1"> - <code>$docCommentList</code> + <PossiblyUndefinedVariable> + <code><![CDATA[$docCommentList]]></code> </PossiblyUndefinedVariable> - <PropertyNotSetInConstructor occurrences="1"> - <code>ReflectionMethod</code> + <PropertyNotSetInConstructor> + <code><![CDATA[ReflectionMethod]]></code> </PropertyNotSetInConstructor> + <RiskyTruthyFalsyComparison> + <code><![CDATA[$docCommentFetched]]></code> + <code><![CDATA[$docCommentFetched = $this->fetchRecursiveDocBlockFromParent($parentReflectionClass, $methodName)]]></code> + <code><![CDATA[empty($namespace)]]></code> + </RiskyTruthyFalsyComparison> </file> <file src="src/Reflection/ReflectionParameter.php"> - <DocblockTypeContradiction occurrences="2"> - <code>! is_string($description) && (null !== $description)</code> - <code>! is_string($type) && (null !== $type)</code> + <DocblockTypeContradiction> + <code><![CDATA[! is_string($description) && (null !== $description)]]></code> + <code><![CDATA[! is_string($type) && (null !== $type)]]></code> </DocblockTypeContradiction> - <PossiblyInvalidPropertyAssignmentValue occurrences="1"/> - <PossiblyNullPropertyAssignmentValue occurrences="2"> - <code>$description</code> - <code>$type</code> + <PossiblyInvalidPropertyAssignmentValue> + <code><![CDATA[$r->getDeclaringClass() + ? [$r->getDeclaringClass()->getName(), $r->getDeclaringFunction()->getName()] + : $r->getDeclaringFunction()->getName()]]></code> + </PossiblyInvalidPropertyAssignmentValue> + <PossiblyNullPropertyAssignmentValue> + <code><![CDATA[$description]]></code> + <code><![CDATA[$type]]></code> </PossiblyNullPropertyAssignmentValue> - <PossiblyNullReference occurrences="1"> - <code>getName</code> + <PossiblyNullReference> + <code><![CDATA[getName]]></code> </PossiblyNullReference> - <PropertyNotSetInConstructor occurrences="1"> - <code>$position</code> + <PropertyNotSetInConstructor> + <code><![CDATA[$position]]></code> </PropertyNotSetInConstructor> </file> <file src="src/Reflection/ReflectionReturnValue.php"> - <DocblockTypeContradiction occurrences="2"> - <code>! is_string($description) && (null !== $description)</code> - <code>! is_string($type) && (null !== $type)</code> + <DocblockTypeContradiction> + <code><![CDATA[! is_string($description) && (null !== $description)]]></code> + <code><![CDATA[! is_string($type) && (null !== $type)]]></code> </DocblockTypeContradiction> - <PossiblyNullPropertyAssignmentValue occurrences="2"> - <code>$description</code> - <code>$type</code> + <PossiblyNullPropertyAssignmentValue> + <code><![CDATA[$description]]></code> + <code><![CDATA[$type]]></code> </PossiblyNullPropertyAssignmentValue> </file> + <file src="src/Server.php"> + <PossiblyUnusedMethod> + <code><![CDATA[addFunction]]></code> + <code><![CDATA[fault]]></code> + <code><![CDATA[getResponse]]></code> + <code><![CDATA[getReturnResponse]]></code> + <code><![CDATA[handle]]></code> + <code><![CDATA[setClass]]></code> + <code><![CDATA[setPersistence]]></code> + <code><![CDATA[setReturnResponse]]></code> + </PossiblyUnusedMethod> + </file> <file src="test/CacheTest.php"> - <DeprecatedClass occurrences="4"> - <code>$this->createMock(Server::class)</code> - <code>$this->createMock(Server::class)</code> - <code>$this->createMock(Server::class)</code> - <code>$this->createMock(Server::class)</code> - </DeprecatedClass> - <InvalidArgument occurrences="1"> - <code>Cache::class</code> - </InvalidArgument> - <MissingConstructor occurrences="1"> - <code>$cacheFile</code> + <MissingConstructor> + <code><![CDATA[$cacheFile]]></code> </MissingConstructor> - <MixedAssignment occurrences="6"> - <code>$actual[]</code> - <code>$data</code> - <code>$data</code> - <code>$data</code> - <code>$data</code> - <code>$method</code> + <MixedAssignment> + <code><![CDATA[$actual[]]]></code> + <code><![CDATA[$data]]></code> + <code><![CDATA[$data]]></code> + <code><![CDATA[$data]]></code> + <code><![CDATA[$data]]></code> + <code><![CDATA[$method]]></code> </MixedAssignment> - <MixedMethodCall occurrences="1"> - <code>getName</code> + <MixedMethodCall> + <code><![CDATA[getName]]></code> </MixedMethodCall> - <PossiblyNullPropertyAssignmentValue occurrences="1"> - <code>null</code> + <PossiblyNullPropertyAssignmentValue> + <code><![CDATA[null]]></code> </PossiblyNullPropertyAssignmentValue> + <UnusedMethodCall> + <code><![CDATA[setAccessible]]></code> + </UnusedMethodCall> </file> <file src="test/DefinitionTest.php"> - <MixedArrayAccess occurrences="8"> - <code>$test['invokeArguments']</code> - <code>$test['invokeArguments']</code> - <code>$test['methodHelp']</code> - <code>$test['methodHelp']</code> - <code>$test['name']</code> - <code>$test['name']</code> - <code>$test['prototypes']</code> - <code>$test['prototypes']</code> + <MixedArrayAccess> + <code><![CDATA[$test['invokeArguments']]]></code> + <code><![CDATA[$test['invokeArguments']]]></code> + <code><![CDATA[$test['methodHelp']]]></code> + <code><![CDATA[$test['methodHelp']]]></code> + <code><![CDATA[$test['name']]]></code> + <code><![CDATA[$test['name']]]></code> + <code><![CDATA[$test['prototypes']]]></code> + <code><![CDATA[$test['prototypes']]]></code> + <code><![CDATA[$test['prototypes'][0]]]></code> + <code><![CDATA[$test['prototypes'][0]]]></code> + <code><![CDATA[$test['prototypes'][0]['returnType']]]></code> + <code><![CDATA[$test['prototypes'][0]['returnType']]]></code> </MixedArrayAccess> - <MixedAssignment occurrences="2"> - <code>$test</code> - <code>$test</code> + <MixedAssignment> + <code><![CDATA[$test]]></code> + <code><![CDATA[$test]]></code> </MixedAssignment> </file> <file src="test/Reflection/NodeTest.php"> - <InvalidScalarArgument occurrences="3"> - <code>1</code> - <code>1</code> - <code>1</code> + <InvalidScalarArgument> + <code><![CDATA[1]]></code> + <code><![CDATA[1]]></code> + <code><![CDATA[1]]></code> </InvalidScalarArgument> - <MixedAssignment occurrences="4"> - <code>$c</code> - <code>$endPoint</code> - <code>$endPointsArray[]</code> - <code>$types[]</code> + <MixedAssignment> + <code><![CDATA[$endPointsArray[]]]></code> + <code><![CDATA[$types[]]]></code> </MixedAssignment> - <MixedMethodCall occurrences="2"> - <code>getValue</code> - <code>getValue</code> - </MixedMethodCall> - <PossiblyNullArgument occurrences="1"> - <code>var_export($types, 1)</code> + <PossiblyNullArgument> + <code><![CDATA[var_export($types, 1)]]></code> </PossiblyNullArgument> - <PossiblyNullOperand occurrences="2"> - <code>var_export($endPointsArray, 1)</code> - <code>var_export($test, 1)</code> + <PossiblyNullOperand> + <code><![CDATA[var_export($endPointsArray, 1)]]></code> + <code><![CDATA[var_export($test, 1)]]></code> </PossiblyNullOperand> - <UnusedVariable occurrences="5"> - <code>$child1grand1</code> - <code>$child1grand2</code> - <code>$child2grand1</code> - <code>$child2grand2great1</code> - <code>$child2grand2great2</code> + <UnusedVariable> + <code><![CDATA[$child1grand1]]></code> + <code><![CDATA[$child1grand2]]></code> + <code><![CDATA[$child2grand1]]></code> + <code><![CDATA[$child2grand2great1]]></code> + <code><![CDATA[$child2grand2great2]]></code> </UnusedVariable> </file> <file src="test/Reflection/ReflectionFunctionTest.php"> - <InvalidScalarArgument occurrences="1"> - <code>1</code> + <InvalidScalarArgument> + <code><![CDATA[1]]></code> </InvalidScalarArgument> - <MixedAssignment occurrences="1"> - <code>$params</code> + <MixedAssignment> + <code><![CDATA[$params]]></code> </MixedAssignment> - <PossiblyNullArgument occurrences="1"> - <code>var_export($param, 1)</code> + <PossiblyNullArgument> + <code><![CDATA[var_export($param, 1)]]></code> </PossiblyNullArgument> - <UnusedVariable occurrences="1"> - <code>$params</code> + <UnusedVariable> + <code><![CDATA[$params]]></code> </UnusedVariable> </file> <file src="test/Reflection/TestAsset/ReflectionMethodInterface.php"> - <MissingReturnType occurrences="1"> - <code>testMethod</code> + <MissingReturnType> + <code><![CDATA[testMethod]]></code> </MissingReturnType> + <PossiblyUnusedMethod> + <code><![CDATA[testMethod]]></code> + </PossiblyUnusedMethod> </file> <file src="test/Reflection/TestAsset/ReflectionMethodNode.php"> - <PropertyNotSetInConstructor occurrences="1"> - <code>ReflectionMethodNode</code> + <PropertyNotSetInConstructor> + <code><![CDATA[ReflectionMethodNode]]></code> </PropertyNotSetInConstructor> </file> <file src="test/ReflectionTest.php"> - <InvalidScalarArgument occurrences="2"> - <code>'string'</code> - <code>'string'</code> - </InvalidScalarArgument> + <InvalidArgument> + <code><![CDATA['string']]></code> + <code><![CDATA['string']]></code> + </InvalidArgument> + </file> + <file src="test/TestAsset/ReflectionTestClass.php"> + <PossiblyUnusedMethod> + <code><![CDATA[__construct]]></code> + <code><![CDATA[_one]]></code> + <code><![CDATA[one]]></code> + <code><![CDATA[two]]></code> + </PossiblyUnusedMethod> + <PossiblyUnusedParam> + <code><![CDATA[$arg]]></code> + <code><![CDATA[$arg1]]></code> + <code><![CDATA[$arg1]]></code> + <code><![CDATA[$arg1]]></code> + <code><![CDATA[$arg2]]></code> + <code><![CDATA[$arg2]]></code> + <code><![CDATA[$arg2]]></code> + </PossiblyUnusedParam> </file> <file src="test/TestAsset/reflectionTestFunction.php"> - <UndefinedDocblockClass occurrences="1"> - <code>string|struct|false</code> + <UndefinedDocblockClass> + <code><![CDATA[string|struct|false]]></code> </UndefinedDocblockClass> </file> </files> diff --git a/psalm.xml.dist b/psalm.xml.dist index debf6323..5ec2bd03 100644 --- a/psalm.xml.dist +++ b/psalm.xml.dist @@ -5,6 +5,8 @@ xmlns="https://getpsalm.org/schema/config" xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd" errorBaseline="psalm-baseline.xml" + findUnusedBaselineEntry="true" + findUnusedCode="true" > <projectFiles> <directory name="src"/> diff --git a/src/AbstractServer.php b/src/AbstractServer.php index 2993d0d1..d465851a 100644 --- a/src/AbstractServer.php +++ b/src/AbstractServer.php @@ -54,12 +54,18 @@ protected function buildCallback(Reflection\AbstractFunction $reflection) { $callback = new Method\Callback(); if ($reflection instanceof Reflection\ReflectionMethod) { + /** @var string $declaringClass */ + $declaringClass = $reflection->getDeclaringClass()->getName(); + /** @var string $methodName */ + $methodName = $reflection->getName(); $callback->setType($reflection->isStatic() ? 'static' : 'instance') - ->setClass($reflection->getDeclaringClass()->getName()) - ->setMethod($reflection->getName()); + ->setClass($declaringClass) + ->setMethod($methodName); } elseif ($reflection instanceof Reflection\ReflectionFunction) { + /** @var string $functionName */ + $functionName = $reflection->getName(); $callback->setType('function') - ->setFunction($reflection->getName()); + ->setFunction($functionName); } return $callback; } @@ -148,7 +154,6 @@ protected function _buildSignature(Reflection\AbstractFunction $reflection, $cla * @deprecated Since 2.7.0; method will be renamed to remove underscore * prefix in 3.0. * - * @param array $params * @return mixed */ // @codingStandardsIgnoreStart diff --git a/src/Definition.php b/src/Definition.php index ac6989d7..77b27459 100644 --- a/src/Definition.php +++ b/src/Definition.php @@ -133,7 +133,7 @@ public function hasMethod($method) * Get a given method definition * * @param string $method - * @return null|\Laminas\Server\Method\Definition + * @return null|false|\Laminas\Server\Method\Definition */ public function getMethod($method) { @@ -189,6 +189,7 @@ public function toArray() foreach ($this->getMethods() as $key => $method) { $methods[$key] = $method->toArray(); } + return $methods; } diff --git a/src/Method/Callback.php b/src/Method/Callback.php index 86a22901..bd923219 100644 --- a/src/Method/Callback.php +++ b/src/Method/Callback.php @@ -50,7 +50,6 @@ public function __construct($options = null) /** * Set object state from array of options * - * @param array $options * @return Callback */ public function setOptions(array $options) diff --git a/src/Method/Definition.php b/src/Method/Definition.php index 96126889..cee91081 100644 --- a/src/Method/Definition.php +++ b/src/Method/Definition.php @@ -54,7 +54,6 @@ public function __construct($options = null) /** * Set object state from options * - * @param array $options * @return Definition */ public function setOptions(array $options) @@ -227,7 +226,6 @@ public function getObject() /** * Set invoke arguments * - * @param array $invokeArguments * @return Definition */ public function setInvokeArguments(array $invokeArguments) diff --git a/src/Method/Parameter.php b/src/Method/Parameter.php index 3308fd00..f7cd042b 100644 --- a/src/Method/Parameter.php +++ b/src/Method/Parameter.php @@ -65,7 +65,6 @@ public function __construct($options = null) /** * Set object state from array of options * - * @param array $options * @return Parameter */ public function setOptions(array $options) diff --git a/src/Method/Prototype.php b/src/Method/Prototype.php index d582db48..fe2a78b2 100644 --- a/src/Method/Prototype.php +++ b/src/Method/Prototype.php @@ -88,7 +88,6 @@ public function addParameter($parameter) /** * Add parameters * - * @param array $parameters * @return Prototype */ public function addParameters(array $parameters) @@ -102,7 +101,6 @@ public function addParameters(array $parameters) /** * Set parameters * - * @param array $parameters * @return Prototype */ public function setParameters(array $parameters) @@ -160,7 +158,6 @@ public function getParameter($index) /** * Set object state from array * - * @param array $options * @return Prototype */ public function setOptions(array $options) diff --git a/src/Reflection/AbstractFunction.php b/src/Reflection/AbstractFunction.php index 67c7a8c4..bfe7954b 100644 --- a/src/Reflection/AbstractFunction.php +++ b/src/Reflection/AbstractFunction.php @@ -311,7 +311,6 @@ protected function reflect() if (empty($paramTags)) { foreach ($parameters as $param) { // Suppressing, because false positive - /** @psalm-suppress TooManyArguments **/ $paramTypesTmp[] = [$this->paramIsArray($param) ? 'array' : 'mixed']; $paramDesc[] = ''; } diff --git a/src/Reflection/Node.php b/src/Reflection/Node.php index 9d81442b..b136ecb5 100644 --- a/src/Reflection/Node.php +++ b/src/Reflection/Node.php @@ -54,6 +54,7 @@ public function __construct( * * //phpcs:disable SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly.ReferenceViaFullyQualifiedName * //phpcs:disable SlevomatCodingStandard.TypeHints.ParameterTypeHint.UselessAnnotation + * * @param \Laminas\Server\Reflection\Node $node * //phpcs:enable SlevomatCodingStandard.TypeHints.ParameterTypeHint.UselessAnnotation * //phpcs:enable SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly.ReferenceViaFullyQualifiedName diff --git a/src/Reflection/ReflectionMethod.php b/src/Reflection/ReflectionMethod.php index 0575f9b4..e137e4e3 100644 --- a/src/Reflection/ReflectionMethod.php +++ b/src/Reflection/ReflectionMethod.php @@ -94,7 +94,8 @@ public function __wakeup() $this->getNamespace(), $this->getInvokeArguments() ); - $this->reflection = new \ReflectionMethod($this->classReflection->getName(), $this->name); + + $this->reflection = new \ReflectionMethod($this->classReflection->getName(), $this->name); } /** diff --git a/test/Reflection/NodeTest.php b/test/Reflection/NodeTest.php index 3567f5c8..11d36108 100644 --- a/test/Reflection/NodeTest.php +++ b/test/Reflection/NodeTest.php @@ -87,6 +87,7 @@ public function testGetChildren(): void $parent = new Node('string'); $child = $parent->createChild('array'); + /** @var Node[] $children */ $children = $parent->getChildren(); $types = []; foreach ($children as $c) { @@ -155,6 +156,7 @@ public function testGetEndPoints(): void $child2grand2great1 = $child2grand2->createChild(null); $child2grand2great2 = $child2grand2->createChild('child2grand2great2'); + /** @var Node[] $endPoints */ $endPoints = $root->getEndPoints(); $endPointsArray = []; foreach ($endPoints as $endPoint) {