Skip to content

Commit

Permalink
Remove return type on DataModelHelper::when(). (#24)
Browse files Browse the repository at this point in the history
Co-authored-by: david_smith <[email protected]>
  • Loading branch information
zero-to-prod and david_smith authored Nov 20, 2024
1 parent 2451ff1 commit b5790df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DataModelHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ public static function isMultiple(mixed $value, array $context, ?ReflectionAttri
* ])]
* ```
*/
public static function when(mixed $value, array $context, ?ReflectionAttribute $Attribute, ReflectionProperty $Property): ?string
public static function when(mixed $value, array $context, ?ReflectionAttribute $Attribute, ReflectionProperty $Property)
{
$args = $Attribute?->getArguments()[0];
if ((!empty($args['required']) || in_array('required', $args, true))
Expand Down

0 comments on commit b5790df

Please sign in to comment.