From 5c66ade72297f242d61744775a3a222566f32b06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Pi=C5=A1t=C4=9Bk?= Date: Thu, 11 Jul 2024 10:26:27 +0200 Subject: [PATCH] fix: phpstan --- phpstan.neon | 2 +- src/Config.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/phpstan.neon b/phpstan.neon index 5c36f98..69b223c 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -1,4 +1,4 @@ parameters: checkMissingIterableValueType: false ignoreErrors: - - '#Cannot call method scalarNode\(\) on Symfony\\Component\\Config\\Definition\\Builder\\NodeParentInterface\|null\.#' + - '#Cannot call method (scalar|boolean)Node\(\) on Symfony\\Component\\Config\\Definition\\Builder\\NodeParentInterface\|null\.#' diff --git a/src/Config.php b/src/Config.php index 0be52d9..13ff042 100644 --- a/src/Config.php +++ b/src/Config.php @@ -157,6 +157,6 @@ private function getDbConfigNode(): array public function isDryRun(): bool { - return $this->getValue(['parameters', 'dryRun']); + return (bool) $this->getValue(['parameters', 'dryRun']); } }