Skip to content

Commit

Permalink
fix phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
chregu committed Mar 15, 2024
1 parent 86a5dbf commit 7e2f944
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/Core/UriComponents.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.');
}
}

Expand Down

0 comments on commit 7e2f944

Please sign in to comment.