diff --git a/composer.json b/composer.json index c78abb31..400383fa 100644 --- a/composer.json +++ b/composer.json @@ -43,7 +43,7 @@ "laminas/laminas-http": "^2.18", "laminas/laminas-servicemanager": "^3.21.0", "laminas/laminas-validator": "^2.30.1", - "phpunit/phpunit": "^9.6.10", + "phpunit/phpunit": "^10.2.6", "psalm/plugin-phpunit": "^0.18.4", "psr/http-message": "^2.0", "vimeo/psalm": "^5.13.1" diff --git a/composer.lock b/composer.lock index e95a6035..d8ba2c6e 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": "2c119062f86af5b6653d33e69803e2f9", + "content-hash": "8ebf38a5986bd058377d9214f0f2ab51", "packages": [ { "name": "laminas/laminas-escaper", @@ -698,76 +698,6 @@ }, "time": "2019-12-04T15:06:13+00:00" }, - { - "name": "doctrine/instantiator", - "version": "2.0.0", - "source": { - "type": "git", - "url": "https://github.com/doctrine/instantiator.git", - "reference": "c6222283fa3f4ac679f8b9ced9a4e23f163e80d0" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/doctrine/instantiator/zipball/c6222283fa3f4ac679f8b9ced9a4e23f163e80d0", - "reference": "c6222283fa3f4ac679f8b9ced9a4e23f163e80d0", - "shasum": "" - }, - "require": { - "php": "^8.1" - }, - "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" - }, - "type": "library", - "autoload": { - "psr-4": { - "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Marco Pivetta", - "email": "ocramius@gmail.com", - "homepage": "https://ocramius.github.io/" - } - ], - "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", - "homepage": "https://www.doctrine-project.org/projects/instantiator.html", - "keywords": [ - "constructor", - "instantiate" - ], - "support": { - "issues": "https://github.com/doctrine/instantiator/issues", - "source": "https://github.com/doctrine/instantiator/tree/2.0.0" - }, - "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" - }, { "name": "felixfbecker/advanced-json-rpc", "version": "v3.2.1", @@ -2134,16 +2064,16 @@ }, { "name": "phpunit/php-code-coverage", - "version": "9.2.26", + "version": "10.1.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "443bc6912c9bd5b409254a40f4b0f4ced7c80ea1" + "reference": "db1497ec8dd382e82c962f7abbe0320e4882ee4e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/443bc6912c9bd5b409254a40f4b0f4ced7c80ea1", - "reference": "443bc6912c9bd5b409254a40f4b0f4ced7c80ea1", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/db1497ec8dd382e82c962f7abbe0320e4882ee4e", + "reference": "db1497ec8dd382e82c962f7abbe0320e4882ee4e", "shasum": "" }, "require": { @@ -2151,18 +2081,18 @@ "ext-libxml": "*", "ext-xmlwriter": "*", "nikic/php-parser": "^4.15", - "php": ">=7.3", - "phpunit/php-file-iterator": "^3.0.3", - "phpunit/php-text-template": "^2.0.2", - "sebastian/code-unit-reverse-lookup": "^2.0.2", - "sebastian/complexity": "^2.0", - "sebastian/environment": "^5.1.2", - "sebastian/lines-of-code": "^1.0.3", - "sebastian/version": "^3.0.1", + "php": ">=8.1", + "phpunit/php-file-iterator": "^4.0", + "phpunit/php-text-template": "^3.0", + "sebastian/code-unit-reverse-lookup": "^3.0", + "sebastian/complexity": "^3.0", + "sebastian/environment": "^6.0", + "sebastian/lines-of-code": "^2.0", + "sebastian/version": "^4.0", "theseer/tokenizer": "^1.2.0" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^10.1" }, "suggest": { "ext-pcov": "PHP extension that provides line coverage", @@ -2171,7 +2101,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "9.2-dev" + "dev-main": "10.1-dev" } }, "autoload": { @@ -2199,7 +2129,8 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", - "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.26" + "security": "https://github.com/sebastianbergmann/php-code-coverage/security/policy", + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/10.1.2" }, "funding": [ { @@ -2207,32 +2138,32 @@ "type": "github" } ], - "time": "2023-03-06T12:58:08+00:00" + "time": "2023-05-22T09:04:27+00:00" }, { "name": "phpunit/php-file-iterator", - "version": "3.0.6", + "version": "4.0.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-file-iterator.git", - "reference": "cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf" + "reference": "5647d65443818959172645e7ed999217360654b6" }, "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/5647d65443818959172645e7ed999217360654b6", + "reference": "5647d65443818959172645e7ed999217360654b6", "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": { @@ -2259,7 +2190,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.0.2" }, "funding": [ { @@ -2267,28 +2199,28 @@ "type": "github" } ], - "time": "2021-12-02T12:48:52+00:00" + "time": "2023-05-07T09:13:23+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": "*" @@ -2296,7 +2228,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "3.1-dev" + "dev-main": "4.0-dev" } }, "autoload": { @@ -2322,7 +2254,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": [ { @@ -2330,32 +2262,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.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-text-template.git", - "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28" + "reference": "9f3d3709577a527025f55bcf0f7ab8052c8bb37d" }, "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/9f3d3709577a527025f55bcf0f7ab8052c8bb37d", + "reference": "9f3d3709577a527025f55bcf0f7ab8052c8bb37d", "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": { @@ -2381,7 +2313,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-text-template/issues", - "source": "https://github.com/sebastianbergmann/php-text-template/tree/2.0.4" + "source": "https://github.com/sebastianbergmann/php-text-template/tree/3.0.0" }, "funding": [ { @@ -2389,32 +2321,32 @@ "type": "github" } ], - "time": "2020-10-26T05:33:50+00:00" + "time": "2023-02-03T06:56:46+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": { @@ -2440,7 +2372,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": [ { @@ -2448,24 +2380,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.10", + "version": "10.2.6", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "a6d351645c3fe5a30f5e86be6577d946af65a328" + "reference": "1c17815c129f133f3019cc18e8d0c8622e6d9bcd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/a6d351645c3fe5a30f5e86be6577d946af65a328", - "reference": "a6d351645c3fe5a30f5e86be6577d946af65a328", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/1c17815c129f133f3019cc18e8d0c8622e6d9bcd", + "reference": "1c17815c129f133f3019cc18e8d0c8622e6d9bcd", "shasum": "" }, "require": { - "doctrine/instantiator": "^1.3.1 || ^2", "ext-dom": "*", "ext-json": "*", "ext-libxml": "*", @@ -2475,27 +2406,26 @@ "myclabs/deep-copy": "^1.10.1", "phar-io/manifest": "^2.0.3", "phar-io/version": "^3.0.2", - "php": ">=7.3", - "phpunit/php-code-coverage": "^9.2.13", - "phpunit/php-file-iterator": "^3.0.5", - "phpunit/php-invoker": "^3.1.1", - "phpunit/php-text-template": "^2.0.3", - "phpunit/php-timer": "^5.0.2", - "sebastian/cli-parser": "^1.0.1", - "sebastian/code-unit": "^1.0.6", - "sebastian/comparator": "^4.0.8", - "sebastian/diff": "^4.0.3", - "sebastian/environment": "^5.1.3", - "sebastian/exporter": "^4.0.5", - "sebastian/global-state": "^5.0.1", - "sebastian/object-enumerator": "^4.0.3", - "sebastian/resource-operations": "^3.0.3", - "sebastian/type": "^3.2", - "sebastian/version": "^3.0.2" + "php": ">=8.1", + "phpunit/php-code-coverage": "^10.1.1", + "phpunit/php-file-iterator": "^4.0", + "phpunit/php-invoker": "^4.0", + "phpunit/php-text-template": "^3.0", + "phpunit/php-timer": "^6.0", + "sebastian/cli-parser": "^2.0", + "sebastian/code-unit": "^2.0", + "sebastian/comparator": "^5.0", + "sebastian/diff": "^5.0", + "sebastian/environment": "^6.0", + "sebastian/exporter": "^5.0", + "sebastian/global-state": "^6.0", + "sebastian/object-enumerator": "^5.0", + "sebastian/recursion-context": "^5.0", + "sebastian/type": "^4.0", + "sebastian/version": "^4.0" }, "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" @@ -2503,7 +2433,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "9.6-dev" + "dev-main": "10.2-dev" } }, "autoload": { @@ -2535,7 +2465,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.10" + "source": "https://github.com/sebastianbergmann/phpunit/tree/10.2.6" }, "funding": [ { @@ -2551,7 +2481,7 @@ "type": "tidelift" } ], - "time": "2023-07-10T04:04:23+00:00" + "time": "2023-07-17T12:08:28+00:00" }, { "name": "psalm/plugin-phpunit", @@ -2914,28 +2844,28 @@ }, { "name": "sebastian/cli-parser", - "version": "1.0.1", + "version": "2.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/cli-parser.git", - "reference": "442e7c7e687e42adc03470c7b668bc4b2402c0b2" + "reference": "efdc130dbbbb8ef0b545a994fd811725c5282cae" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/442e7c7e687e42adc03470c7b668bc4b2402c0b2", - "reference": "442e7c7e687e42adc03470c7b668bc4b2402c0b2", + "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/efdc130dbbbb8ef0b545a994fd811725c5282cae", + "reference": "efdc130dbbbb8ef0b545a994fd811725c5282cae", "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": { @@ -2958,7 +2888,7 @@ "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.1" + "source": "https://github.com/sebastianbergmann/cli-parser/tree/2.0.0" }, "funding": [ { @@ -2966,32 +2896,32 @@ "type": "github" } ], - "time": "2020-09-28T06:08:49+00:00" + "time": "2023-02-03T06:58:15+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": { @@ -3014,7 +2944,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": [ { @@ -3022,32 +2952,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": { @@ -3069,7 +2999,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": [ { @@ -3077,34 +3007,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.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "fa0f136dd2334583309d32b62544682ee972b51a" + "reference": "72f01e6586e0caf6af81297897bd112eb7e9627c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/fa0f136dd2334583309d32b62544682ee972b51a", - "reference": "fa0f136dd2334583309d32b62544682ee972b51a", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/72f01e6586e0caf6af81297897bd112eb7e9627c", + "reference": "72f01e6586e0caf6af81297897bd112eb7e9627c", "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.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "4.0-dev" + "dev-main": "5.0-dev" } }, "autoload": { @@ -3143,7 +3075,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/comparator/issues", - "source": "https://github.com/sebastianbergmann/comparator/tree/4.0.8" + "source": "https://github.com/sebastianbergmann/comparator/tree/5.0.0" }, "funding": [ { @@ -3151,33 +3083,33 @@ "type": "github" } ], - "time": "2022-09-14T12:41:17+00:00" + "time": "2023-02-03T07:07:16+00:00" }, { "name": "sebastian/complexity", - "version": "2.0.2", + "version": "3.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/complexity.git", - "reference": "739b35e53379900cc9ac327b2147867b8b6efd88" + "reference": "e67d240970c9dc7ea7b2123a6d520e334dd61dc6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/739b35e53379900cc9ac327b2147867b8b6efd88", - "reference": "739b35e53379900cc9ac327b2147867b8b6efd88", + "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/e67d240970c9dc7ea7b2123a6d520e334dd61dc6", + "reference": "e67d240970c9dc7ea7b2123a6d520e334dd61dc6", "shasum": "" }, "require": { - "nikic/php-parser": "^4.7", - "php": ">=7.3" + "nikic/php-parser": "^4.10", + "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": { @@ -3200,7 +3132,7 @@ "homepage": "https://github.com/sebastianbergmann/complexity", "support": { "issues": "https://github.com/sebastianbergmann/complexity/issues", - "source": "https://github.com/sebastianbergmann/complexity/tree/2.0.2" + "source": "https://github.com/sebastianbergmann/complexity/tree/3.0.0" }, "funding": [ { @@ -3208,33 +3140,33 @@ "type": "github" } ], - "time": "2020-10-26T15:52:27+00:00" + "time": "2023-02-03T06:59:47+00:00" }, { "name": "sebastian/diff", - "version": "4.0.5", + "version": "5.0.3", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "74be17022044ebaaecfdf0c5cd504fc9cd5a7131" + "reference": "912dc2fbe3e3c1e7873313cc801b100b6c68c87b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/74be17022044ebaaecfdf0c5cd504fc9cd5a7131", - "reference": "74be17022044ebaaecfdf0c5cd504fc9cd5a7131", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/912dc2fbe3e3c1e7873313cc801b100b6c68c87b", + "reference": "912dc2fbe3e3c1e7873313cc801b100b6c68c87b", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.1" }, "require-dev": { - "phpunit/phpunit": "^9.3", + "phpunit/phpunit": "^10.0", "symfony/process": "^4.2 || ^5" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "4.0-dev" + "dev-main": "5.0-dev" } }, "autoload": { @@ -3266,7 +3198,8 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/diff/issues", - "source": "https://github.com/sebastianbergmann/diff/tree/4.0.5" + "security": "https://github.com/sebastianbergmann/diff/security/policy", + "source": "https://github.com/sebastianbergmann/diff/tree/5.0.3" }, "funding": [ { @@ -3274,27 +3207,27 @@ "type": "github" } ], - "time": "2023-05-07T05:35:17+00:00" + "time": "2023-05-01T07:48:21+00:00" }, { "name": "sebastian/environment", - "version": "5.1.5", + "version": "6.0.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/environment.git", - "reference": "830c43a844f1f8d5b7a1f6d6076b784454d8b7ed" + "reference": "43c751b41d74f96cbbd4e07b7aec9675651e2951" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/830c43a844f1f8d5b7a1f6d6076b784454d8b7ed", - "reference": "830c43a844f1f8d5b7a1f6d6076b784454d8b7ed", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/43c751b41d74f96cbbd4e07b7aec9675651e2951", + "reference": "43c751b41d74f96cbbd4e07b7aec9675651e2951", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.1" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^10.0" }, "suggest": { "ext-posix": "*" @@ -3302,7 +3235,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "5.1-dev" + "dev-main": "6.0-dev" } }, "autoload": { @@ -3321,7 +3254,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", @@ -3329,7 +3262,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.0.1" }, "funding": [ { @@ -3337,34 +3271,34 @@ "type": "github" } ], - "time": "2023-02-03T06:03:51+00:00" + "time": "2023-04-11T05:39:26+00:00" }, { "name": "sebastian/exporter", - "version": "4.0.5", + "version": "5.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/exporter.git", - "reference": "ac230ed27f0f98f597c8a2b6eb7ac563af5e5b9d" + "reference": "f3ec4bf931c0b31e5b413f5b4fc970a7d03338c0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/ac230ed27f0f98f597c8a2b6eb7ac563af5e5b9d", - "reference": "ac230ed27f0f98f597c8a2b6eb7ac563af5e5b9d", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/f3ec4bf931c0b31e5b413f5b4fc970a7d03338c0", + "reference": "f3ec4bf931c0b31e5b413f5b4fc970a7d03338c0", "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.0-dev" } }, "autoload": { @@ -3406,7 +3340,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/exporter/issues", - "source": "https://github.com/sebastianbergmann/exporter/tree/4.0.5" + "source": "https://github.com/sebastianbergmann/exporter/tree/5.0.0" }, "funding": [ { @@ -3414,38 +3348,35 @@ "type": "github" } ], - "time": "2022-09-14T06:03:37+00:00" + "time": "2023-02-03T07:06:49+00:00" }, { "name": "sebastian/global-state", - "version": "5.0.5", + "version": "6.0.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/global-state.git", - "reference": "0ca8db5a5fc9c8646244e629625ac486fa286bf2" + "reference": "7ea9ead78f6d380d2a667864c132c2f7b83055e4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/0ca8db5a5fc9c8646244e629625ac486fa286bf2", - "reference": "0ca8db5a5fc9c8646244e629625ac486fa286bf2", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/7ea9ead78f6d380d2a667864c132c2f7b83055e4", + "reference": "7ea9ead78f6d380d2a667864c132c2f7b83055e4", "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": { @@ -3470,7 +3401,8 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/global-state/issues", - "source": "https://github.com/sebastianbergmann/global-state/tree/5.0.5" + "security": "https://github.com/sebastianbergmann/global-state/security/policy", + "source": "https://github.com/sebastianbergmann/global-state/tree/6.0.1" }, "funding": [ { @@ -3478,33 +3410,33 @@ "type": "github" } ], - "time": "2022-02-14T08:28:10+00:00" + "time": "2023-07-19T07:19:23+00:00" }, { "name": "sebastian/lines-of-code", - "version": "1.0.3", + "version": "2.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/lines-of-code.git", - "reference": "c1c2e997aa3146983ed888ad08b15470a2e22ecc" + "reference": "17c4d940ecafb3d15d2cf916f4108f664e28b130" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/c1c2e997aa3146983ed888ad08b15470a2e22ecc", - "reference": "c1c2e997aa3146983ed888ad08b15470a2e22ecc", + "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/17c4d940ecafb3d15d2cf916f4108f664e28b130", + "reference": "17c4d940ecafb3d15d2cf916f4108f664e28b130", "shasum": "" }, "require": { - "nikic/php-parser": "^4.6", - "php": ">=7.3" + "nikic/php-parser": "^4.10", + "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": { @@ -3527,7 +3459,7 @@ "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.3" + "source": "https://github.com/sebastianbergmann/lines-of-code/tree/2.0.0" }, "funding": [ { @@ -3535,34 +3467,34 @@ "type": "github" } ], - "time": "2020-11-28T06:42:11+00:00" + "time": "2023-02-03T07:08:02+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": { @@ -3584,7 +3516,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": [ { @@ -3592,32 +3524,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": { @@ -3639,7 +3571,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": [ { @@ -3647,32 +3579,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": { @@ -3702,7 +3634,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": [ { @@ -3710,87 +3642,32 @@ "type": "github" } ], - "time": "2023-02-03T06:07:39+00:00" - }, - { - "name": "sebastian/resource-operations", - "version": "3.0.3", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/resource-operations.git", - "reference": "0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8", - "reference": "0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8", - "shasum": "" - }, - "require": { - "php": ">=7.3" - }, - "require-dev": { - "phpunit/phpunit": "^9.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Provides a list of PHP built-in functions that operate on resources", - "homepage": "https://www.github.com/sebastianbergmann/resource-operations", - "support": { - "issues": "https://github.com/sebastianbergmann/resource-operations/issues", - "source": "https://github.com/sebastianbergmann/resource-operations/tree/3.0.3" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2020-09-28T06:45:17+00:00" + "time": "2023-02-03T07:05:40+00:00" }, { "name": "sebastian/type", - "version": "3.2.1", + "version": "4.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/type.git", - "reference": "75e2c2a32f5e0b3aef905b9ed0b179b953b3d7c7" + "reference": "462699a16464c3944eefc02ebdd77882bd3925bf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/75e2c2a32f5e0b3aef905b9ed0b179b953b3d7c7", - "reference": "75e2c2a32f5e0b3aef905b9ed0b179b953b3d7c7", + "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.5" + "phpunit/phpunit": "^10.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.2-dev" + "dev-main": "4.0-dev" } }, "autoload": { @@ -3813,7 +3690,7 @@ "homepage": "https://github.com/sebastianbergmann/type", "support": { "issues": "https://github.com/sebastianbergmann/type/issues", - "source": "https://github.com/sebastianbergmann/type/tree/3.2.1" + "source": "https://github.com/sebastianbergmann/type/tree/4.0.0" }, "funding": [ { @@ -3821,29 +3698,29 @@ "type": "github" } ], - "time": "2023-02-03T06:13:03+00:00" + "time": "2023-02-03T07:10:45+00:00" }, { "name": "sebastian/version", - "version": "3.0.2", + "version": "4.0.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/version.git", - "reference": "c6c1022351a901512170118436c764e473f6de8c" + "reference": "c51fa83a5d8f43f1402e3f32a005e6262244ef17" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/c6c1022351a901512170118436c764e473f6de8c", - "reference": "c6c1022351a901512170118436c764e473f6de8c", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/c51fa83a5d8f43f1402e3f32a005e6262244ef17", + "reference": "c51fa83a5d8f43f1402e3f32a005e6262244ef17", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.1" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.0-dev" + "dev-main": "4.0-dev" } }, "autoload": { @@ -3866,7 +3743,7 @@ "homepage": "https://github.com/sebastianbergmann/version", "support": { "issues": "https://github.com/sebastianbergmann/version/issues", - "source": "https://github.com/sebastianbergmann/version/tree/3.0.2" + "source": "https://github.com/sebastianbergmann/version/tree/4.0.1" }, "funding": [ { @@ -3874,7 +3751,7 @@ "type": "github" } ], - "time": "2020-09-28T06:39:44+00:00" + "time": "2023-02-07T11:34:05+00:00" }, { "name": "slevomat/coding-standard", diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 2656da83..2c4b1ec1 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,10 +1,9 @@ - - - - ./src - - + ./test @@ -14,4 +13,9 @@ + + + ./src + + diff --git a/psalm-baseline.xml b/psalm-baseline.xml index ee5fa630..56847224 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -23,6 +23,9 @@ + + _detectCallbackUrl + $httpResponse $storage @@ -77,6 +80,12 @@ + + getHeaders + + + bool + (string) $content (string) $name @@ -139,6 +148,9 @@ getHubs + + clearHttpClient + $source instanceof Reader\Feed\AbstractFeed @@ -177,6 +189,10 @@ $name getContent()]]> + + getErrors + notifyHub + @@ -264,6 +280,12 @@ + + getAsyncHubs + getAuthentications + getErrors + isSuccess + $leaseSeconds $storage @@ -349,6 +371,11 @@ setHeader + + getFeedUpdate + hasFeedUpdate + setSubscriptionKey + $currentSubscriptionData $feedUpdate @@ -396,6 +423,15 @@ ownerDocument]]> + + __call + __construct + getExtension + getExtensions + getType + getXpath + saveXml + $xpath @@ -451,6 +487,19 @@ Feed\FeedInterface + + AbstractFeed + + + + + Collection + + + + + Collection + @@ -485,6 +534,12 @@ ownerDocument]]> + + __call + getExtensions + getXpath + saveXml + $xpath @@ -555,6 +610,15 @@ getLink(0)]]> + + getSource + + + $xpathQuery + + + array + Atom @@ -664,6 +728,9 @@ nodeValue]]> $standard + + array + Rss @@ -743,6 +810,11 @@ ownerDocument]]> + + setEntryElement + setEntryKey + toArray + entryKey]]> entryKey]]> @@ -793,6 +865,12 @@ null + + getEncoding + setDomDocument + setXpathPrefix + toArray + @@ -891,6 +969,12 @@ getBaseUrl()]]> + + getAuthor + + + $index + $list instanceof DOMNodeList $list instanceof DOMNodeList @@ -1005,6 +1089,20 @@ getBaseUrl()]]> + + getAuthor + getCategories + getCopyright + getDateCreated + getDateModified + getDescription + getFeedLink + getGenerator + getHubs + getId + getImage + getLanguage + getAttribute getAttribute @@ -1030,6 +1128,9 @@ data[$name]]]> + + getLicense + @@ -1047,6 +1148,9 @@ data[$name]]]> + + getLicense + @@ -1114,6 +1218,10 @@ data['description']]]> data['title']]]> + + getAuthor + getContent + @@ -1181,6 +1289,16 @@ data['authors']]]> + + getAuthor + getCategories + getCopyright + getDate + getDescription + getId + getLanguage + getTitle + @@ -1209,6 +1327,11 @@ data['description']]]> data['explicit']]]> + + getPlayPodcastBlock + getPlayPodcastDescription + getPlayPodcastExplicit + @@ -1251,6 +1374,14 @@ data['explicit']]]> data['image']]]> + + getPlayPodcastAuthor + getPlayPodcastBlock + getPlayPodcastCategories + getPlayPodcastDescription + getPlayPodcastExplicit + getPlayPodcastImage + getAttribute getAttribute @@ -1331,6 +1462,21 @@ data['summary']]]> data['title']]]> + + getBlock + getCastAuthor + getDuration + getEpisode + getEpisodeType + getExplicit + getItunesImage + getKeywords + getSeason + getSubtitle + getSummary + getTitle + isClosedCaptioned + @@ -1409,6 +1555,20 @@ data['subtitle']]]> data['summary']]]> + + getBlock + getCastAuthor + getExplicit + getItunesCategories + getItunesImage + getKeywords + getNewFeedUrl + getOwner + getPodcastType + getSubtitle + getSummary + isComplete + getAttribute getAttribute @@ -1478,6 +1638,11 @@ data[$name]]]> + + getDepartment + getHitParade + getSection + @@ -1503,6 +1668,11 @@ $period $ticks / $freq + + getUpdateBase + getUpdateFrequency + getUpdateFrequencyAsTicks + @@ -1515,6 +1685,9 @@ getData('total')]]> getData('total')]]> + + getInReplyTo + @@ -1540,11 +1713,24 @@ pluginManager->get($extension)]]> pluginManager->get($extension)]]> + + get + has + + + mixed + ExtensionPluginManager + + validatePlugin + + + $shareByDefault + @@ -1589,6 +1775,14 @@ data['type']]]> extensions[$name . '\\Feed']]]> + + getElement + getEncoding + getExtensions + getXpath + saveXml + setOriginalSourceUri + $originalSourceUri @@ -1716,6 +1910,12 @@ getLink getTitle + + getBaseUrl + getHubs + getImage + getLastBuildDate + Atom @@ -1965,6 +2165,11 @@ getTitle getTitle + + getHubs + getImage + getLastBuildDate + Rss @@ -2110,6 +2315,12 @@ $value $version + + getHttpMethodOverride + setCache + setHttpMethodOverride + useHttpConditionalGet + getStatusCode()]]> getStatusCode()]]> @@ -2167,6 +2378,9 @@ path]]> scheme]]> + + $pass + new static($uri) @@ -2250,6 +2464,9 @@ data['link']]]> data['title']]]> + + reset + $extensions $type @@ -2373,6 +2590,9 @@ getEncoding()]]> + + getCategories + $type @@ -2473,6 +2693,15 @@ $type $type + + getEncoding + setEncoding + setRootElement + setType + + + $entry + @@ -2538,6 +2767,18 @@ + + __call + __construct + getEncoding + setEncoding + setPlayPodcastBlock + setPlayPodcastDescription + setPlayPodcastExplicit + + + $params + @@ -2568,6 +2809,21 @@ $value $value + + __call + __construct + addPlayPodcastAuthors + getEncoding + setEncoding + setPlayPodcastBlock + setPlayPodcastCategories + setPlayPodcastDescription + setPlayPodcastExplicit + setPlayPodcastImage + + + $params + @@ -2641,6 +2897,28 @@ $value + + __call + __construct + addItunesAuthors + getEncoding + setEncoding + setItunesBlock + setItunesDuration + setItunesEpisode + setItunesEpisodeType + setItunesExplicit + setItunesImage + setItunesIsClosedCaptioned + setItunesKeywords + setItunesSeason + setItunesSubtitle + setItunesSummary + setItunesTitle + + + $params + (int) $number (int) $number @@ -2683,6 +2961,28 @@ $value $value + + __call + __construct + addItunesAuthors + addItunesOwners + getEncoding + setEncoding + setItunesBlock + setItunesCategories + setItunesComplete + setItunesDuration + setItunesExplicit + setItunesImage + setItunesKeywords + setItunesNewFeedUrl + setItunesSubtitle + setItunesSummary + setItunesType + + + $params + (string) $value @@ -2798,6 +3098,37 @@ $value + + __call + __construct + addPodcastIndexSoundbites + getEncoding + setEncoding + setPodcastIndexChapters + setPodcastIndexTranscript + + + $params + + + $stringWrapper + + + + + __call + __construct + getEncoding + setEncoding + setPodcastIndexFunding + setPodcastIndexLocked + + + $params + + + $stringWrapper + @@ -2822,6 +3153,13 @@ + + + render + setDataContainer + setDomDocument + + $count @@ -2829,6 +3167,9 @@ getCommentCount + + $dom + @@ -2858,6 +3199,11 @@ + + $dom + $dom + $dom + empty($links) @@ -2890,11 +3236,22 @@ pluginManager->get($extension)]]> + + __call + get + has + ExtensionPluginManager + + validatePlugin + + + $shareByDefault + @@ -2964,6 +3321,10 @@ setDataContainer setEncoding + + getExceptions + setEncoding + $dom $rootElement @@ -3038,6 +3399,9 @@ format format + + $dom + Atom Atom @@ -3071,6 +3435,9 @@ container->getEncoding()]]> + + __construct + Deleted Deleted @@ -3170,6 +3537,11 @@ format + + $dom + $dom + $root + Rss Rss @@ -3233,6 +3605,12 @@ format + + $dom + $dom + $dom + $root + AbstractAtom AbstractAtom @@ -3322,6 +3700,16 @@ format + + _setHubs + _setImage + + + $dom + $dom + $dom + $root + AbstractAtom AbstractAtom @@ -3356,6 +3744,9 @@ + + __construct + Source Source @@ -3458,6 +3849,11 @@ format format + + $dom + $dom + $root + Rss Rss @@ -3471,6 +3867,12 @@ setRootElement setType + + getExceptions + + + mixed + @@ -3510,6 +3912,9 @@ + + lcfirst + isset(static::$extensionManager) @@ -3547,61 +3952,24 @@ - - $className - $className - - - - - setMethods - setMethods - setMethods - - tableGateway]]> new stdClass() - - getCleanMock( - Adapter::class - )]]> - getCleanMock( - ResultSet::class - )]]> - getCleanMock( - TableGateway::class - )]]> - mockInputStream getHeader - - - - assertFalse($this->callback->isValidHubVerification($this->get));]]> - - $className - $className - - - setMethods - - getName + nameWithDataSet - - storage]]> - @@ -3611,13 +3979,6 @@ - - $className - $className - - - setMethods - @@ -3636,6 +3997,9 @@ + + $expectedCatsDc + getAuthors()]]> @@ -3655,6 +4019,10 @@ + + getMockForAbstractClass + getMockForAbstractClass + getElement()->tagName]]> @@ -3674,9 +4042,6 @@ - - public function dateModifiedProvider(): array - getValues getValues @@ -3694,9 +4059,6 @@ getValues getValues - - >]]> - getValues getValues @@ -3773,8 +4135,15 @@ getSource getSource + + $expectedCatsDc + $options + + + $options + getAuthors()]]> getAuthors()]]> @@ -3959,6 +4328,9 @@ expects expects + + $headers + ]]> ]]> @@ -4109,10 +4481,6 @@ $feed $feed - - setMethods - setMethods - new stdClass() Extension\AbstractEntry|Extension\AbstractFeed - - - - __toString - + + get + has + $isbn + + getIsbn + @@ -4167,6 +4537,9 @@ data['dayPopular']]]> + + getDaysPopularBookLink + @@ -4198,6 +4571,9 @@ null + + $feedSamplePath + $entry = new Writer\Entry(); $entry = new Writer\Entry(); @@ -4274,6 +4650,9 @@ $message + + $feedSamplePath + expectException(ExceptionInterface::class);]]> expectException(ExceptionInterface::class);]]> @@ -4416,5 +4795,8 @@ new $class() + + get + diff --git a/psalm.xml b/psalm.xml index d6564264..61c38fee 100644 --- a/psalm.xml +++ b/psalm.xml @@ -6,6 +6,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" > diff --git a/test/PubSubHubbub/AbstractCallbackTest.php b/test/PubSubHubbub/AbstractCallbackTest.php index af39b881..a905f0e7 100644 --- a/test/PubSubHubbub/AbstractCallbackTest.php +++ b/test/PubSubHubbub/AbstractCallbackTest.php @@ -4,11 +4,13 @@ namespace LaminasTest\Feed\PubSubHubbub; +use PHPUnit\Framework\Attributes\BackupGlobals; use PHPUnit\Framework\TestCase; use ReflectionMethod; use function array_merge; +#[BackupGlobals(true)] class AbstractCallbackTest extends TestCase { public function testDetectCallbackUrlIgnoresXOriginalUrlHeaderWhenXRewriteUrlHeaderIsNotPresent(): void diff --git a/test/PubSubHubbub/Subscriber/CallbackTest.php b/test/PubSubHubbub/Subscriber/CallbackTest.php index bb0441dc..667db082 100644 --- a/test/PubSubHubbub/Subscriber/CallbackTest.php +++ b/test/PubSubHubbub/Subscriber/CallbackTest.php @@ -16,9 +16,9 @@ use Laminas\Feed\PubSubHubbub\HttpResponse; use Laminas\Feed\PubSubHubbub\Model; use Laminas\Feed\PubSubHubbub\Subscriber\Callback as CallbackSubscriber; +use PHPUnit\Framework\Attributes\BackupGlobals; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; -use ReflectionClass; use ReflectionProperty; use stdClass; @@ -28,14 +28,9 @@ use function hash; use function rewind; use function sprintf; -use function str_replace; use function time; -use function uniqid; -/** - * @group Laminas_Feed - * @group Laminas_Feed_Subsubhubbub - */ +#[BackupGlobals(true)] class CallbackTest extends TestCase { /** @var CallbackSubscriber */ @@ -56,15 +51,9 @@ protected function setUp(): void { $this->callback = new CallbackSubscriber(); - $this->adapter = $this->getCleanMock( - Adapter::class - ); - $this->tableGateway = $this->getCleanMock( - TableGateway::class - ); - $this->rowset = $this->getCleanMock( - ResultSet::class - ); + $this->adapter = $this->createMock(Adapter::class); + $this->tableGateway = $this->createMock(TableGateway::class); + $this->rowset = $this->createMock(ResultSet::class); $this->tableGateway->expects($this->any()) ->method('getAdapter') @@ -170,12 +159,12 @@ public function testCanSetStorageImplementation(): void */ public function testValidatesValidHttpGetData(): void { - $mockReturnValue = $this->getMockBuilder('Result')->setMethods(['getArrayCopy'])->getMock(); - $mockReturnValue->expects($this->any()) - ->method('getArrayCopy') - ->will($this->returnValue([ - 'verify_token' => hash('sha256', 'cba'), - ])); + $mockReturnValue = new class { + public function getArrayCopy(): array + { + return ['verify_token' => hash('sha256', 'cba')]; + } + }; $this->tableGateway->expects($this->any()) ->method('select') @@ -223,12 +212,12 @@ public function testReturnsFalseIfVerifyTokenMissingFromHttpGetData(): void public function testReturnsTrueIfModeSetAsUnsubscribeFromHttpGetData(): void { - $mockReturnValue = $this->getMockBuilder('Result')->setMethods(['getArrayCopy'])->getMock(); - $mockReturnValue->expects($this->any()) - ->method('getArrayCopy') - ->will($this->returnValue([ - 'verify_token' => hash('sha256', 'cba'), - ])); + $mockReturnValue = new class { + public function getArrayCopy(): array + { + return ['verify_token' => hash('sha256', 'cba')]; + } + }; $this->get['hub_mode'] = 'unsubscribe'; $this->tableGateway->expects($this->any()) @@ -527,25 +516,4 @@ public function testRespondsToValidFeedUpdateWithXHubOnBehalfOfHeader(): void $this->callback->handle([]); $this->assertEquals(1, $this->callback->getHttpResponse()->getHeader('X-Hub-On-Behalf-Of')); } - - protected function getCleanMock(string $className): MockObject - { - $class = new ReflectionClass($className); - $methods = $class->getMethods(); - $stubMethods = []; - foreach ($methods as $method) { - if ( - $method->isPublic() - || ($method->isProtected() && $method->isAbstract()) - ) { - $stubMethods[] = $method->getName(); - } - } - return $this->getMockBuilder($className) - ->setMethods($stubMethods) - ->setConstructorArgs([]) - ->setMockClassName(str_replace('\\', '_', $className . '_PubsubSubscriberMock_' . uniqid())) - ->disableOriginalConstructor() - ->getMock(); - } } diff --git a/test/PubSubHubbub/SubscriberHttpTest.php b/test/PubSubHubbub/SubscriberHttpTest.php index 20077401..33c875f1 100644 --- a/test/PubSubHubbub/SubscriberHttpTest.php +++ b/test/PubSubHubbub/SubscriberHttpTest.php @@ -11,7 +11,6 @@ use Laminas\Http\Client\Adapter\Socket; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; -use ReflectionClass; use function getenv; use function strpos; @@ -50,7 +49,7 @@ protected function setUp(): void if (substr($this->baseuri, -1) !== '/') { $this->baseuri .= '/'; } - $name = $this->getName(); + $name = $this->nameWithDataSet(); if (($pos = strpos($name, ' ')) !== false) { $name = substr($name, 0, $pos); } @@ -60,8 +59,7 @@ protected function setUp(): void PubSubHubbub::setHttpClient($this->client); $this->subscriber = new Subscriber(); - /** @psalm-suppress InvalidPropertyAssignmentValue */ - $this->storage = $this->getCleanMock(Subscription::class); + $this->storage = $this->createMock(Subscription::class); $this->subscriber->setStorage($this->storage); } else { // Skip tests @@ -105,20 +103,4 @@ public function testUnsubscriptionRequestSendsExpectedPostData(): void $subscriptionRecord = $this->subscriber->getStorage()->getSubscription(); $this->assertEquals($subscriptionRecord['subscription_state'], PubSubHubbub::SUBSCRIPTION_TODELETE); } - - protected function getCleanMock(string $className): MockObject - { - $class = new ReflectionClass($className); - $methods = $class->getMethods(); - $stubMethods = []; - foreach ($methods as $method) { - if ( - $method->isPublic() - || ($method->isProtected() && $method->isAbstract()) - ) { - $stubMethods[] = $method->getName(); - } - } - return $this->getMockBuilder($className)->setMethods($stubMethods)->getMock(); - } } diff --git a/test/PubSubHubbub/SubscriberTest.php b/test/PubSubHubbub/SubscriberTest.php index a90031da..eb5ddbfb 100644 --- a/test/PubSubHubbub/SubscriberTest.php +++ b/test/PubSubHubbub/SubscriberTest.php @@ -13,10 +13,6 @@ use Laminas\Http\Client as HttpClient; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; -use ReflectionClass; - -use function str_replace; -use function uniqid; /** * @group Laminas_Feed @@ -39,15 +35,8 @@ protected function setUp(): void PubSubHubbub::setHttpClient($client); $this->subscriber = new Subscriber(); - /** @psalm-suppress InvalidPropertyAssignmentValue */ - $this->adapter = $this->getCleanMock( - Adapter::class - ); - - /** @psalm-suppress InvalidPropertyAssignmentValue */ - $this->tableGateway = $this->getCleanMock( - TableGateway::class - ); + $this->adapter = $this->createMock(Adapter::class); + $this->tableGateway = $this->createMock(TableGateway::class); $this->tableGateway ->expects($this->any()) ->method('getAdapter') @@ -310,26 +299,4 @@ public function testGetStorageThrowsExceptionIfNoneSet(): void $this->expectException(ExceptionInterface::class); $this->subscriber->getStorage(); } - - protected function getCleanMock(string $className): MockObject - { - $class = new ReflectionClass($className); - $methods = $class->getMethods(); - $stubMethods = []; - foreach ($methods as $method) { - if ( - $method->isPublic() - || ($method->isProtected() && $method->isAbstract()) - ) { - $stubMethods[] = $method->getName(); - } - } - - return $this->getMockBuilder($className) - ->setMethods($stubMethods) - ->setConstructorArgs([]) - ->setMockClassName(str_replace('\\', '_', $className . '_PubsubSubscriberMock_' . uniqid())) - ->disableOriginalConstructor() - ->getMock(); - } } diff --git a/test/Reader/Entry/RssTest.php b/test/Reader/Entry/RssTest.php index e217da28..8cf2635f 100644 --- a/test/Reader/Entry/RssTest.php +++ b/test/Reader/Entry/RssTest.php @@ -1882,10 +1882,8 @@ public function testGetsDateModified(string $path, ?DateTimeInterface $edate): v $this->assertEquals($edate, $entry->getDateModified()); } - /** - * @psalm-return array> - */ - public function dateModifiedProvider(): array + /** @return non-empty-list */ + public static function dateModifiedProvider(): array { $iso = DateTime::createFromFormat(DateTimeInterface::ISO8601, '2009-03-07T08:03:50Z'); assert($iso instanceof DateTimeInterface); diff --git a/test/Reader/Feed/RssTest.php b/test/Reader/Feed/RssTest.php index fdf35723..ca542975 100644 --- a/test/Reader/Feed/RssTest.php +++ b/test/Reader/Feed/RssTest.php @@ -2128,7 +2128,7 @@ public function testGetsDateModified($path, $edate): void /** * @psalm-return array */ - public function dateModifiedProvider(): array + public static function dateModifiedProvider(): array { $iso = DateTime::createFromFormat(DateTimeInterface::ISO8601, '2009-03-07T08:03:50Z'); assert($iso instanceof DateTimeInterface); diff --git a/test/Reader/FeedSetTest.php b/test/Reader/FeedSetTest.php index 15c9ea28..9bab9ede 100644 --- a/test/Reader/FeedSetTest.php +++ b/test/Reader/FeedSetTest.php @@ -34,7 +34,7 @@ public function testAbsolutiseUri($link, $uri, $result): void /** * @psalm-return array */ - public function linkAndUriProvider(): array + public static function linkAndUriProvider(): array { return [ 'fully-qualified' => ['feed', 'http://example.com', 'http://example.com/feed'], diff --git a/test/Reader/Http/LaminasHttpClientDecoratorTest.php b/test/Reader/Http/LaminasHttpClientDecoratorTest.php index 9fa4ec3f..c981797c 100644 --- a/test/Reader/Http/LaminasHttpClientDecoratorTest.php +++ b/test/Reader/Http/LaminasHttpClientDecoratorTest.php @@ -162,7 +162,7 @@ public function testDecoratorInjectsProvidedHeadersIntoClientWhenSending(): void * 1: string * }> */ - public function invalidHeaders(): iterable + public static function invalidHeaders(): iterable { $basicTests = [ 'zero-name' => [ diff --git a/test/Reader/Http/ResponseTest.php b/test/Reader/Http/ResponseTest.php index 546db3bb..b2518140 100644 --- a/test/Reader/Http/ResponseTest.php +++ b/test/Reader/Http/ResponseTest.php @@ -52,7 +52,7 @@ public function testConstructorCanAcceptHeaders(): void } /** @psalm-return iterable */ - public function invalidStatusCodes(): iterable + public static function invalidStatusCodes(): iterable { foreach ([-100, 0, 1, 99] as $statusCode) { yield $statusCode => [$statusCode, 'between 100 and 599']; @@ -91,7 +91,7 @@ public function testConstructorRaisesExceptionForInvalidStatusCode($statusCode, } /** @psalm-return array */ - public function invalidBodies(): array + public static function invalidBodies(): array { return [ 'null' => [null], @@ -117,7 +117,7 @@ public function testConstructorRaisesExceptionForInvalidBody($body) } /** @psalm-return array, 1: string}> */ - public function invalidHeaders(): array + public static function invalidHeaders(): array { return [ 'empty-name' => [ diff --git a/test/Reader/ReaderTest.php b/test/Reader/ReaderTest.php index c344b80d..3f321f49 100644 --- a/test/Reader/ReaderTest.php +++ b/test/Reader/ReaderTest.php @@ -311,9 +311,7 @@ public function testImportRemoteFeedMethodPerformsAsExpected(): void { $uri = 'http://example.com/feeds/reader.xml'; $feedContents = file_get_contents($this->feedSamplePath . '/Reader/rss20.xml'); - $response = $this->getMockBuilder(ResponseInterface::class) - ->setMethods(['getStatusCode', 'getBody']) - ->getMock(); + $response = $this->createMock(ResponseInterface::class); $response->expects($this->once()) ->method('getStatusCode') ->will($this->returnValue(200)); @@ -321,9 +319,7 @@ public function testImportRemoteFeedMethodPerformsAsExpected(): void ->method('getBody') ->will($this->returnValue($feedContents)); - $client = $this->getMockBuilder(ClientInterface::class) - ->setMethods(['get']) - ->getMock(); + $client = $this->createMock(ClientInterface::class); $client->expects($this->once()) ->method('get') ->with($this->equalTo($uri)) diff --git a/test/Reader/StandaloneExtensionManagerTest.php b/test/Reader/StandaloneExtensionManagerTest.php index 1c442674..62fe4613 100644 --- a/test/Reader/StandaloneExtensionManagerTest.php +++ b/test/Reader/StandaloneExtensionManagerTest.php @@ -25,7 +25,7 @@ public function testIsAnExtensionManagerImplementation(): void } /** @psalm-return array */ - public function defaultPlugins(): array + public static function defaultPlugins(): array { return [ 'Atom\Entry' => ['Atom\Entry', Extension\Atom\Entry::class], diff --git a/test/Writer/EntryTest.php b/test/Writer/EntryTest.php index c08bf070..f95d6e9a 100644 --- a/test/Writer/EntryTest.php +++ b/test/Writer/EntryTest.php @@ -560,7 +560,7 @@ public function testSetsCommentCount0(): void } /** @psalm-return array */ - public function allowedCommentCounts(): array + public static function allowedCommentCounts(): array { return [ [0, 0], @@ -582,7 +582,7 @@ public function testSetsCommentCountAllowed($count, int $expected): void } /** @psalm-return array */ - public function disallowedCommentCounts(): array + public static function disallowedCommentCounts(): array { return [ [1.1], diff --git a/test/Writer/Extension/GooglePlayPodcast/FeedTest.php b/test/Writer/Extension/GooglePlayPodcast/FeedTest.php index 21129a8a..fd470ec0 100644 --- a/test/Writer/Extension/GooglePlayPodcast/FeedTest.php +++ b/test/Writer/Extension/GooglePlayPodcast/FeedTest.php @@ -147,7 +147,7 @@ public function testSetDescriptionThrowsExceptionWhenValueExceeds4000Chars(): vo } /** @psalm-return array */ - public function invalidImageUrls(): array + public static function invalidImageUrls(): array { return [ 'null' => [null], @@ -176,7 +176,7 @@ public function testSetPlayPodcastImageRaisesExceptionForInvalidUrl($url) } /** @psalm-return array */ - public function validImageUrls(): array + public static function validImageUrls(): array { return [ 'jpg' => ['https://example.com/image.jpg'], diff --git a/test/Writer/Extension/ITunes/EntryTest.php b/test/Writer/Extension/ITunes/EntryTest.php index 8c026f12..cf8a84bb 100644 --- a/test/Writer/Extension/ITunes/EntryTest.php +++ b/test/Writer/Extension/ITunes/EntryTest.php @@ -124,7 +124,7 @@ public function testSetExplicit($value, $result) } /** @psalm-return array */ - public function dataProviderForSetExplicit(): array + public static function dataProviderForSetExplicit(): array { return [ // Current behaviour @@ -257,7 +257,7 @@ public function testSetSummaryThrowsExceptionWhenValueExceeds255Chars(): void } /** @psalm-return array */ - public function invalidImageUrls(): array + public static function invalidImageUrls(): array { return [ 'null' => [null], @@ -290,7 +290,7 @@ public function testSetItunesImageRaisesExceptionForInvalidUrl($url, $expectedMe } /** @psalm-return array */ - public function validImageUrls(): array + public static function validImageUrls(): array { return [ 'jpg' => ['https://example.com/image.jpg'], @@ -310,7 +310,7 @@ public function testSetItunesImageSetsInternalDataWithValidUrl($url) } /** @psalm-return array */ - public function nonNumericEpisodeNumbers(): array + public static function nonNumericEpisodeNumbers(): array { return [ 'null' => [null], @@ -345,7 +345,7 @@ public function testSetEpisodeSetsNumberInEntry(): void } /** @psalm-return array */ - public function invalidEpisodeTypes(): array + public static function invalidEpisodeTypes(): array { return [ 'null' => [null], @@ -375,7 +375,7 @@ public function testSetEpisodeTypeRaisesExceptionForInvalidTypes($type) } /** @psalm-return array */ - public function validEpisodeTypes(): array + public static function validEpisodeTypes(): array { return [ 'full' => ['full'], @@ -396,7 +396,7 @@ public function testEpisodeTypeMaybeMutatedWithAcceptedValues($type) } /** @psalm-return array */ - public function invalidClosedCaptioningFlags(): array + public static function invalidClosedCaptioningFlags(): array { return [ 'null' => [null], diff --git a/test/Writer/Extension/ITunes/FeedTest.php b/test/Writer/Extension/ITunes/FeedTest.php index cd7fa647..c8055d7f 100644 --- a/test/Writer/Extension/ITunes/FeedTest.php +++ b/test/Writer/Extension/ITunes/FeedTest.php @@ -177,7 +177,7 @@ public function testSetExplicit($value, $result) } /** @psalm-return array */ - public function dataProviderForSetExplicit(): array + public static function dataProviderForSetExplicit(): array { return [ // Current behaviour @@ -351,7 +351,7 @@ public function testSetSummaryThrowsExceptionWhenValueExceeds4000Chars(): void } /** @psalm-return array */ - public function invalidImageUrls(): array + public static function invalidImageUrls(): array { $defaultExpectedMessage = 'valid URI'; return [ @@ -384,7 +384,7 @@ public function testSetItunesImageRaisesExceptionForInvalidUrl($url, string $exp } /** @psalm-return array */ - public function validImageUrls(): array + public static function validImageUrls(): array { return [ 'jpg' => ['https://example.com/image.jpg'], @@ -404,7 +404,7 @@ public function testSetItunesImageSetsInternalDataWithValidUrl($url) } /** @psalm-return array */ - public function invalidPodcastTypes(): array + public static function invalidPodcastTypes(): array { return [ 'null' => [null], @@ -434,7 +434,7 @@ public function testSetItunesTypeWithInvalidTypeRaisesException($type) } /** @psalm-return array */ - public function validPodcastTypes(): array + public static function validPodcastTypes(): array { return [ 'episodic' => ['episodic'], @@ -454,7 +454,7 @@ public function testSetItunesTypeMutatesTypeWithValidData($type) } /** @psalm-return array */ - public function invalidCompleteStatuses(): array + public static function invalidCompleteStatuses(): array { return [ 'null' => [null], diff --git a/test/Writer/Extension/PodcastIndex/EntryTest.php b/test/Writer/Extension/PodcastIndex/EntryTest.php index 7e4373cd..c00df29b 100644 --- a/test/Writer/Extension/PodcastIndex/EntryTest.php +++ b/test/Writer/Extension/PodcastIndex/EntryTest.php @@ -74,7 +74,7 @@ public function testSetChaptersThrowsExceptionOnInvalidArguments(): void /** * @psalm-return array */ - public function invalidTimeValues(): array + public static function invalidTimeValues(): array { return [ 'null' => [null], diff --git a/test/Writer/Extension/PodcastIndex/FeedTest.php b/test/Writer/Extension/PodcastIndex/FeedTest.php index 92343180..25aad341 100644 --- a/test/Writer/Extension/PodcastIndex/FeedTest.php +++ b/test/Writer/Extension/PodcastIndex/FeedTest.php @@ -35,7 +35,7 @@ public function testSetLockedThrowsExceptionOnInvalidArguments(): void /** * @psalm-return array */ - public function nonAlphaValues(): array + public static function nonAlphaValues(): array { return [ 'null' => [null], diff --git a/test/Writer/StandaloneExtensionManagerTest.php b/test/Writer/StandaloneExtensionManagerTest.php index 9b2c6c3e..dfa5469d 100644 --- a/test/Writer/StandaloneExtensionManagerTest.php +++ b/test/Writer/StandaloneExtensionManagerTest.php @@ -25,7 +25,7 @@ public function testIsAnExtensionManagerImplementation(): void } /** @psalm-return array */ - public function defaultPlugins(): array + public static function defaultPlugins(): array { // phpcs:disable Generic.Files.LineLength.TooLong return [