Skip to content

Commit

Permalink
Pass class-string instead of Type
Browse files Browse the repository at this point in the history
  • Loading branch information
frankdekker committed Sep 16, 2024
1 parent bfad4a1 commit dcb9b46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Constraint/ConstraintConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class ConstraintConfig
/** @var null|callable(): mixed[] */
private $constructorCallback = null;

/** @var null|(callable(class-string): mixed) */
/** @var null|(callable(class-string): ?object) */
private $valueProvider = null;

public function hasAccessorPairCheck(): bool
Expand Down Expand Up @@ -145,7 +145,7 @@ public function getValueProvider(): ?callable
* is the class-string of the value, the return value should be the provided value. Return <code>null</code>
* to skip the value provider and use the default value providers.
*
* @param callable(class-string): mixed $valueProvider
* @param callable(class-string): ?object $valueProvider
*/
public function setValueProvider(callable $valueProvider): self
{
Expand Down

0 comments on commit dcb9b46

Please sign in to comment.