diff --git a/composer.json b/composer.json index 6bff8dbeb..be04147d4 100644 --- a/composer.json +++ b/composer.json @@ -3,7 +3,7 @@ "php": ">=7.4", "justinrainbow/json-schema": "^5.2", "php-parallel-lint/php-parallel-lint": "1.4", - "phpstan/phpstan": "1.11.5", + "phpstan/phpstan": "1.11.6", "phpstan/phpstan-deprecation-rules": "1.2.0", "phpstan/phpstan-phpunit": "1.4.0", "phpstan/phpstan-strict-rules": "1.6.0", diff --git a/composer.lock b/composer.lock index ac4a03bf8..fc07bed6a 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": "456984b195f36d322a20a65df5ccfddb", + "content-hash": "ca9d9d2250dcca392dccc1528524ecd8", "packages": [ { "name": "beberlei/assert", @@ -648,16 +648,16 @@ }, { "name": "phpstan/phpstan", - "version": "1.11.5", + "version": "1.11.6", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan.git", - "reference": "490f0ae1c92b082f154681d7849aee776a7c1443" + "reference": "6ac78f1165346c83b4a753f7e4186d969c6ad0ee" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/490f0ae1c92b082f154681d7849aee776a7c1443", - "reference": "490f0ae1c92b082f154681d7849aee776a7c1443", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/6ac78f1165346c83b4a753f7e4186d969c6ad0ee", + "reference": "6ac78f1165346c83b4a753f7e4186d969c6ad0ee", "shasum": "" }, "require": { @@ -702,7 +702,7 @@ "type": "github" } ], - "time": "2024-06-17T15:10:54+00:00" + "time": "2024-07-01T15:33:06+00:00" }, { "name": "phpstan/phpstan-deprecation-rules", @@ -1249,16 +1249,16 @@ }, { "name": "symfony/polyfill-php80", - "version": "v1.29.0", + "version": "v1.30.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php80.git", - "reference": "87b68208d5c1188808dd7839ee1e6c8ec3b02f1b" + "reference": "77fa7995ac1b21ab60769b7323d600a991a90433" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/87b68208d5c1188808dd7839ee1e6c8ec3b02f1b", - "reference": "87b68208d5c1188808dd7839ee1e6c8ec3b02f1b", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/77fa7995ac1b21ab60769b7323d600a991a90433", + "reference": "77fa7995ac1b21ab60769b7323d600a991a90433", "shasum": "" }, "require": { @@ -1309,7 +1309,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php80/tree/v1.29.0" + "source": "https://github.com/symfony/polyfill-php80/tree/v1.30.0" }, "funding": [ { @@ -1325,7 +1325,7 @@ "type": "tidelift" } ], - "time": "2024-01-29T20:11:03+00:00" + "time": "2024-05-31T15:07:36+00:00" }, { "name": "symplify/phpstan-rules", diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index 019e19b40..a4bfc9041 100644 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -669,17 +669,17 @@ }, { "name": "phpstan/phpstan", - "version": "1.11.5", - "version_normalized": "1.11.5.0", + "version": "1.11.6", + "version_normalized": "1.11.6.0", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan.git", - "reference": "490f0ae1c92b082f154681d7849aee776a7c1443" + "reference": "6ac78f1165346c83b4a753f7e4186d969c6ad0ee" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/490f0ae1c92b082f154681d7849aee776a7c1443", - "reference": "490f0ae1c92b082f154681d7849aee776a7c1443", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/6ac78f1165346c83b4a753f7e4186d969c6ad0ee", + "reference": "6ac78f1165346c83b4a753f7e4186d969c6ad0ee", "shasum": "" }, "require": { @@ -688,7 +688,7 @@ "conflict": { "phpstan/phpstan-shim": "*" }, - "time": "2024-06-17T15:10:54+00:00", + "time": "2024-07-01T15:33:06+00:00", "bin": [ "phpstan", "phpstan.phar" @@ -887,17 +887,17 @@ }, { "name": "phpstan/phpstan-symfony", - "version": "1.4.4", - "version_normalized": "1.4.4.0", + "version": "1.4.5", + "version_normalized": "1.4.5.0", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan-symfony.git", - "reference": "bca27f1701fc1a297749e6c2a1e3da4462c1a6af" + "reference": "1bd7c339f622dfb5a1a97dcaf1a862734eabfa1d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan-symfony/zipball/bca27f1701fc1a297749e6c2a1e3da4462c1a6af", - "reference": "bca27f1701fc1a297749e6c2a1e3da4462c1a6af", + "url": "https://api.github.com/repos/phpstan/phpstan-symfony/zipball/1bd7c339f622dfb5a1a97dcaf1a862734eabfa1d", + "reference": "1bd7c339f622dfb5a1a97dcaf1a862734eabfa1d", "shasum": "" }, "require": { @@ -926,7 +926,7 @@ "symfony/serializer": "^5.4", "symfony/service-contracts": "^2.2.0" }, - "time": "2024-06-07T09:43:24+00:00", + "time": "2024-06-26T12:19:42+00:00", "type": "phpstan-extension", "extra": { "phpstan": { @@ -956,7 +956,7 @@ "description": "Symfony Framework extensions and rules for PHPStan", "support": { "issues": "https://github.com/phpstan/phpstan-symfony/issues", - "source": "https://github.com/phpstan/phpstan-symfony/tree/1.4.4" + "source": "https://github.com/phpstan/phpstan-symfony/tree/1.4.5" }, "install-path": "../phpstan/phpstan-symfony" }, @@ -1300,23 +1300,23 @@ }, { "name": "symfony/polyfill-php80", - "version": "v1.29.0", - "version_normalized": "1.29.0.0", + "version": "v1.30.0", + "version_normalized": "1.30.0.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php80.git", - "reference": "87b68208d5c1188808dd7839ee1e6c8ec3b02f1b" + "reference": "77fa7995ac1b21ab60769b7323d600a991a90433" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/87b68208d5c1188808dd7839ee1e6c8ec3b02f1b", - "reference": "87b68208d5c1188808dd7839ee1e6c8ec3b02f1b", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/77fa7995ac1b21ab60769b7323d600a991a90433", + "reference": "77fa7995ac1b21ab60769b7323d600a991a90433", "shasum": "" }, "require": { "php": ">=7.1" }, - "time": "2024-01-29T20:11:03+00:00", + "time": "2024-05-31T15:07:36+00:00", "type": "library", "extra": { "thanks": { @@ -1363,7 +1363,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php80/tree/v1.29.0" + "source": "https://github.com/symfony/polyfill-php80/tree/v1.30.0" }, "funding": [ { diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index 6744195ca..4c5a0d5f1 100644 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -3,7 +3,7 @@ 'name' => '__root__', 'pretty_version' => 'dev-main', 'version' => 'dev-main', - 'reference' => 'd3bc8606fdc6735202f6e6cf7bf7844e2676f0ea', + 'reference' => '609b794cf20226c36987c1edf5d3f68b065cec2b', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), @@ -13,7 +13,7 @@ '__root__' => array( 'pretty_version' => 'dev-main', 'version' => 'dev-main', - 'reference' => 'd3bc8606fdc6735202f6e6cf7bf7844e2676f0ea', + 'reference' => '609b794cf20226c36987c1edf5d3f68b065cec2b', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), @@ -113,9 +113,9 @@ 'dev_requirement' => false, ), 'phpstan/phpstan' => array( - 'pretty_version' => '1.11.5', - 'version' => '1.11.5.0', - 'reference' => '490f0ae1c92b082f154681d7849aee776a7c1443', + 'pretty_version' => '1.11.6', + 'version' => '1.11.6.0', + 'reference' => '6ac78f1165346c83b4a753f7e4186d969c6ad0ee', 'type' => 'library', 'install_path' => __DIR__ . '/../phpstan/phpstan', 'aliases' => array(), @@ -149,9 +149,9 @@ 'dev_requirement' => false, ), 'phpstan/phpstan-symfony' => array( - 'pretty_version' => '1.4.4', - 'version' => '1.4.4.0', - 'reference' => 'bca27f1701fc1a297749e6c2a1e3da4462c1a6af', + 'pretty_version' => '1.4.5', + 'version' => '1.4.5.0', + 'reference' => '1bd7c339f622dfb5a1a97dcaf1a862734eabfa1d', 'type' => 'phpstan-extension', 'install_path' => __DIR__ . '/../phpstan/phpstan-symfony', 'aliases' => array(), @@ -203,9 +203,9 @@ 'dev_requirement' => false, ), 'symfony/polyfill-php80' => array( - 'pretty_version' => 'v1.29.0', - 'version' => '1.29.0.0', - 'reference' => '87b68208d5c1188808dd7839ee1e6c8ec3b02f1b', + 'pretty_version' => 'v1.30.0', + 'version' => '1.30.0.0', + 'reference' => '77fa7995ac1b21ab60769b7323d600a991a90433', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-php80', 'aliases' => array(), diff --git a/vendor/phpstan/phpstan-symfony/src/Type/Symfony/InputInterfaceGetArgumentDynamicReturnTypeExtension.php b/vendor/phpstan/phpstan-symfony/src/Type/Symfony/InputInterfaceGetArgumentDynamicReturnTypeExtension.php index 860317f6f..5eb4cfe9f 100644 --- a/vendor/phpstan/phpstan-symfony/src/Type/Symfony/InputInterfaceGetArgumentDynamicReturnTypeExtension.php +++ b/vendor/phpstan/phpstan-symfony/src/Type/Symfony/InputInterfaceGetArgumentDynamicReturnTypeExtension.php @@ -89,7 +89,7 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method if ( $canBeNullInInteract && $method instanceof MethodReflection - && $method->getName() === 'interact' + && ($method->getName() === 'interact' || $method->getName() === 'initialize') && in_array('Symfony\Component\Console\Command\Command', $method->getDeclaringClass()->getParentClassesNames(), true) ) { $argTypes[] = new NullType(); diff --git a/vendor/phpstan/phpstan-symfony/src/Type/Symfony/InputInterfaceHasArgumentDynamicReturnTypeExtension.php b/vendor/phpstan/phpstan-symfony/src/Type/Symfony/InputInterfaceHasArgumentDynamicReturnTypeExtension.php index 4ce49c4af..2ca6b4a17 100644 --- a/vendor/phpstan/phpstan-symfony/src/Type/Symfony/InputInterfaceHasArgumentDynamicReturnTypeExtension.php +++ b/vendor/phpstan/phpstan-symfony/src/Type/Symfony/InputInterfaceHasArgumentDynamicReturnTypeExtension.php @@ -13,6 +13,7 @@ use PHPStan\Type\TypeUtils; use function array_unique; use function count; +use function in_array; final class InputInterfaceHasArgumentDynamicReturnTypeExtension implements DynamicMethodReturnTypeExtension { @@ -52,6 +53,17 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } $argName = $argStrings[0]->getValue(); + if ($argName === 'command') { + $method = $scope->getFunction(); + if ( + $method instanceof MethodReflection + && ($method->getName() === 'interact' || $method->getName() === 'initialize') + && in_array('Symfony\Component\Console\Command\Command', $method->getDeclaringClass()->getParentClassesNames(), true) + ) { + return null; + } + } + $returnTypes = []; foreach ($this->consoleApplicationResolver->findCommands($classReflection) as $command) { try { diff --git a/vendor/phpstan/phpstan/README.md b/vendor/phpstan/phpstan/README.md index a42709eae..a14f10df8 100644 --- a/vendor/phpstan/phpstan/README.md +++ b/vendor/phpstan/phpstan/README.md @@ -24,43 +24,45 @@ can be checked before you run the actual line. ## Sponsors -TheCodingMachine +TheCodingMachine     -Private Packagist +Private Packagist
-CDN77 +CDN77     -Blackfire.io +Blackfire.io
-iO +iO     -Fame Helsinki +Fame Helsinki
-ShipMonk +ShipMonk     -Togetter +Togetter
-RightCapital +RightCapital     -ContentKing +ContentKing
-ZOL +ZOL     -EdgeNext +EdgeNext
-Shopware +Shopware     -Craft CMS +Craft CMS
-Worksome +Worksome     -campoint AG +campoint AG
-Crisp.nl +Crisp.nl     -Inviqa +Inviqa
-GetResponse +GetResponse +    +Shoptet [**You can now sponsor my open-source work on PHPStan through GitHub Sponsors.**](https://github.com/sponsors/ondrejmirtes) diff --git a/vendor/phpstan/phpstan/phpstan.phar b/vendor/phpstan/phpstan/phpstan.phar index de555a135..7e3f738f1 100755 Binary files a/vendor/phpstan/phpstan/phpstan.phar and b/vendor/phpstan/phpstan/phpstan.phar differ diff --git a/vendor/phpstan/phpstan/phpstan.phar.asc b/vendor/phpstan/phpstan/phpstan.phar.asc index 15a8e30a2..53370ff60 100644 --- a/vendor/phpstan/phpstan/phpstan.phar.asc +++ b/vendor/phpstan/phpstan/phpstan.phar.asc @@ -1,16 +1,16 @@ -----BEGIN PGP SIGNATURE----- -iQIzBAABCgAdFiEEynwsejDI6OEnSoR2UcZzBf/C5cAFAmZwUeMACgkQUcZzBf/C -5cAwCQ/9Hsj1sVex6pT/SJ12lvZONeXkAJupxzdK+pfoR70IaoazLMao+eG6Va5Z -p4GhnHGVDt1HyMbpcSwazo1C4uDjt7U/s4QHEDptWM1RUzMmBn4Hc8o3j+l3MMwb -toKBC9Acr/CDZeJpHfB7xUTDuU63OAiZyaNb9eAJqnJaFEeCf5Tj/mcv6qgOGti7 -9gHYOp82GXfgccdhFOvEwxmahaC7IiuLIgr1mtI79JYbNduBPKqlbRUra8gXUTjv -cQiD8iICuPb2KGnD3ROchrov4SAh+PxClsBip4OXVpVdO3V45GT+HxlH3vcwzQFR -42MUizUru2FXxDW/CT4BWodPwwKggEO/ykhBHBkaikGHVFrW/xRtO28uTTcfrA4k -2xyI8KHvlTuaSUDnFbMrZaWrvduWnliELyDVZtd8Jbx63F0xOZmiXtttw/NW2IPL -hhlUqUmFMGFab8TITSkTh4M8ZB+owA2La2DlcsSLeDAhDFaD5xYwuuxlQC0iDqL9 -59yBqPkcnAkem3ObfnNmvugNSXsxaGoMWkcqxDcMk1W+K608jMNGxWXgKNBTJy0U -axDIwaA94UuSoEmW5owRQbhMSfHsjj1UweKKC28w+3Vd26QHfpFbEXFPyP9HMhib -/KHwJmDa1hi1fY5EVHatQBENdnsJ+Kn8XSqg929Cy9zJFGneHKo= -=YP7+ +iQIzBAABCgAdFiEEynwsejDI6OEnSoR2UcZzBf/C5cAFAmaCzBcACgkQUcZzBf/C +5cBLbQ/+OdxrZeTDmeqLAB5rMa+0STOfjDVc0D1l+iVCed7rtjJApxvVuy7uLuWd +wFbKWyqNE3O28Xr8u1m/GyaAEp2efCbEGLiFyeHjKYx8VwhZlaEp24QM5aoVsdOt +2bTG8ZkrqlL2TevJEgpI79H7/jpOo4XkI7tiUN3gHHHbBv0TdVglRMgRMnnfTu67 +HUrDX3mz1Fd5ZBlnGXg+UKzq7oSZxpOwZNJlqJvnLgGwCIdpOEFaZZWAiLqhc8dY +W0J/lljwer9D/fpKfhlbH5bHi2X/CEiiCLpGK/miw8Tc7xDU1nAs0Ci//zpmjfX0 +Z6SC3/JlFdGOqIk1STsYmFKvANrq/cc/DaPeS4R25s64LTnLdDI6dYLC7fvZ2lW2 +H5JVtDVVegLX1oz1/+TPZ0kRox4rovvqsREBwyNQSKT4mlBUUnDm6IXlQQXmKqjq +mnz4G6p4ei/uRG609OXtwSu1HZgLY+ZCvvvW5xHCv/wYFH1cZD5+f2/NRWnv0cI0 +05Qf9M4X/qMXELHoxGF8HmObOHykTNDgA4ahbJxoMHnWMgv6RqVNiJCD46NdYPk9 +V3Xdii5/4HKqmX6UMrQCvj8AyTjv92ar+nW7buq3hjGW3MDb8cmovyobMSBodAaP +HfcoluifwPX0Jv64MZxd3zu4GIB5QhGMou8NM0DjtGs5QkI7S3U= +=75IH -----END PGP SIGNATURE-----