From 8975bd43a8f479e083d0756acc67b7a255ee0bed Mon Sep 17 00:00:00 2001 From: Dmitry Petrov Date: Fri, 27 Feb 2026 10:56:26 -0500 Subject: [PATCH 1/2] fix: Add missing declaration of $authDriver property --- test/Middleware/SetUpTrait.php | 1 + 1 file changed, 1 insertion(+) diff --git a/test/Middleware/SetUpTrait.php b/test/Middleware/SetUpTrait.php index 5f0a51c5..641d24b9 100644 --- a/test/Middleware/SetUpTrait.php +++ b/test/Middleware/SetUpTrait.php @@ -42,6 +42,7 @@ trait SetUpTrait protected RequestHandlerInterface $defaultPayloadHandler; protected ?ServerRequest $recentlyHandledRequest; protected RampageRequestHandler $handler; + protected Horde_Auth_Base $authDriver; protected function setUp(): void { From 146a3f3674d9d78e10a442db7f31d795d43de3b4 Mon Sep 17 00:00:00 2001 From: Dmitry Petrov Date: Fri, 27 Feb 2026 11:04:43 -0500 Subject: [PATCH 2/2] fix: Adjust code to avoid passing null value to is_dir() Fix error 'is_dir(): Passing null to parameter #1 ($filename) of type string is deprecated' --- test/RegistryTest.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/test/RegistryTest.php b/test/RegistryTest.php index b9a9b14c..0a3974ad 100644 --- a/test/RegistryTest.php +++ b/test/RegistryTest.php @@ -28,13 +28,16 @@ */ class RegistryTest extends TestCase { - protected $_tmpdir; + protected string $_tmpdir = ''; public function tearDown(): void { - if (is_dir($this->_tmpdir)) { - rmdir($this->_tmpdir); - rmdir(dirname($this->_tmpdir)); + if ($this->_tmpdir != '') { + if (is_dir($this->_tmpdir)) { + rmdir($this->_tmpdir); + rmdir(dirname($this->_tmpdir)); + } + $this->_tmpdir = ''; } }