summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsupahgreg <supahgreg@users.noreply.github.com>2025-10-05 21:23:24 +0000
committersupahgreg <supahgreg@users.noreply.github.com>2025-10-05 21:23:24 +0000
commitceab15254b776de948d63f06338deede8280e043 (patch)
tree332756454e70fd18d2cb49a912cd47c7e3e2d9b1
parenta4eed151b73ca32e92963fae054e77f04a7d5eb2 (diff)
minor: make PHPStan happy after a4eed151b73ca32e92963fae054e77f04a7d5eb2
-rw-r--r--.github/workflows/php-code-quality.yml7
-rw-r--r--classes/Pref_Filters.php2
2 files changed, 1 insertions, 8 deletions
diff --git a/.github/workflows/php-code-quality.yml b/.github/workflows/php-code-quality.yml
index 69d827120..bbcaf8ee3 100644
--- a/.github/workflows/php-code-quality.yml
+++ b/.github/workflows/php-code-quality.yml
@@ -6,13 +6,6 @@ on:
- '**.php'
- 'phpstan.neon'
- 'phpunit.xml'
- push:
- branches:
- - main
- paths:
- - '**.php'
- - 'phpstan.neon'
- - 'phpunit.xml'
# Allow manual triggering
workflow_dispatch:
# Allow other workflows (e.g. Publish) to invoke this one.
diff --git a/classes/Pref_Filters.php b/classes/Pref_Filters.php
index 81d581683..cd7b95ea9 100644
--- a/classes/Pref_Filters.php
+++ b/classes/Pref_Filters.php
@@ -90,7 +90,7 @@ class Pref_Filters extends Handler_Protected {
/** @var string $rule_json */
foreach (clean($_REQUEST['rule']) as $rule_json) {
- /** @var array{'reg_exp': string, 'filter_type': int, 'feed_id': array<int, int|string>, 'name': string}|null */
+ /** @var array{reg_exp: string, filter_type: int, feed_id: array<int, int|string>, name: string, inverse?: bool}|null */
$rule = json_decode($rule_json, true);
if (is_array($rule)) {