Skip to content

Commit

Permalink
Merge pull request #2756 from shopware5/dependabot/composer/phpstan/p…
Browse files Browse the repository at this point in the history
…hpstan-1.12.0

chore(deps-dev): bump phpstan/phpstan from 1.11.11 to 1.12.0
  • Loading branch information
aragon999 authored Sep 7, 2024
2 parents 23d1848 + d73b222 commit a79d9fa
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 50 deletions.
40 changes: 0 additions & 40 deletions .phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
12 changes: 6 additions & 6 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class CategoryStruct implements JsonSerializable
private $id;

/**
* @var array|string
* @var array<string, string>
*/
private $name;

Expand All @@ -60,22 +60,26 @@ public function getId()

/**
* @param int $id
*
* @return void
*/
public function setId($id)
{
$this->id = $id;
}

/**
* @return array
* @return array<string, string>
*/
public function getName()
{
return $this->name;
}

/**
* @param array $name
* @param array<string, string> $name
*
* @return void
*/
public function setName($name)
{
Expand All @@ -92,6 +96,8 @@ public function getParentId()

/**
* @param int $parentId
*
* @return void
*/
public function setParentId($parentId)
{
Expand All @@ -108,6 +114,8 @@ public function getChildren()

/**
* @param CategoryStruct[] $children
*
* @return void
*/
public function setChildren($children)
{
Expand Down

0 comments on commit a79d9fa

Please sign in to comment.