diff --git a/CHANGELOG-WIP.md b/CHANGELOG-WIP.md index 772eff76579..c16279b7b5a 100644 --- a/CHANGELOG-WIP.md +++ b/CHANGELOG-WIP.md @@ -55,6 +55,7 @@ - `craft\helpers\Component::iconSvg()` now namespaces the SVG contents, and adds `aria-hidden="true"`. ([#11703](https://github.com/craftcms/cms/pull/11703)) - `craft\services\Search::EVENT_BEFORE_INDEX_KEYWORDS` is now cancellable by setting `$event->isValid` to `false`. ([#11705](https://github.com/craftcms/cms/discussions/11705)) - `checkboxSelect` inputs without `showAllOption: true` now post an empty value if no options were selected. ([#11748](https://github.com/craftcms/cms/issues/11748)) +- Updated Yii to 2.0.46. ### Deprecated - Deprecated `craft\base\Element::EVENT_AUTHORIZE_CREATE_DRAFTS`. `craft\services\Elements::EVENT_AUTHORIZE_CREATE_DRAFTS` should be used instead. diff --git a/composer.json b/composer.json index e46ab345aef..8367c2f80e4 100644 --- a/composer.json +++ b/composer.json @@ -59,7 +59,7 @@ "twig/twig": "~3.3.0", "voku/stringy": "^6.4.0", "webonyx/graphql-php": "~14.11.5", - "yiisoft/yii2": "~2.0.45.0", + "yiisoft/yii2": "~2.0.46.0", "yiisoft/yii2-debug": "~2.1.19.0", "yiisoft/yii2-queue": "~2.3.2", "yiisoft/yii2-symfonymailer": "^2.0.0" diff --git a/composer.lock b/composer.lock index 72d13d43f3c..bcdd91ac470 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": "0f88a9a2a26e00bfe23ca6d019962894", + "content-hash": "3efd06bb5b8d1b6932142244d539eeb5", "packages": [ { "name": "cebe/markdown", @@ -938,26 +938,27 @@ }, { "name": "doctrine/collections", - "version": "1.6.8", + "version": "1.7.2", "source": { "type": "git", "url": "https://github.com/doctrine/collections.git", - "reference": "1958a744696c6bb3bb0d28db2611dc11610e78af" + "reference": "3fe77330f5591108bbf1315da7377a7e704ed8a0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/collections/zipball/1958a744696c6bb3bb0d28db2611dc11610e78af", - "reference": "1958a744696c6bb3bb0d28db2611dc11610e78af", + "url": "https://api.github.com/repos/doctrine/collections/zipball/3fe77330f5591108bbf1315da7377a7e704ed8a0", + "reference": "3fe77330f5591108bbf1315da7377a7e704ed8a0", "shasum": "" }, "require": { + "doctrine/deprecations": "^0.5.3 || ^1", "php": "^7.1.3 || ^8.0" }, "require-dev": { - "doctrine/coding-standard": "^9.0", - "phpstan/phpstan": "^0.12", + "doctrine/coding-standard": "^9.0 || ^10.0", + "phpstan/phpstan": "^1.4.8", "phpunit/phpunit": "^7.5 || ^8.5 || ^9.1.5", - "vimeo/psalm": "^4.2.1" + "vimeo/psalm": "^4.22" }, "type": "library", "autoload": { @@ -1001,9 +1002,52 @@ ], "support": { "issues": "https://github.com/doctrine/collections/issues", - "source": "https://github.com/doctrine/collections/tree/1.6.8" + "source": "https://github.com/doctrine/collections/tree/1.7.2" + }, + "time": "2022-08-27T16:08:58+00:00" + }, + { + "name": "doctrine/deprecations", + "version": "v1.0.0", + "source": { + "type": "git", + "url": "https://github.com/doctrine/deprecations.git", + "reference": "0e2a4f1f8cdfc7a92ec3b01c9334898c806b30de" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/deprecations/zipball/0e2a4f1f8cdfc7a92ec3b01c9334898c806b30de", + "reference": "0e2a4f1f8cdfc7a92ec3b01c9334898c806b30de", + "shasum": "" + }, + "require": { + "php": "^7.1|^8.0" + }, + "require-dev": { + "doctrine/coding-standard": "^9", + "phpunit/phpunit": "^7.5|^8.5|^9.5", + "psr/log": "^1|^2|^3" + }, + "suggest": { + "psr/log": "Allows logging deprecations via PSR-3 logger implementation" + }, + "type": "library", + "autoload": { + "psr-4": { + "Doctrine\\Deprecations\\": "lib/Doctrine/Deprecations" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "A small layer on top of trigger_error(E_USER_DEPRECATED) or PSR-3 logging with options to disable all deprecations or selectively for packages.", + "homepage": "https://www.doctrine-project.org/", + "support": { + "issues": "https://github.com/doctrine/deprecations/issues", + "source": "https://github.com/doctrine/deprecations/tree/v1.0.0" }, - "time": "2021-08-10T18:51:53+00:00" + "time": "2022-05-02T15:47:09+00:00" }, { "name": "doctrine/lexer", @@ -1289,16 +1333,16 @@ }, { "name": "guzzlehttp/guzzle", - "version": "7.4.5", + "version": "7.5.0", "source": { "type": "git", "url": "https://github.com/guzzle/guzzle.git", - "reference": "1dd98b0564cb3f6bd16ce683cb755f94c10fbd82" + "reference": "b50a2a1251152e43f6a37f0fa053e730a67d25ba" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/guzzle/zipball/1dd98b0564cb3f6bd16ce683cb755f94c10fbd82", - "reference": "1dd98b0564cb3f6bd16ce683cb755f94c10fbd82", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/b50a2a1251152e43f6a37f0fa053e730a67d25ba", + "reference": "b50a2a1251152e43f6a37f0fa053e730a67d25ba", "shasum": "" }, "require": { @@ -1313,10 +1357,10 @@ "psr/http-client-implementation": "1.0" }, "require-dev": { - "bamarni/composer-bin-plugin": "^1.4.1", + "bamarni/composer-bin-plugin": "^1.8.1", "ext-curl": "*", "php-http/client-integration-tests": "^3.0", - "phpunit/phpunit": "^8.5.5 || ^9.3.5", + "phpunit/phpunit": "^8.5.29 || ^9.5.23", "psr/log": "^1.1 || ^2.0 || ^3.0" }, "suggest": { @@ -1326,8 +1370,12 @@ }, "type": "library", "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + }, "branch-alias": { - "dev-master": "7.4-dev" + "dev-master": "7.5-dev" } }, "autoload": { @@ -1393,7 +1441,7 @@ ], "support": { "issues": "https://github.com/guzzle/guzzle/issues", - "source": "https://github.com/guzzle/guzzle/tree/7.4.5" + "source": "https://github.com/guzzle/guzzle/tree/7.5.0" }, "funding": [ { @@ -1409,20 +1457,20 @@ "type": "tidelift" } ], - "time": "2022-06-20T22:16:13+00:00" + "time": "2022-08-28T15:39:27+00:00" }, { "name": "guzzlehttp/promises", - "version": "1.5.1", + "version": "1.5.2", "source": { "type": "git", "url": "https://github.com/guzzle/promises.git", - "reference": "fe752aedc9fd8fcca3fe7ad05d419d32998a06da" + "reference": "b94b2807d85443f9719887892882d0329d1e2598" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/promises/zipball/fe752aedc9fd8fcca3fe7ad05d419d32998a06da", - "reference": "fe752aedc9fd8fcca3fe7ad05d419d32998a06da", + "url": "https://api.github.com/repos/guzzle/promises/zipball/b94b2807d85443f9719887892882d0329d1e2598", + "reference": "b94b2807d85443f9719887892882d0329d1e2598", "shasum": "" }, "require": { @@ -1477,7 +1525,7 @@ ], "support": { "issues": "https://github.com/guzzle/promises/issues", - "source": "https://github.com/guzzle/promises/tree/1.5.1" + "source": "https://github.com/guzzle/promises/tree/1.5.2" }, "funding": [ { @@ -1493,20 +1541,20 @@ "type": "tidelift" } ], - "time": "2021-10-22T20:56:57+00:00" + "time": "2022-08-28T14:55:35+00:00" }, { "name": "guzzlehttp/psr7", - "version": "2.4.0", + "version": "2.4.1", "source": { "type": "git", "url": "https://github.com/guzzle/psr7.git", - "reference": "13388f00956b1503577598873fffb5ae994b5737" + "reference": "69568e4293f4fa993f3b0e51c9723e1e17c41379" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/psr7/zipball/13388f00956b1503577598873fffb5ae994b5737", - "reference": "13388f00956b1503577598873fffb5ae994b5737", + "url": "https://api.github.com/repos/guzzle/psr7/zipball/69568e4293f4fa993f3b0e51c9723e1e17c41379", + "reference": "69568e4293f4fa993f3b0e51c9723e1e17c41379", "shasum": "" }, "require": { @@ -1520,15 +1568,19 @@ "psr/http-message-implementation": "1.0" }, "require-dev": { - "bamarni/composer-bin-plugin": "^1.4.1", + "bamarni/composer-bin-plugin": "^1.8.1", "http-interop/http-factory-tests": "^0.9", - "phpunit/phpunit": "^8.5.8 || ^9.3.10" + "phpunit/phpunit": "^8.5.29 || ^9.5.23" }, "suggest": { "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses" }, "type": "library", "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + }, "branch-alias": { "dev-master": "2.4-dev" } @@ -1592,7 +1644,7 @@ ], "support": { "issues": "https://github.com/guzzle/psr7/issues", - "source": "https://github.com/guzzle/psr7/tree/2.4.0" + "source": "https://github.com/guzzle/psr7/tree/2.4.1" }, "funding": [ { @@ -1608,20 +1660,20 @@ "type": "tidelift" } ], - "time": "2022-06-20T21:43:11+00:00" + "time": "2022-08-28T14:45:39+00:00" }, { "name": "illuminate/collections", - "version": "v9.24.0", + "version": "v9.26.1", "source": { "type": "git", "url": "https://github.com/illuminate/collections.git", - "reference": "f9eddfa8599dd224df618b08b2502720027d1f10" + "reference": "3bda212d2c245b3261cd9af690dfd47d9878cebf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/collections/zipball/f9eddfa8599dd224df618b08b2502720027d1f10", - "reference": "f9eddfa8599dd224df618b08b2502720027d1f10", + "url": "https://api.github.com/repos/illuminate/collections/zipball/3bda212d2c245b3261cd9af690dfd47d9878cebf", + "reference": "3bda212d2c245b3261cd9af690dfd47d9878cebf", "shasum": "" }, "require": { @@ -1663,11 +1715,11 @@ "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" }, - "time": "2022-08-09T13:26:41+00:00" + "time": "2022-08-22T14:29:59+00:00" }, { "name": "illuminate/conditionable", - "version": "v9.24.0", + "version": "v9.26.1", "source": { "type": "git", "url": "https://github.com/illuminate/conditionable.git", @@ -1713,16 +1765,16 @@ }, { "name": "illuminate/contracts", - "version": "v9.24.0", + "version": "v9.26.1", "source": { "type": "git", "url": "https://github.com/illuminate/contracts.git", - "reference": "ac7f63520e18721f214e80fa7e8f0a5c77ed2719" + "reference": "0d1dd1a7e947072319f2e641cc50081219606502" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/contracts/zipball/ac7f63520e18721f214e80fa7e8f0a5c77ed2719", - "reference": "ac7f63520e18721f214e80fa7e8f0a5c77ed2719", + "url": "https://api.github.com/repos/illuminate/contracts/zipball/0d1dd1a7e947072319f2e641cc50081219606502", + "reference": "0d1dd1a7e947072319f2e641cc50081219606502", "shasum": "" }, "require": { @@ -1757,11 +1809,11 @@ "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" }, - "time": "2022-07-26T14:41:38+00:00" + "time": "2022-08-18T14:18:13+00:00" }, { "name": "illuminate/macroable", - "version": "v9.24.0", + "version": "v9.26.1", "source": { "type": "git", "url": "https://github.com/illuminate/macroable.git", @@ -1993,16 +2045,16 @@ }, { "name": "moneyphp/money", - "version": "v4.0.4", + "version": "v4.0.5", "source": { "type": "git", "url": "https://github.com/moneyphp/money.git", - "reference": "efe904ab6109d87046eb624d5dff7d270fd0cca5" + "reference": "cee58435ff82a5de252c516e6a31beb674898985" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/moneyphp/money/zipball/efe904ab6109d87046eb624d5dff7d270fd0cca5", - "reference": "efe904ab6109d87046eb624d5dff7d270fd0cca5", + "url": "https://api.github.com/repos/moneyphp/money/zipball/cee58435ff82a5de252c516e6a31beb674898985", + "reference": "cee58435ff82a5de252c516e6a31beb674898985", "shasum": "" }, "require": { @@ -2075,9 +2127,9 @@ ], "support": { "issues": "https://github.com/moneyphp/money/issues", - "source": "https://github.com/moneyphp/money/tree/v4.0.4" + "source": "https://github.com/moneyphp/money/tree/v4.0.5" }, - "time": "2022-05-18T19:32:15+00:00" + "time": "2022-08-11T09:12:20+00:00" }, { "name": "monolog/monolog", @@ -3167,16 +3219,16 @@ }, { "name": "symfony/console", - "version": "v5.4.11", + "version": "v5.4.12", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "535846c7ee6bc4dd027ca0d93220601456734b10" + "reference": "c072aa8f724c3af64e2c7a96b796a4863d24dba1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/535846c7ee6bc4dd027ca0d93220601456734b10", - "reference": "535846c7ee6bc4dd027ca0d93220601456734b10", + "url": "https://api.github.com/repos/symfony/console/zipball/c072aa8f724c3af64e2c7a96b796a4863d24dba1", + "reference": "c072aa8f724c3af64e2c7a96b796a4863d24dba1", "shasum": "" }, "require": { @@ -3246,7 +3298,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v5.4.11" + "source": "https://github.com/symfony/console/tree/v5.4.12" }, "funding": [ { @@ -3262,7 +3314,7 @@ "type": "tidelift" } ], - "time": "2022-07-22T10:42:43+00:00" + "time": "2022-08-17T13:18:05+00:00" }, { "name": "symfony/deprecation-contracts", @@ -3497,16 +3549,16 @@ }, { "name": "symfony/filesystem", - "version": "v6.0.11", + "version": "v6.0.12", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "33787a6b6e055245d5710697dfc4a9a2b896c032" + "reference": "a36b782dc19dce3ab7e47d4b92b13cefb3511da3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/33787a6b6e055245d5710697dfc4a9a2b896c032", - "reference": "33787a6b6e055245d5710697dfc4a9a2b896c032", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/a36b782dc19dce3ab7e47d4b92b13cefb3511da3", + "reference": "a36b782dc19dce3ab7e47d4b92b13cefb3511da3", "shasum": "" }, "require": { @@ -3540,7 +3592,7 @@ "description": "Provides basic utilities for the filesystem", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/filesystem/tree/v6.0.11" + "source": "https://github.com/symfony/filesystem/tree/v6.0.12" }, "funding": [ { @@ -3556,7 +3608,7 @@ "type": "tidelift" } ], - "time": "2022-07-20T14:06:08+00:00" + "time": "2022-08-02T16:01:06+00:00" }, { "name": "symfony/finder", @@ -3623,16 +3675,16 @@ }, { "name": "symfony/http-client", - "version": "v6.0.11", + "version": "v6.0.12", "source": { "type": "git", "url": "https://github.com/symfony/http-client.git", - "reference": "49bef7df70f84a4f5d516eb268963779ca80320d" + "reference": "411f73ad1a797f327d100d27fa5d715b947a8272" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-client/zipball/49bef7df70f84a4f5d516eb268963779ca80320d", - "reference": "49bef7df70f84a4f5d516eb268963779ca80320d", + "url": "https://api.github.com/repos/symfony/http-client/zipball/411f73ad1a797f327d100d27fa5d715b947a8272", + "reference": "411f73ad1a797f327d100d27fa5d715b947a8272", "shasum": "" }, "require": { @@ -3687,7 +3739,7 @@ "description": "Provides powerful methods to fetch HTTP resources synchronously or asynchronously", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/http-client/tree/v6.0.11" + "source": "https://github.com/symfony/http-client/tree/v6.0.12" }, "funding": [ { @@ -3703,7 +3755,7 @@ "type": "tidelift" } ], - "time": "2022-07-28T13:39:17+00:00" + "time": "2022-08-02T16:01:06+00:00" }, { "name": "symfony/http-client-contracts", @@ -3785,16 +3837,16 @@ }, { "name": "symfony/mailer", - "version": "v6.0.11", + "version": "v6.0.12", "source": { "type": "git", "url": "https://github.com/symfony/mailer.git", - "reference": "4a787a257addd412eac53157d459f87f8e335037" + "reference": "45aad5f8cfb481130e83dc4cb867c0f576182ea9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/mailer/zipball/4a787a257addd412eac53157d459f87f8e335037", - "reference": "4a787a257addd412eac53157d459f87f8e335037", + "url": "https://api.github.com/repos/symfony/mailer/zipball/45aad5f8cfb481130e83dc4cb867c0f576182ea9", + "reference": "45aad5f8cfb481130e83dc4cb867c0f576182ea9", "shasum": "" }, "require": { @@ -3839,7 +3891,7 @@ "description": "Helps sending emails", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/mailer/tree/v6.0.11" + "source": "https://github.com/symfony/mailer/tree/v6.0.12" }, "funding": [ { @@ -3855,20 +3907,20 @@ "type": "tidelift" } ], - "time": "2022-07-27T15:50:26+00:00" + "time": "2022-08-03T05:17:36+00:00" }, { "name": "symfony/mime", - "version": "v6.0.11", + "version": "v6.0.12", "source": { "type": "git", "url": "https://github.com/symfony/mime.git", - "reference": "c6f16f6789587348f6518b193d3499c0e1f5e5c5" + "reference": "02a11577f2f9522c783179712bdf6d2d3cb9fc1d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/mime/zipball/c6f16f6789587348f6518b193d3499c0e1f5e5c5", - "reference": "c6f16f6789587348f6518b193d3499c0e1f5e5c5", + "url": "https://api.github.com/repos/symfony/mime/zipball/02a11577f2f9522c783179712bdf6d2d3cb9fc1d", + "reference": "02a11577f2f9522c783179712bdf6d2d3cb9fc1d", "shasum": "" }, "require": { @@ -3920,7 +3972,7 @@ "mime-type" ], "support": { - "source": "https://github.com/symfony/mime/tree/v6.0.11" + "source": "https://github.com/symfony/mime/tree/v6.0.12" }, "funding": [ { @@ -3936,7 +3988,7 @@ "type": "tidelift" } ], - "time": "2022-07-20T13:45:53+00:00" + "time": "2022-08-19T14:25:15+00:00" }, { "name": "symfony/polyfill-ctype", @@ -4822,16 +4874,16 @@ }, { "name": "symfony/string", - "version": "v6.0.11", + "version": "v6.0.12", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "042b6bf0f6ccca6d456a0572eb788cfb8b1ff809" + "reference": "3a975ba1a1508ad97df45f4590f55b7cc4c1a0a0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/042b6bf0f6ccca6d456a0572eb788cfb8b1ff809", - "reference": "042b6bf0f6ccca6d456a0572eb788cfb8b1ff809", + "url": "https://api.github.com/repos/symfony/string/zipball/3a975ba1a1508ad97df45f4590f55b7cc4c1a0a0", + "reference": "3a975ba1a1508ad97df45f4590f55b7cc4c1a0a0", "shasum": "" }, "require": { @@ -4887,7 +4939,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v6.0.11" + "source": "https://github.com/symfony/string/tree/v6.0.12" }, "funding": [ { @@ -4903,7 +4955,7 @@ "type": "tidelift" } ], - "time": "2022-07-27T15:50:26+00:00" + "time": "2022-08-12T18:05:20+00:00" }, { "name": "symfony/var-dumper", @@ -4995,16 +5047,16 @@ }, { "name": "symfony/yaml", - "version": "v5.4.11", + "version": "v5.4.12", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", - "reference": "05d4ea560f3402c6c116afd99fdc66e60eda227e" + "reference": "7a3aa21ac8ab1a96cc6de5bbcab4bc9fc943b18c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/05d4ea560f3402c6c116afd99fdc66e60eda227e", - "reference": "05d4ea560f3402c6c116afd99fdc66e60eda227e", + "url": "https://api.github.com/repos/symfony/yaml/zipball/7a3aa21ac8ab1a96cc6de5bbcab4bc9fc943b18c", + "reference": "7a3aa21ac8ab1a96cc6de5bbcab4bc9fc943b18c", "shasum": "" }, "require": { @@ -5050,7 +5102,7 @@ "description": "Loads and dumps YAML files", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/yaml/tree/v5.4.11" + "source": "https://github.com/symfony/yaml/tree/v5.4.12" }, "funding": [ { @@ -5066,7 +5118,7 @@ "type": "tidelift" } ], - "time": "2022-06-27T16:58:25+00:00" + "time": "2022-08-02T15:52:22+00:00" }, { "name": "theiconic/name-parser", @@ -5164,6 +5216,7 @@ "issues": "https://github.com/true/php-punycode/issues", "source": "https://github.com/true/php-punycode/tree/master" }, + "abandoned": true, "time": "2016-11-16T10:37:54+00:00" }, { @@ -5560,16 +5613,16 @@ }, { "name": "voku/portable-utf8", - "version": "6.0.4", + "version": "6.0.5", "source": { "type": "git", "url": "https://github.com/voku/portable-utf8.git", - "reference": "f6c78e492520115bb2d947c3a0d90a2c6b7a60a8" + "reference": "6c764c2c4fcad451a0f6622260a4934cfea08aa4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/voku/portable-utf8/zipball/f6c78e492520115bb2d947c3a0d90a2c6b7a60a8", - "reference": "f6c78e492520115bb2d947c3a0d90a2c6b7a60a8", + "url": "https://api.github.com/repos/voku/portable-utf8/zipball/6c764c2c4fcad451a0f6622260a4934cfea08aa4", + "reference": "6c764c2c4fcad451a0f6622260a4934cfea08aa4", "shasum": "" }, "require": { @@ -5631,7 +5684,7 @@ ], "support": { "issues": "https://github.com/voku/portable-utf8/issues", - "source": "https://github.com/voku/portable-utf8/tree/6.0.4" + "source": "https://github.com/voku/portable-utf8/tree/6.0.5" }, "funding": [ { @@ -5655,7 +5708,7 @@ "type": "tidelift" } ], - "time": "2022-03-08T17:04:59+00:00" + "time": "2022-08-10T12:32:31+00:00" }, { "name": "voku/stop-words", @@ -6007,16 +6060,16 @@ }, { "name": "yiisoft/yii2", - "version": "2.0.45", + "version": "2.0.46", "source": { "type": "git", "url": "https://github.com/yiisoft/yii2-framework.git", - "reference": "e2223d4085e5612aa616635f8fcaf478607f62e8" + "reference": "d73259c3bc886648a6875109f9f09cddeff03708" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/yiisoft/yii2-framework/zipball/e2223d4085e5612aa616635f8fcaf478607f62e8", - "reference": "e2223d4085e5612aa616635f8fcaf478607f62e8", + "url": "https://api.github.com/repos/yiisoft/yii2-framework/zipball/d73259c3bc886648a6875109f9f09cddeff03708", + "reference": "d73259c3bc886648a6875109f9f09cddeff03708", "shasum": "" }, "require": { @@ -6125,7 +6178,7 @@ "type": "tidelift" } ], - "time": "2022-02-11T13:12:40+00:00" + "time": "2022-08-18T22:18:45+00:00" }, { "name": "yiisoft/yii2-composer", @@ -6541,16 +6594,16 @@ }, { "name": "codeception/codeception", - "version": "4.2.1", + "version": "4.2.2", "source": { "type": "git", "url": "https://github.com/Codeception/Codeception.git", - "reference": "77b3e2003fd4446b35826cb9dc397129c521c888" + "reference": "b88014f3348c93f3df99dc6d0967b0dbfa804474" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Codeception/Codeception/zipball/77b3e2003fd4446b35826cb9dc397129c521c888", - "reference": "77b3e2003fd4446b35826cb9dc397129c521c888", + "url": "https://api.github.com/repos/Codeception/Codeception/zipball/b88014f3348c93f3df99dc6d0967b0dbfa804474", + "reference": "b88014f3348c93f3df99dc6d0967b0dbfa804474", "shasum": "" }, "require": { @@ -6627,7 +6680,7 @@ ], "support": { "issues": "https://github.com/Codeception/Codeception/issues", - "source": "https://github.com/Codeception/Codeception/tree/4.2.1" + "source": "https://github.com/Codeception/Codeception/tree/4.2.2" }, "funding": [ { @@ -6635,7 +6688,7 @@ "type": "open_collective" } ], - "time": "2022-06-22T06:18:59+00:00" + "time": "2022-08-13T13:28:25+00:00" }, { "name": "codeception/lib-asserts", @@ -7791,73 +7844,6 @@ ], "time": "2022-07-30T15:51:26+00:00" }, - { - "name": "phpspec/prophecy", - "version": "v1.15.0", - "source": { - "type": "git", - "url": "https://github.com/phpspec/prophecy.git", - "reference": "bbcd7380b0ebf3961ee21409db7b38bc31d69a13" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpspec/prophecy/zipball/bbcd7380b0ebf3961ee21409db7b38bc31d69a13", - "reference": "bbcd7380b0ebf3961ee21409db7b38bc31d69a13", - "shasum": "" - }, - "require": { - "doctrine/instantiator": "^1.2", - "php": "^7.2 || ~8.0, <8.2", - "phpdocumentor/reflection-docblock": "^5.2", - "sebastian/comparator": "^3.0 || ^4.0", - "sebastian/recursion-context": "^3.0 || ^4.0" - }, - "require-dev": { - "phpspec/phpspec": "^6.0 || ^7.0", - "phpunit/phpunit": "^8.0 || ^9.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.x-dev" - } - }, - "autoload": { - "psr-4": { - "Prophecy\\": "src/Prophecy" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Konstantin Kudryashov", - "email": "ever.zet@gmail.com", - "homepage": "http://everzet.com" - }, - { - "name": "Marcello Duarte", - "email": "marcello.duarte@gmail.com" - } - ], - "description": "Highly opinionated mocking framework for PHP 5.3+", - "homepage": "https://github.com/phpspec/prophecy", - "keywords": [ - "Double", - "Dummy", - "fake", - "mock", - "spy", - "stub" - ], - "support": { - "issues": "https://github.com/phpspec/prophecy/issues", - "source": "https://github.com/phpspec/prophecy/tree/v1.15.0" - }, - "time": "2021-12-08T12:19:24+00:00" - }, { "name": "phpstan/phpstan", "version": "1.8.2", @@ -7919,23 +7905,23 @@ }, { "name": "phpunit/php-code-coverage", - "version": "9.2.15", + "version": "9.2.16", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "2e9da11878c4202f97915c1cb4bb1ca318a63f5f" + "reference": "2593003befdcc10db5e213f9f28814f5aa8ac073" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/2e9da11878c4202f97915c1cb4bb1ca318a63f5f", - "reference": "2e9da11878c4202f97915c1cb4bb1ca318a63f5f", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/2593003befdcc10db5e213f9f28814f5aa8ac073", + "reference": "2593003befdcc10db5e213f9f28814f5aa8ac073", "shasum": "" }, "require": { "ext-dom": "*", "ext-libxml": "*", "ext-xmlwriter": "*", - "nikic/php-parser": "^4.13.0", + "nikic/php-parser": "^4.14", "php": ">=7.3", "phpunit/php-file-iterator": "^3.0.3", "phpunit/php-text-template": "^2.0.2", @@ -7984,7 +7970,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", - "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.15" + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.16" }, "funding": [ { @@ -7992,7 +7978,7 @@ "type": "github" } ], - "time": "2022-03-07T09:28:20+00:00" + "time": "2022-08-20T05:26:47+00:00" }, { "name": "phpunit/php-file-iterator", @@ -8237,16 +8223,16 @@ }, { "name": "phpunit/phpunit", - "version": "9.5.21", + "version": "9.5.24", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "0e32b76be457de00e83213528f6bb37e2a38fcb1" + "reference": "d0aa6097bef9fd42458a9b3c49da32c6ce6129c5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/0e32b76be457de00e83213528f6bb37e2a38fcb1", - "reference": "0e32b76be457de00e83213528f6bb37e2a38fcb1", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/d0aa6097bef9fd42458a9b3c49da32c6ce6129c5", + "reference": "d0aa6097bef9fd42458a9b3c49da32c6ce6129c5", "shasum": "" }, "require": { @@ -8261,7 +8247,6 @@ "phar-io/manifest": "^2.0.3", "phar-io/version": "^3.0.2", "php": ">=7.3", - "phpspec/prophecy": "^1.12.1", "phpunit/php-code-coverage": "^9.2.13", "phpunit/php-file-iterator": "^3.0.5", "phpunit/php-invoker": "^3.1.1", @@ -8276,12 +8261,9 @@ "sebastian/global-state": "^5.0.1", "sebastian/object-enumerator": "^4.0.3", "sebastian/resource-operations": "^3.0.3", - "sebastian/type": "^3.0", + "sebastian/type": "^3.1", "sebastian/version": "^3.0.2" }, - "require-dev": { - "phpspec/prophecy-phpunit": "^2.0.1" - }, "suggest": { "ext-soap": "*", "ext-xdebug": "*" @@ -8323,7 +8305,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", - "source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.21" + "source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.24" }, "funding": [ { @@ -8335,7 +8317,7 @@ "type": "github" } ], - "time": "2022-06-19T12:14:25+00:00" + "time": "2022-08-30T07:42:16+00:00" }, { "name": "sebastian/cli-parser", @@ -9194,16 +9176,16 @@ }, { "name": "sebastian/type", - "version": "3.0.0", + "version": "3.1.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/type.git", - "reference": "b233b84bc4465aff7b57cf1c4bc75c86d00d6dad" + "reference": "fb44e1cc6e557418387ad815780360057e40753e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/b233b84bc4465aff7b57cf1c4bc75c86d00d6dad", - "reference": "b233b84bc4465aff7b57cf1c4bc75c86d00d6dad", + "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/fb44e1cc6e557418387ad815780360057e40753e", + "reference": "fb44e1cc6e557418387ad815780360057e40753e", "shasum": "" }, "require": { @@ -9215,7 +9197,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "3.0-dev" + "dev-master": "3.1-dev" } }, "autoload": { @@ -9238,7 +9220,7 @@ "homepage": "https://github.com/sebastianbergmann/type", "support": { "issues": "https://github.com/sebastianbergmann/type/issues", - "source": "https://github.com/sebastianbergmann/type/tree/3.0.0" + "source": "https://github.com/sebastianbergmann/type/tree/3.1.0" }, "funding": [ { @@ -9246,7 +9228,7 @@ "type": "github" } ], - "time": "2022-03-15T09:54:48+00:00" + "time": "2022-08-29T06:55:37+00:00" }, { "name": "sebastian/version", @@ -9506,16 +9488,16 @@ }, { "name": "symfony/dom-crawler", - "version": "v5.4.11", + "version": "v5.4.12", "source": { "type": "git", "url": "https://github.com/symfony/dom-crawler.git", - "reference": "0b900ca5576ecd59e08c76127e616667cfe427a7" + "reference": "291c1e92281a09152dda089f782e23dedd34bd4f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/dom-crawler/zipball/0b900ca5576ecd59e08c76127e616667cfe427a7", - "reference": "0b900ca5576ecd59e08c76127e616667cfe427a7", + "url": "https://api.github.com/repos/symfony/dom-crawler/zipball/291c1e92281a09152dda089f782e23dedd34bd4f", + "reference": "291c1e92281a09152dda089f782e23dedd34bd4f", "shasum": "" }, "require": { @@ -9561,7 +9543,7 @@ "description": "Eases DOM navigation for HTML and XML documents", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/dom-crawler/tree/v5.4.11" + "source": "https://github.com/symfony/dom-crawler/tree/v5.4.12" }, "funding": [ { @@ -9577,7 +9559,7 @@ "type": "tidelift" } ], - "time": "2022-06-27T16:58:25+00:00" + "time": "2022-08-03T13:09:21+00:00" }, { "name": "symplify/easy-coding-standard", diff --git a/phpstan.neon b/phpstan.neon index f60c311a4a9..ca45ef8c3ee 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -30,7 +30,6 @@ parameters: - stubs/GraphQL/Type/Definition/ResolveInfo.stub - stubs/samdark/log/PsrTarget.stub - stubs/yii/base/Component.stub - - stubs/yii/base/ErrorHandler.stub - stubs/yii/base/Event.stub - stubs/yii/base/Module.stub - stubs/yii/BaseYii.stub @@ -40,13 +39,7 @@ parameters: - stubs/yii/di/ServiceLocator.stub - stubs/yii/helpers/BaseArrayHelper.stub - stubs/yii/validators/UniqueValidator.stub - - stubs/yii/validators/UrlValidator.stub - stubs/yii/validators/Validator.stub - - stubs/yii/web/AssetManager.stub - - stubs/yii/web/ErrorHandler.stub - - stubs/yii/web/Request.stub - - stubs/yii/web/Response.stub - - stubs/yii/web/User.stub earlyTerminatingMethodCalls: Craft: - dd diff --git a/src/controllers/AppController.php b/src/controllers/AppController.php index 722cbb87e93..e146e0db87c 100644 --- a/src/controllers/AppController.php +++ b/src/controllers/AppController.php @@ -252,7 +252,6 @@ public function actionMigrate(bool $applyProjectConfigChanges = false): Response $backupPath = $db->backup(); } catch (Throwable $e) { Craft::$app->disableMaintenanceMode(); - /** @phpstan-ignore-next-line */ throw new ServerErrorHttpException('Error backing up the database.', 0, $e); } } @@ -304,7 +303,6 @@ public function actionMigrate(bool $applyProjectConfigChanges = false): Response } Craft::$app->disableMaintenanceMode(); - /** @phpstan-ignore-next-line */ throw new ServerErrorHttpException($error, 0, $e); } diff --git a/src/controllers/CategoriesController.php b/src/controllers/CategoriesController.php index 2ed9bf16fc1..a1361cf6732 100644 --- a/src/controllers/CategoriesController.php +++ b/src/controllers/CategoriesController.php @@ -357,7 +357,6 @@ public function actionSaveCategory(): ?Response 'category' ); } catch (Throwable $e) { - /** @phpstan-ignore-next-line */ throw new ServerErrorHttpException(Craft::t('app', 'An error occurred when duplicating the category.'), 0, $e); } } diff --git a/src/controllers/ElementsController.php b/src/controllers/ElementsController.php index c10bafca25c..b55f0e18eb1 100644 --- a/src/controllers/ElementsController.php +++ b/src/controllers/ElementsController.php @@ -961,7 +961,6 @@ public function actionDuplicate(): ?Response 'type' => $element::lowerDisplayName(), ])); } catch (Throwable $e) { - /** @phpstan-ignore-next-line */ throw new ServerErrorHttpException('An error occurred when duplicating the element.', 0, $e); } diff --git a/src/controllers/EntriesController.php b/src/controllers/EntriesController.php index 29f3f4f53b3..1f571171ac8 100644 --- a/src/controllers/EntriesController.php +++ b/src/controllers/EntriesController.php @@ -276,7 +276,6 @@ public function actionSaveEntry(bool $duplicate = false): ?Response 'entry' ); } catch (Throwable $e) { - /** @phpstan-ignore-next-line */ throw new ServerErrorHttpException(Craft::t('app', 'An error occurred when duplicating the entry.'), 0, $e); } } diff --git a/stubs/yii/BaseYii.stub b/stubs/yii/BaseYii.stub index 184ee2793a9..cef6fd080e0 100644 --- a/stubs/yii/BaseYii.stub +++ b/stubs/yii/BaseYii.stub @@ -16,18 +16,8 @@ class BaseYii * @return T */ public static function createObject($type, array $params = []); - - /** - * @param \yii\log\Logger|null $logger - * @return void - */ - public static function setLogger($logger) {} } -namespace yii\log; - -class Logger {} - namespace craft\console; class Application {} diff --git a/stubs/yii/base/ErrorHandler.stub b/stubs/yii/base/ErrorHandler.stub deleted file mode 100644 index d6d0022cfce..00000000000 --- a/stubs/yii/base/ErrorHandler.stub +++ /dev/null @@ -1,18 +0,0 @@ -