From c608300f0248b2df7337b8097b62e293470df935 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Fri, 11 Jul 2025 07:26:39 +0200 Subject: [PATCH] #422 PHPStan --- lam/templates/setInitialPassword.php | 2 +- phpstan.neon | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lam/templates/setInitialPassword.php b/lam/templates/setInitialPassword.php index 310473a86..2a85b4b09 100644 --- a/lam/templates/setInitialPassword.php +++ b/lam/templates/setInitialPassword.php @@ -111,7 +111,7 @@ printContent($message); * @param htmlStatusMessage|null $message status message * @param bool $showPasswordInputs show password input fields */ -function printContent(htmlStatusMessage $message = null, bool $showPasswordInputs = true): void { +function printContent(?htmlStatusMessage $message = null, bool $showPasswordInputs = true): void { echo ' diff --git a/phpstan.neon b/phpstan.neon index bfe591aef..7478ca1c2 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -8,6 +8,7 @@ parameters: - lam/templates fileExtensions: - php + - lib excludePaths: analyseAndScan: - */3rdParty/*