From 7e2f9448bd44eb4870f63fde18cc133eaa095953 Mon Sep 17 00:00:00 2001 From: Christian Stocker Date: Fri, 15 Mar 2024 14:39:20 +0100 Subject: [PATCH] fix phpstan --- src/Core/UriComponents.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/Core/UriComponents.php b/src/Core/UriComponents.php index e2cf5af..d434c45 100644 --- a/src/Core/UriComponents.php +++ b/src/Core/UriComponents.php @@ -92,13 +92,7 @@ public function setStack($stack) } elseif (\is_string($stack)) { $this->stack = new StackUri($stack); } else { - if ('object' == \gettype($stack)) { - $given = \get_class($stack); - } else { - $given = \gettype($stack); - } - - throw new \RuntimeException('Stack needs to be StackUri or string. '.$given.' given.'); + throw new \RuntimeException('Stack needs to be StackUri or string.'); } }