Skip to content

Commit 1126429

Browse files
authored
chore: solve phpstan deprecations (#59)
1 parent 23f8fd6 commit 1126429

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
],
1212
"minimum-stability": "RC",
1313
"require": {
14-
"shopware/core": "~6.6.0||~6.7.0",
14+
"shopware/core": "~6.6.10||~6.7.0",
1515
"shopware/storefront": "*"
1616
},
1717
"extra": {

phpstan.neon

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,13 @@ parameters:
2323
tag\\:v6\\.7\\.0 \\- reason\\:return\\-type\\-change \\- return type will be changed to int\\|string$#
2424
"""
2525
reportUnmatched: false
26+
-
27+
message: """
28+
#tag\\:v6\\.8\\.0 \\- reason\\:return\\-type\\-change \\- Will return static natively$#
29+
"""
30+
reportUnmatched: false
31+
-
32+
identifier: shopware.noEntityRepositoryInLoop
33+
path: src/Command/CleanupExcludesCommand.php
34+
reportUnmatched: false
2635

src/Command/CleanupExcludesCommand.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int
101101
$progressBar->start();
102102

103103
$deleteIds = \array_chunk($deleteIds, 1000);
104-
/** @phpstan-ignore shopware.noEntityRepositoryInLoop */
105104
foreach ($deleteIds as $ids) {
106105
$this->tinectRedirectsRedirectRepository->delete(\array_map(static fn ($id) => ['id' => $id], $ids), $context);
107106
$progressBar->advance(\count($ids));

0 commit comments

Comments
 (0)