diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 5a98fda..0000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,8 +0,0 @@ -version: 2 -updates: -- package-ecosystem: composer - directory: "/" - schedule: - interval: daily - time: "04:00" - open-pull-requests-limit: 10 diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7523410..d7e1239 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -30,7 +30,7 @@ jobs: composer install --no-interaction --prefer-dist - name: The PHP Security Checker - uses: symfonycorp/security-checker-action@v2 + uses: symfonycorp/security-checker-action@v3 - name: Check PHPStan rules run: composer phpstan diff --git a/composer.json b/composer.json index 933b881..dd9d034 100644 --- a/composer.json +++ b/composer.json @@ -35,5 +35,10 @@ "vendor/bin/phpstan analyse src -c phpstan.neon --level 9 --no-progress" ] }, - "minimum-stability": "stable" + "minimum-stability": "stable", + "config": { + "allow-plugins": { + "phpstan/extension-installer": true + } + } } diff --git a/src/Helper.php b/src/Helper.php index 74c80d0..1f010da 100644 --- a/src/Helper.php +++ b/src/Helper.php @@ -39,6 +39,7 @@ public static function domNodeToArray($node): array|string if (is_array($v) && empty($v)) { $v = ''; } + /** @phpstan-ignore-next-line */ $output[$t][] = $v; /** @phpstan-ignore-next-line */ } elseif ($v || $v === '0') { @@ -70,7 +71,6 @@ public static function domNodeToArray($node): array|string break; } - /** @phpstan-ignore-next-line */ return $output; } }