From 3796472558375b450a5779a95f314af3c76a49df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Bar=C3=A1=C5=A1ek?= Date: Wed, 7 Sep 2022 13:39:07 +0200 Subject: [PATCH 1/3] Update ymfonycorp/security-checker-action to V3. Rel. https://github.com/symfonycorp/security-checker-action/issues/6 --- .github/dependabot.yml | 8 -------- .github/workflows/main.yml | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) delete mode 100644 .github/dependabot.yml 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 From f0b3c5c9480648d1c66bd3081a74f04fea88799f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Bar=C3=A1=C5=A1ek?= Date: Thu, 8 Sep 2022 15:41:55 +0200 Subject: [PATCH 2/3] Composer: Register phpstan/extension-installer to allow-plugin --- composer.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 + } + } } From 2533a13aca752967e09be96a0d88aace7e35311d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Bar=C3=A1=C5=A1ek?= Date: Mon, 12 Sep 2022 09:35:00 +0200 Subject: [PATCH 3/3] Helper: Fix PhpStan. --- src/Helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }