Skip to content

Commit

Permalink
Merge pull request #60 from seferov/patch-1
Browse files Browse the repository at this point in the history
Typehint `getReflectionClass` in private scope
  • Loading branch information
Ocramius committed Oct 14, 2019
2 parents 7c71fc2 + dc36170 commit 67dbbd5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Doctrine/Instantiator/Instantiator.php
Expand Up @@ -107,12 +107,10 @@ private function buildFactory(string $className) : callable
}

/**
* @param string $className
*
* @throws InvalidArgumentException
* @throws ReflectionException
*/
private function getReflectionClass($className) : ReflectionClass
private function getReflectionClass(string $className) : ReflectionClass
{
if (! class_exists($className)) {
throw InvalidArgumentException::fromNonExistingClass($className);
Expand Down

0 comments on commit 67dbbd5

Please sign in to comment.