From 43f5550d751179c032c648b8ab1482a75373fed1 Mon Sep 17 00:00:00 2001 From: Martin Patocka Date: Sun, 15 Dec 2024 16:51:03 +0000 Subject: [PATCH] Migration to PHPStan 2.x - ignoring two invalid errors --- config/bootstrap.php | 1 + config/permissions.php | 1 + 2 files changed, 2 insertions(+) diff --git a/config/bootstrap.php b/config/bootstrap.php index 293d192..bb92cdf 100644 --- a/config/bootstrap.php +++ b/config/bootstrap.php @@ -132,6 +132,7 @@ * Include the CLI bootstrap overrides. */ if (PHP_SAPI === 'cli') { + /** @phpstan-ignore-next-line */ require CONFIG . 'bootstrap_cli.php'; } diff --git a/config/permissions.php b/config/permissions.php index b998ae0..9b6b76b 100644 --- a/config/permissions.php +++ b/config/permissions.php @@ -337,6 +337,7 @@ */ $localPermissionsFile = CONFIG . 'permissions_local.php'; if (file_exists($localPermissionsFile)) { + /** @phpstan-ignore-next-line */ $localPermissions = include $localPermissionsFile; /** @psalm-suppress RedundantCondition */ if (is_array($localPermissions)) {