Skip to content

Commit

Permalink
Improve typehints in tests
Browse files Browse the repository at this point in the history
PHPStan level 7
  • Loading branch information
pawel-slowik committed Oct 17, 2024
1 parent 096e71c commit a14dd87
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/Documentation/DocumentedTestBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@

abstract class DocumentedTestBase extends TestCase
{
/**
* @param class-string $className
*/
protected function getReflectedMethod(
string $className,
string $methodName
Expand All @@ -27,6 +30,9 @@ protected function getReflectedMethod(
return $matchingMethodReflections[0];
}

/**
* @param class-string $className
*/
protected function getReflectedParameter(
string $className,
string $methodName,
Expand Down

0 comments on commit a14dd87

Please sign in to comment.