Skip to content

Commit 14c3599

Browse files
authored
chore: suppress empty catch lint error (#1543)
1 parent e7278d3 commit 14c3599

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,8 @@
225225
"scripts": {
226226
"phpunit": "@php -d memory_limit=2G vendor/bin/phpunit --display-warnings --display-skipped --display-deprecations --display-errors --display-notices",
227227
"coverage": "vendor/bin/phpunit --coverage-html build/reports/html --coverage-clover build/reports/clover.xml",
228-
"mago:fmt": "vendor/bin/mago fmt && vendor/bin/mago lint --fix --potentially-unsafe --fmt",
229-
"mago:lint": "vendor/bin/mago lint --minimum-level=note",
228+
"fmt": "vendor/bin/mago fmt && vendor/bin/mago lint --fix --potentially-unsafe --fmt",
229+
"lint": "vendor/bin/mago lint --minimum-level=note",
230230
"phpstan": "vendor/bin/phpstan analyse src tests --memory-limit=1G",
231231
"rector": "vendor/bin/rector process --no-ansi",
232232
"merge": "php -d\"error_reporting = E_ALL & ~E_DEPRECATED\" vendor/bin/monorepo-builder merge",
@@ -236,13 +236,13 @@
236236
"./bin/release"
237237
],
238238
"qa": [
239-
"composer mago:fmt",
239+
"composer fmt",
240240
"composer merge",
241241
"./bin/validate-packages",
242242
"./tempest discovery:clear --no-interaction",
243243
"composer rector",
244244
"composer phpunit",
245-
"composer mago:lint",
245+
"composer lint",
246246
"composer phpstan"
247247
]
248248
}

packages/kv-store/tests/PhpRedisClientTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ protected function cleanup(): void
3939
{
4040
try {
4141
$this->redis->flush();
42-
} catch (Throwable) {
42+
} catch (Throwable) { // @mago-expect best-practices/no-empty-catch-clause
4343
}
4444
}
4545

packages/kv-store/tests/PredisClientTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ protected function cleanup(): void
4545
{
4646
try {
4747
$this->redis->flush();
48-
} catch (Throwable) {
48+
} catch (Throwable) { // @mago-expect best-practices/no-empty-catch-clause
4949
}
5050
}
5151

tests/Integration/KeyValue/RedisTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ protected function cleanup(): void
3939
{
4040
try {
4141
$this->redis->flush();
42-
} catch (Throwable) {
42+
} catch (Throwable) { // @mago-expect best-practices/no-empty-catch-clause
4343
}
4444
}
4545

0 commit comments

Comments
 (0)