Skip to content

Commit

Permalink
Merge pull request #179 from sasezaki/ReflectionMethod_getAnnotation_…
Browse files Browse the repository at this point in the history
…template

template annotation into ReflectionMethod::getAnnotation
  • Loading branch information
koriym committed Jul 30, 2021
2 parents 1e92a1f + 73f20b9 commit eeb95e8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/ReflectionMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,13 @@ public function getAnnotations(): array
}

/**
* {@inheritdoc}
* @param class-string<T> $annotationName
*
* @return T|null
*
* @template T of object
*
* @psalm-suppress MoreSpecificImplementedParamType
*/
public function getAnnotation(string $annotationName)
{
Expand Down

0 comments on commit eeb95e8

Please sign in to comment.