From 9835fb5eaef3465f8e28c505e65e301e66dff1b3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 9 Jan 2023 04:02:04 +0000 Subject: [PATCH] build(deps-dev): bump doctrine/coding-standard from 10.0.0 to 11.1.0 Bumps [doctrine/coding-standard](https://github.com/doctrine/coding-standard) from 10.0.0 to 11.1.0. - [Release notes](https://github.com/doctrine/coding-standard/releases) - [Commits](https://github.com/doctrine/coding-standard/compare/10.0.0...11.1.0) --- updated-dependencies: - dependency-name: doctrine/coding-standard dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- composer.json | 2 +- composer.lock | 92 +++++++++++++++++--------------- src/MappedErrorCollection.php | 1 + src/OrderedErrorCollection.php | 1 + tests/GenericMapTest.php | 1 + tests/GenericOrderedListTest.php | 1 + tests/TypedArrayFactoryTest.php | 1 + 7 files changed, 56 insertions(+), 43 deletions(-) diff --git a/composer.json b/composer.json index 90d9a29..1d0a495 100644 --- a/composer.json +++ b/composer.json @@ -8,7 +8,7 @@ "webmozart/assert": "^1.9" }, "require-dev": { - "doctrine/coding-standard": "^10.0", + "doctrine/coding-standard": "^11.1", "phpunit/phpunit": "^9.5", "psalm/plugin-phpunit": "^0.18.4", "symfony/polyfill-php80": "^1.22", diff --git a/composer.lock b/composer.lock index 95c1ff9..d7bf4e4 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": "74a6e173509992ed0538c70005c17f72", + "content-hash": "89aa5665256f38d40e6d7fe430f46878", "packages": [ { "name": "webmozart/assert", @@ -525,35 +525,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/", @@ -569,7 +572,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", @@ -593,10 +596,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", @@ -637,22 +640,22 @@ }, { "name": "doctrine/coding-standard", - "version": "10.0.0", + "version": "11.1.0", "source": { "type": "git", "url": "https://github.com/doctrine/coding-standard.git", - "reference": "7903671d7d33c231c8921058b7c14b8f57cbacb7" + "reference": "4bcfa9d922e13cb3b8078d4752e3ba276f959c88" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/coding-standard/zipball/7903671d7d33c231c8921058b7c14b8f57cbacb7", - "reference": "7903671d7d33c231c8921058b7c14b8f57cbacb7", + "url": "https://api.github.com/repos/doctrine/coding-standard/zipball/4bcfa9d922e13cb3b8078d4752e3ba276f959c88", + "reference": "4bcfa9d922e13cb3b8078d4752e3ba276f959c88", "shasum": "" }, "require": { - "dealerdirect/phpcodesniffer-composer-installer": "^0.6.2 || ^0.7", + "dealerdirect/phpcodesniffer-composer-installer": "^0.6.2 || ^0.7 || ^1.0.0", "php": "^7.2 || ^8.0", - "slevomat/coding-standard": "^8.2", + "slevomat/coding-standard": "^8.6.2", "squizlabs/php_codesniffer": "^3.7" }, "type": "phpcodesniffer-standard", @@ -677,6 +680,7 @@ "code", "coding", "cs", + "dev", "doctrine", "rules", "sniffer", @@ -686,9 +690,9 @@ ], "support": { "issues": "https://github.com/doctrine/coding-standard/issues", - "source": "https://github.com/doctrine/coding-standard/tree/10.0.0" + "source": "https://github.com/doctrine/coding-standard/tree/11.1.0" }, - "time": "2022-08-26T10:53:05+00:00" + "time": "2023-01-06T09:12:24+00:00" }, { "name": "doctrine/instantiator", @@ -1366,16 +1370,16 @@ }, { "name": "phpstan/phpdoc-parser", - "version": "1.8.0", + "version": "1.18.1", "source": { "type": "git", "url": "https://github.com/phpstan/phpdoc-parser.git", - "reference": "8dd908dd6156e974b9a0f8bb4cd5ad0707830f04" + "reference": "22dcdfd725ddf99583bfe398fc624ad6c5004a0f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/8dd908dd6156e974b9a0f8bb4cd5ad0707830f04", - "reference": "8dd908dd6156e974b9a0f8bb4cd5ad0707830f04", + "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/22dcdfd725ddf99583bfe398fc624ad6c5004a0f", + "reference": "22dcdfd725ddf99583bfe398fc624ad6c5004a0f", "shasum": "" }, "require": { @@ -1405,9 +1409,9 @@ "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.8.0" + "source": "https://github.com/phpstan/phpdoc-parser/tree/1.18.1" }, - "time": "2022-09-04T18:59:06+00:00" + "time": "2023-04-07T11:51:11+00:00" }, { "name": "phpunit/php-code-coverage", @@ -2953,32 +2957,32 @@ }, { "name": "slevomat/coding-standard", - "version": "8.5.1", + "version": "8.10.0", "source": { "type": "git", "url": "https://github.com/slevomat/coding-standard.git", - "reference": "971f489404350bf4608b7e59381e603c47700366" + "reference": "c4e213e6e57f741451a08e68ef838802eec92287" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/slevomat/coding-standard/zipball/971f489404350bf4608b7e59381e603c47700366", - "reference": "971f489404350bf4608b7e59381e603c47700366", + "url": "https://api.github.com/repos/slevomat/coding-standard/zipball/c4e213e6e57f741451a08e68ef838802eec92287", + "reference": "c4e213e6e57f741451a08e68ef838802eec92287", "shasum": "" }, "require": { - "dealerdirect/phpcodesniffer-composer-installer": "^0.6.2 || ^0.7", + "dealerdirect/phpcodesniffer-composer-installer": "^0.6.2 || ^0.7 || ^1.0", "php": "^7.2 || ^8.0", - "phpstan/phpdoc-parser": ">=1.7.0 <1.9.0", + "phpstan/phpdoc-parser": ">=1.18.0 <1.19.0", "squizlabs/php_codesniffer": "^3.7.1" }, "require-dev": { "phing/phing": "2.17.4", "php-parallel-lint/php-parallel-lint": "1.3.2", - "phpstan/phpstan": "1.4.10|1.8.5", - "phpstan/phpstan-deprecation-rules": "1.0.0", - "phpstan/phpstan-phpunit": "1.0.0|1.1.1", - "phpstan/phpstan-strict-rules": "1.4.3", - "phpunit/phpunit": "7.5.20|8.5.21|9.5.24" + "phpstan/phpstan": "1.4.10|1.10.11", + "phpstan/phpstan-deprecation-rules": "1.1.3", + "phpstan/phpstan-phpunit": "1.0.0|1.3.11", + "phpstan/phpstan-strict-rules": "1.5.1", + "phpunit/phpunit": "7.5.20|8.5.21|9.6.6|10.0.19" }, "type": "phpcodesniffer-standard", "extra": { @@ -2988,7 +2992,7 @@ }, "autoload": { "psr-4": { - "SlevomatCodingStandard\\": "SlevomatCodingStandard" + "SlevomatCodingStandard\\": "SlevomatCodingStandard/" } }, "notification-url": "https://packagist.org/downloads/", @@ -2996,9 +3000,13 @@ "MIT" ], "description": "Slevomat Coding Standard for PHP_CodeSniffer complements Consistence Coding Standard by providing sniffs with additional checks.", + "keywords": [ + "dev", + "phpcs" + ], "support": { "issues": "https://github.com/slevomat/coding-standard/issues", - "source": "https://github.com/slevomat/coding-standard/tree/8.5.1" + "source": "https://github.com/slevomat/coding-standard/tree/8.10.0" }, "funding": [ { @@ -3010,7 +3018,7 @@ "type": "tidelift" } ], - "time": "2022-09-23T05:34:53+00:00" + "time": "2023-04-10T07:39:29+00:00" }, { "name": "spatie/array-to-xml", diff --git a/src/MappedErrorCollection.php b/src/MappedErrorCollection.php index 8dd5a37..0ae58ef 100644 --- a/src/MappedErrorCollection.php +++ b/src/MappedErrorCollection.php @@ -20,6 +20,7 @@ private function __construct(MapInterface $errors) { Assert::false($errors->isEmpty(), 'Provided errors must not be empty!'); $this->errors = $errors; + parent::__construct('There were runtime errors while executing multiple tasks.'); } diff --git a/src/OrderedErrorCollection.php b/src/OrderedErrorCollection.php index cf2aafb..7ab393c 100644 --- a/src/OrderedErrorCollection.php +++ b/src/OrderedErrorCollection.php @@ -20,6 +20,7 @@ private function __construct(OrderedListInterface $errors) { Assert::false($errors->isEmpty(), 'Provided errors must not be empty!'); $this->errors = $errors; + parent::__construct('There were runtime errors while executing multiple tasks.'); } diff --git a/tests/GenericMapTest.php b/tests/GenericMapTest.php index 3154d1c..bb7f6e8 100644 --- a/tests/GenericMapTest.php +++ b/tests/GenericMapTest.php @@ -123,6 +123,7 @@ static function (string $key): string { protected function setUp(): void { parent::setUp(); + $this->iteration = 0; } diff --git a/tests/GenericOrderedListTest.php b/tests/GenericOrderedListTest.php index cd17dbb..d99f03e 100644 --- a/tests/GenericOrderedListTest.php +++ b/tests/GenericOrderedListTest.php @@ -43,6 +43,7 @@ final class GenericOrderedListTest extends TestCase protected function setUp(): void { parent::setUp(); + $this->iteration = 0; } diff --git a/tests/TypedArrayFactoryTest.php b/tests/TypedArrayFactoryTest.php index a76da43..e5db4aa 100644 --- a/tests/TypedArrayFactoryTest.php +++ b/tests/TypedArrayFactoryTest.php @@ -13,6 +13,7 @@ final class TypedArrayFactoryTest extends TestCase protected function setUp(): void { parent::setUp(); + $this->factory = new TypedArrayFactory(); }