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.'); } }