Skip to content

Commit

Permalink
#100 Fix error in createResourceIdInvalidException
Browse files Browse the repository at this point in the history
  • Loading branch information
kocsismate committed Dec 6, 2020
1 parent 7975b5d commit 6ca8d58
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/JsonApi/Exception/DefaultExceptionFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
use Psr\Http\Message\ResponseInterface;
use WoohooLabs\Yin\JsonApi\Request\JsonApiRequestInterface;

use function gettype;

class DefaultExceptionFactory implements ExceptionFactoryInterface
{
public function createApplicationErrorException(JsonApiRequestInterface $request): JsonApiExceptionInterface
Expand Down Expand Up @@ -165,7 +167,7 @@ public function createResourceIdentifierTypeMissingException(array $resourceIden
*/
public function createResourceIdInvalidException($id): JsonApiExceptionInterface
{
return new ResourceIdInvalid($id);
return new ResourceIdInvalid(gettype($id));
}

public function createResourceIdMissingException(): JsonApiExceptionInterface
Expand Down

0 comments on commit 6ca8d58

Please sign in to comment.