Skip to content

Commit

Permalink
Set hydrate return type to void instead of null
Browse files Browse the repository at this point in the history
  • Loading branch information
TomHAnderson committed Sep 10, 2023
1 parent e30729a commit ccef253
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Hydrator/Strategy/NullifyOwningAssociation.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ public function extract(mixed $value, object|null $object = null): mixed
*
* @codeCoverageIgnore
*/
public function hydrate(mixed $value, array|null $data): null
public function hydrate(mixed $value, array|null $data): void
{
return null;
}
}

0 comments on commit ccef253

Please sign in to comment.