From 557a752c08cf396bb36697b4f6af406aace20dd9 Mon Sep 17 00:00:00 2001
From: Michael Danielczok <michael@pcsg.de>
Date: Tue, 25 Feb 2025 05:52:28 +0100
Subject: [PATCH] fix(phpstan): correct variable type

Related: quiqqer/interview#4
---
 phpstan-baseline.neon                          | 4 ----
 src/QUI/Interview/Controls/IntervieweeData.php | 4 ++--
 2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon
index 48311ef..364905f 100644
--- a/phpstan-baseline.neon
+++ b/phpstan-baseline.neon
@@ -1,6 +1,2 @@
 parameters:
 	ignoreErrors:
-		-
-			message: "#^Parameter \\#2 \\$val of method QUI\\\\QDOM\\:\\:setAttribute\\(\\) expects array\\|bool\\|object\\|string, int given\\.$#"
-			count: 1
-			path: src/QUI/Interview/Controls/IntervieweeData.php
diff --git a/src/QUI/Interview/Controls/IntervieweeData.php b/src/QUI/Interview/Controls/IntervieweeData.php
index 4cd7d99..d73c549 100644
--- a/src/QUI/Interview/Controls/IntervieweeData.php
+++ b/src/QUI/Interview/Controls/IntervieweeData.php
@@ -35,7 +35,7 @@ public function __construct($attributes = [])
 
         parent::__construct($attributes);
 
-        $this->setAttribute('cacheable', 0);
+        $this->setAttribute('cacheable', "0");
     }
 
     /**
@@ -43,7 +43,7 @@ public function __construct($attributes = [])
      *
      * @see \QUI\Control::create()
      */
-    public function getBody()
+    public function getBody(): string
     {
         $Engine = QUI::getTemplateManager()->getEngine();
         $Site   = $this->getSite();
-- 
GitLab