Skip to content

Commit

Permalink
Fix PHPDoc for interface param
Browse files Browse the repository at this point in the history
  • Loading branch information
herndlm committed Oct 15, 2024
1 parent 9ff015b commit 23356e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Assert.php
Original file line number Diff line number Diff line change
Expand Up @@ -1566,7 +1566,7 @@ public static function interfaceExists($value, $message = '')
/**
* @psalm-pure
* @psalm-template ExpectedType of object
* @psalm-param class-string<ExpectedType>|ExpectedType $interface
* @psalm-param class-string<ExpectedType> $interface
* @psalm-assert class-string<ExpectedType>|ExpectedType $value
*
* @param mixed $value
Expand Down
6 changes: 3 additions & 3 deletions src/Mixin.php
Original file line number Diff line number Diff line change
Expand Up @@ -4074,7 +4074,7 @@ public static function allNullOrInterfaceExists($value, $message = '')
/**
* @psalm-pure
* @psalm-template ExpectedType of object
* @psalm-param class-string<ExpectedType>|ExpectedType $interface
* @psalm-param class-string<ExpectedType> $interface
* @psalm-assert class-string<ExpectedType>|ExpectedType|null $value
*
* @param mixed $value
Expand All @@ -4093,7 +4093,7 @@ public static function nullOrImplementsInterface($value, $interface, $message =
/**
* @psalm-pure
* @psalm-template ExpectedType of object
* @psalm-param class-string<ExpectedType>|ExpectedType $interface
* @psalm-param class-string<ExpectedType> $interface
* @psalm-assert iterable<class-string<ExpectedType>|ExpectedType> $value
*
* @param mixed $value
Expand All @@ -4116,7 +4116,7 @@ public static function allImplementsInterface($value, $interface, $message = '')
/**
* @psalm-pure
* @psalm-template ExpectedType of object
* @psalm-param class-string<ExpectedType>|ExpectedType $interface
* @psalm-param class-string<ExpectedType> $interface
* @psalm-assert iterable<class-string<ExpectedType>|ExpectedType|null> $value
*
* @param mixed $value
Expand Down

0 comments on commit 23356e7

Please sign in to comment.