Skip to content

Commit

Permalink
Simplify wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
Steveb-p committed Nov 18, 2024
1 parent 84ee00f commit 13d0118
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/contracts/Validation/AbstractValidationStructWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@ abstract class AbstractValidationStructWrapper implements ValidationStructWrappe
{
/**
* @phpstan-var T
*
* @Assert\Valid()
*/
private object $struct;
protected object $struct;

/**
* @phpstan-param T $struct
Expand All @@ -39,9 +37,4 @@ final public function getStruct(): object
{
return $this->struct;
}

final public function getStructName(): string
{
return 'struct';
}
}

0 comments on commit 13d0118

Please sign in to comment.