minor: make PHPStan happy after a4eed151b7
This commit is contained in:
7
.github/workflows/php-code-quality.yml
vendored
7
.github/workflows/php-code-quality.yml
vendored
@@ -6,13 +6,6 @@ on:
|
|||||||
- '**.php'
|
- '**.php'
|
||||||
- 'phpstan.neon'
|
- 'phpstan.neon'
|
||||||
- 'phpunit.xml'
|
- 'phpunit.xml'
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
paths:
|
|
||||||
- '**.php'
|
|
||||||
- 'phpstan.neon'
|
|
||||||
- 'phpunit.xml'
|
|
||||||
# Allow manual triggering
|
# Allow manual triggering
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
# Allow other workflows (e.g. Publish) to invoke this one.
|
# Allow other workflows (e.g. Publish) to invoke this one.
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ class Pref_Filters extends Handler_Protected {
|
|||||||
|
|
||||||
/** @var string $rule_json */
|
/** @var string $rule_json */
|
||||||
foreach (clean($_REQUEST['rule']) as $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);
|
$rule = json_decode($rule_json, true);
|
||||||
|
|
||||||
if (is_array($rule)) {
|
if (is_array($rule)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user