diff --git a/src/JsonApi/Hydrator/AbstractCreateHydrator.php b/src/JsonApi/Hydrator/AbstractCreateHydrator.php index d57ad34..16580d8 100644 --- a/src/JsonApi/Hydrator/AbstractCreateHydrator.php +++ b/src/JsonApi/Hydrator/AbstractCreateHydrator.php @@ -24,7 +24,7 @@ public function hydrate(JsonApiRequestInterface $request, ExceptionFactoryInterf { $domainObject = $this->hydrateForCreate($request, $exceptionFactory, $domainObject); - $this->validateDomainObject($domainObject, $request, $exceptionFactory); + $this->validateDomainObject($request, $exceptionFactory, $domainObject); return $domainObject; } @@ -34,9 +34,9 @@ public function hydrate(JsonApiRequestInterface $request, ExceptionFactoryInterf * @param mixed $domainObject */ protected function validateDomainObject( - $domainObject, JsonApiRequestInterface $request, - ExceptionFactoryInterface $exceptionFactory + ExceptionFactoryInterface $exceptionFactory, + $domainObject ): void { } } diff --git a/src/JsonApi/Hydrator/AbstractHydrator.php b/src/JsonApi/Hydrator/AbstractHydrator.php index df3c87d..5303753 100644 --- a/src/JsonApi/Hydrator/AbstractHydrator.php +++ b/src/JsonApi/Hydrator/AbstractHydrator.php @@ -34,7 +34,7 @@ public function hydrate(JsonApiRequestInterface $request, ExceptionFactoryInterf $domainObject = $this->hydrateForUpdate($request, $exceptionFactory, $domainObject); } - $this->validateDomainObject($domainObject, $request, $exceptionFactory); + $this->validateDomainObject($request, $exceptionFactory, $domainObject); return $domainObject; } @@ -58,9 +58,9 @@ public function hydrateRelationship( * @param mixed $domainObject */ protected function validateDomainObject( - $domainObject, JsonApiRequestInterface $request, - ExceptionFactoryInterface $exceptionFactory + ExceptionFactoryInterface $exceptionFactory, + $domainObject ): void { } } diff --git a/src/JsonApi/Hydrator/AbstractUpdateHydrator.php b/src/JsonApi/Hydrator/AbstractUpdateHydrator.php index 0d00b0d..61c2b4f 100644 --- a/src/JsonApi/Hydrator/AbstractUpdateHydrator.php +++ b/src/JsonApi/Hydrator/AbstractUpdateHydrator.php @@ -26,7 +26,7 @@ public function hydrate(JsonApiRequestInterface $request, ExceptionFactoryInterf { $domainObject = $this->hydrateForUpdate($request, $exceptionFactory, $domainObject); - $this->validateDomainObject($domainObject, $request, $exceptionFactory); + $this->validateDomainObject($request, $exceptionFactory, $domainObject); return $domainObject; } @@ -50,9 +50,9 @@ public function hydrateRelationship( * @param mixed $domainObject */ protected function validateDomainObject( - $domainObject, JsonApiRequestInterface $request, - ExceptionFactoryInterface $exceptionFactory + ExceptionFactoryInterface $exceptionFactory, + $domainObject ): void { } }