Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Reduce @ throws
  • Loading branch information
Sammyjo20 committed Jan 14, 2024
1 parent dbf34c9 commit 1e0cfe9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion src/Helpers/Helpers.php
Expand Up @@ -66,7 +66,6 @@ public static function value(mixed $value, mixed ...$args): mixed
* Check if a class is a subclass of another.
*
* @param class-string $class
* @throws \ReflectionException
*/
public static function isSubclassOf(string $class, string $subclass): bool
{
Expand Down
9 changes: 0 additions & 9 deletions src/Http/Faking/MockClient.php
Expand Up @@ -241,8 +241,6 @@ public function getLastResponse(): ?Response

/**
* Assert that a given request was sent.
*
* @throws \ReflectionException
*/
public function assertSent(string|callable $value): void
{
Expand All @@ -253,8 +251,6 @@ public function assertSent(string|callable $value): void

/**
* Assert that a given request was not sent.
*
* @throws \ReflectionException
*/
public function assertNotSent(string|callable $request): void
{
Expand All @@ -267,7 +263,6 @@ public function assertNotSent(string|callable $request): void
* Assert JSON data was sent
*
* @param array<string, mixed> $data
* @throws \ReflectionException
*/
public function assertSentJson(string $request, array $data): void
{
Expand All @@ -294,8 +289,6 @@ public function assertSentCount(int $count): void

/**
* Check if a given request was sent
*
* @throws \ReflectionException
*/
protected function checkRequestWasSent(string|callable $request): bool
{
Expand All @@ -318,8 +311,6 @@ protected function checkRequestWasSent(string|callable $request): bool

/**
* Check if a request has not been sent.
*
* @throws \ReflectionException
*/
protected function checkRequestWasNotSent(string|callable $request): bool
{
Expand Down

0 comments on commit 1e0cfe9

Please sign in to comment.