Skip to content

Commit 3e650f6

Browse files
committed
Change parameter order
1 parent cc0bc91 commit 3e650f6

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/JsonApi/Hydrator/AbstractCreateHydrator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function hydrate(JsonApiRequestInterface $request, ExceptionFactoryInterf
2424
{
2525
$domainObject = $this->hydrateForCreate($request, $exceptionFactory, $domainObject);
2626

27-
$this->validateDomainObject($domainObject, $request, $exceptionFactory);
27+
$this->validateDomainObject($request, $exceptionFactory, $domainObject);
2828

2929
return $domainObject;
3030
}
@@ -34,9 +34,9 @@ public function hydrate(JsonApiRequestInterface $request, ExceptionFactoryInterf
3434
* @param mixed $domainObject
3535
*/
3636
protected function validateDomainObject(
37-
$domainObject,
3837
JsonApiRequestInterface $request,
39-
ExceptionFactoryInterface $exceptionFactory
38+
ExceptionFactoryInterface $exceptionFactory,
39+
$domainObject
4040
): void {
4141
}
4242
}

src/JsonApi/Hydrator/AbstractHydrator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function hydrate(JsonApiRequestInterface $request, ExceptionFactoryInterf
3434
$domainObject = $this->hydrateForUpdate($request, $exceptionFactory, $domainObject);
3535
}
3636

37-
$this->validateDomainObject($domainObject, $request, $exceptionFactory);
37+
$this->validateDomainObject($request, $exceptionFactory, $domainObject);
3838

3939
return $domainObject;
4040
}
@@ -58,9 +58,9 @@ public function hydrateRelationship(
5858
* @param mixed $domainObject
5959
*/
6060
protected function validateDomainObject(
61-
$domainObject,
6261
JsonApiRequestInterface $request,
63-
ExceptionFactoryInterface $exceptionFactory
62+
ExceptionFactoryInterface $exceptionFactory,
63+
$domainObject
6464
): void {
6565
}
6666
}

src/JsonApi/Hydrator/AbstractUpdateHydrator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function hydrate(JsonApiRequestInterface $request, ExceptionFactoryInterf
2626
{
2727
$domainObject = $this->hydrateForUpdate($request, $exceptionFactory, $domainObject);
2828

29-
$this->validateDomainObject($domainObject, $request, $exceptionFactory);
29+
$this->validateDomainObject($request, $exceptionFactory, $domainObject);
3030

3131
return $domainObject;
3232
}
@@ -50,9 +50,9 @@ public function hydrateRelationship(
5050
* @param mixed $domainObject
5151
*/
5252
protected function validateDomainObject(
53-
$domainObject,
5453
JsonApiRequestInterface $request,
55-
ExceptionFactoryInterface $exceptionFactory
54+
ExceptionFactoryInterface $exceptionFactory,
55+
$domainObject
5656
): void {
5757
}
5858
}

0 commit comments

Comments
 (0)