Skip to content

Commit

Permalink
chore: Update PHPStan and its plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
mitelg committed Nov 6, 2023
1 parent 1db51be commit 3e3c9aa
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 48 deletions.
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,13 @@
"php-parallel-lint/php-var-dump-check": "^0.5",
"phpspec/prophecy-phpunit": "^2.0",
"phpstan/extension-installer": "1.3.1",
"phpstan/phpstan": "1.10.35",
"phpstan/phpstan-doctrine": "1.3.43",
"phpstan/phpstan-phpunit": "1.3.14",
"phpstan/phpstan-symfony": "1.3.2",
"phpstan/phpstan": "1.10.41",
"phpstan/phpstan-doctrine": "1.3.45",
"phpstan/phpstan-phpunit": "1.3.15",
"phpstan/phpstan-symfony": "1.3.5",
"phpunit/phpunit": "^9.6",
"sensiolabs/behat-page-object-extension": "2.3.7",
"staabm/phpstan-dba": "0.2.75",
"staabm/phpstan-dba": "0.2.79",
"symfony/browser-kit": "~4.4.27",
"symfony/dom-crawler": "~4.4.30"
},
Expand Down
83 changes: 42 additions & 41 deletions composer.lock

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

2 changes: 1 addition & 1 deletion engine/Shopware/Components/Cart/TaxAggregator.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public function positionsTaxSum(array $cart, float $maximumTaxRate): ?array
continue;
}

/** @var numeric-string $taxRateString */
/** @var numeric-string&non-empty-string $taxRateString */
$taxRateString = number_format($taxRate, 2);

if (!\array_key_exists($taxRateString, $result)) {
Expand Down
2 changes: 1 addition & 1 deletion engine/Shopware/Controllers/Backend/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ protected function getListQuery()
*/
protected function getQueryPaginator(QueryBuilder $builder, $hydrationMode = AbstractQuery::HYDRATE_ARRAY)
{
/** @var Query<AddressModel> $query */
/** @var Query<AddressModel|array<string, mixed>> $query */
$query = $builder->getQuery();
$query->setHydrationMode($hydrationMode);
$query->setHint(Query::HINT_INCLUDE_META_COLUMNS, true);
Expand Down

0 comments on commit 3e3c9aa

Please sign in to comment.