Skip to content

Commit

Permalink
Migration to PHPStan 2.x - ignoring two invalid errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Mapiiik committed Dec 15, 2024
1 parent 85c6b3a commit 43f5550
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@
* Include the CLI bootstrap overrides.
*/
if (PHP_SAPI === 'cli') {
/** @phpstan-ignore-next-line */
require CONFIG . 'bootstrap_cli.php';
}

Expand Down
1 change: 1 addition & 0 deletions config/permissions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 43f5550

Please sign in to comment.