diff --git a/.phpstan-baseline.neon b/.phpstan-baseline.neon index 63d7993cba5..727f06967c8 100644 --- a/.phpstan-baseline.neon +++ b/.phpstan-baseline.neon @@ -7735,46 +7735,6 @@ parameters: count: 1 path: engine/Shopware/Bundle/PluginInstallerBundle/Struct/BasketPositionStruct.php - - - message: "#^Method Shopware\\\\Bundle\\\\PluginInstallerBundle\\\\Struct\\\\CategoryStruct\\:\\:getName\\(\\) return type has no value type specified in iterable type array\\.$#" - count: 1 - path: engine/Shopware/Bundle/PluginInstallerBundle/Struct/CategoryStruct.php - - - - message: "#^Method Shopware\\\\Bundle\\\\PluginInstallerBundle\\\\Struct\\\\CategoryStruct\\:\\:getName\\(\\) should return array but returns array\\|string\\.$#" - count: 1 - path: engine/Shopware/Bundle/PluginInstallerBundle/Struct/CategoryStruct.php - - - - message: "#^Method Shopware\\\\Bundle\\\\PluginInstallerBundle\\\\Struct\\\\CategoryStruct\\:\\:setChildren\\(\\) has no return type specified\\.$#" - count: 1 - path: engine/Shopware/Bundle/PluginInstallerBundle/Struct/CategoryStruct.php - - - - message: "#^Method Shopware\\\\Bundle\\\\PluginInstallerBundle\\\\Struct\\\\CategoryStruct\\:\\:setId\\(\\) has no return type specified\\.$#" - count: 1 - path: engine/Shopware/Bundle/PluginInstallerBundle/Struct/CategoryStruct.php - - - - message: "#^Method Shopware\\\\Bundle\\\\PluginInstallerBundle\\\\Struct\\\\CategoryStruct\\:\\:setName\\(\\) has no return type specified\\.$#" - count: 1 - path: engine/Shopware/Bundle/PluginInstallerBundle/Struct/CategoryStruct.php - - - - message: "#^Method Shopware\\\\Bundle\\\\PluginInstallerBundle\\\\Struct\\\\CategoryStruct\\:\\:setName\\(\\) has parameter \\$name with no value type specified in iterable type array\\.$#" - count: 1 - path: engine/Shopware/Bundle/PluginInstallerBundle/Struct/CategoryStruct.php - - - - message: "#^Method Shopware\\\\Bundle\\\\PluginInstallerBundle\\\\Struct\\\\CategoryStruct\\:\\:setParentId\\(\\) has no return type specified\\.$#" - count: 1 - path: engine/Shopware/Bundle/PluginInstallerBundle/Struct/CategoryStruct.php - - - - message: "#^Property Shopware\\\\Bundle\\\\PluginInstallerBundle\\\\Struct\\\\CategoryStruct\\:\\:\\$name type has no value type specified in iterable type array\\.$#" - count: 1 - path: engine/Shopware/Bundle/PluginInstallerBundle/Struct/CategoryStruct.php - - message: "#^Method Shopware\\\\Bundle\\\\PluginInstallerBundle\\\\Struct\\\\CommentStruct\\:\\:setAuthor\\(\\) has no return type specified\\.$#" count: 1 diff --git a/composer.json b/composer.json index ae3be141640..48c33cead80 100644 --- a/composer.json +++ b/composer.json @@ -112,7 +112,7 @@ "friends-of-behat/mink-extension": "2.7.5", "php-parallel-lint/php-var-dump-check": "^0.5", "phpstan/extension-installer": "1.4.2", - "phpstan/phpstan": "1.11.11", + "phpstan/phpstan": "1.12.0", "phpstan/phpstan-doctrine": "1.5.3", "phpstan/phpstan-phpunit": "1.4.0", "phpstan/phpstan-symfony": "1.4.8", diff --git a/composer.lock b/composer.lock index 4d445836a8e..8d235471d4f 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": "8f0b4eafe86f8252568f087eb8bd342b", + "content-hash": "a42f3e2659ef140a5c80bb82b7af15eb", "packages": [ { "name": "aws/aws-crt-php", @@ -8681,16 +8681,16 @@ }, { "name": "phpstan/phpstan", - "version": "1.11.11", + "version": "1.12.0", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan.git", - "reference": "707c2aed5d8d0075666e673a5e71440c1d01a5a3" + "reference": "384af967d35b2162f69526c7276acadce534d0e1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/707c2aed5d8d0075666e673a5e71440c1d01a5a3", - "reference": "707c2aed5d8d0075666e673a5e71440c1d01a5a3", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/384af967d35b2162f69526c7276acadce534d0e1", + "reference": "384af967d35b2162f69526c7276acadce534d0e1", "shasum": "" }, "require": { @@ -8735,7 +8735,7 @@ "type": "github" } ], - "time": "2024-08-19T14:37:29+00:00" + "time": "2024-08-27T09:18:05+00:00" }, { "name": "phpstan/phpstan-doctrine", diff --git a/engine/Shopware/Bundle/PluginInstallerBundle/Struct/CategoryStruct.php b/engine/Shopware/Bundle/PluginInstallerBundle/Struct/CategoryStruct.php index 357ff512f13..bb5f98892fd 100644 --- a/engine/Shopware/Bundle/PluginInstallerBundle/Struct/CategoryStruct.php +++ b/engine/Shopware/Bundle/PluginInstallerBundle/Struct/CategoryStruct.php @@ -36,7 +36,7 @@ class CategoryStruct implements JsonSerializable private $id; /** - * @var array|string + * @var array */ private $name; @@ -60,6 +60,8 @@ public function getId() /** * @param int $id + * + * @return void */ public function setId($id) { @@ -67,7 +69,7 @@ public function setId($id) } /** - * @return array + * @return array */ public function getName() { @@ -75,7 +77,9 @@ public function getName() } /** - * @param array $name + * @param array $name + * + * @return void */ public function setName($name) { @@ -92,6 +96,8 @@ public function getParentId() /** * @param int $parentId + * + * @return void */ public function setParentId($parentId) { @@ -108,6 +114,8 @@ public function getChildren() /** * @param CategoryStruct[] $children + * + * @return void */ public function setChildren($children) {