From ed2d66a6cac593c22f9e95b309ab47ffc21bb7b2 Mon Sep 17 00:00:00 2001 From: Kamil Tekiela Date: Thu, 2 Jan 2025 20:23:26 +0000 Subject: [PATCH] Convert CheckConfigurationPermissions to $config Signed-off-by: Kamil Tekiela --- phpstan-baseline.neon | 6 ------ psalm-baseline.xml | 1 - src/Config.php | 2 +- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 0faeef284b..bc4921358c 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -603,12 +603,6 @@ parameters: count: 1 path: src/Config.php - - - message: '#^Only booleans are allowed in a negated boolean, mixed given\.$#' - identifier: booleanNot.exprNotBoolean - count: 1 - path: src/Config.php - - message: '#^Only booleans are allowed in a negated boolean, string\|false given\.$#' identifier: booleanNot.exprNotBoolean diff --git a/psalm-baseline.xml b/psalm-baseline.xml index bbd338f986..476d6be068 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -228,7 +228,6 @@ - get('CheckConfigurationPermissions')]]> diff --git a/src/Config.php b/src/Config.php index b4f0aef3f7..f8d80358bd 100644 --- a/src/Config.php +++ b/src/Config.php @@ -596,7 +596,7 @@ class Config public function checkPermissions(): void { // Check for permissions (on platforms that support it): - if (! $this->get('CheckConfigurationPermissions') || ! @file_exists($this->source)) { + if (! $this->config->CheckConfigurationPermissions || ! @file_exists($this->source)) { return; }