Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
class check for dependencies removed
Browse files Browse the repository at this point in the history
  • Loading branch information
mkorkmaz committed May 10, 2021
1 parent 51b32e7 commit 6158925
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
2 changes: 0 additions & 2 deletions src/Resolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ private static function getParamType(ReflectionParameter $parameter): array
}

try {
self::checkClassName($type->getName());

return ['name' => $parameter->name, 'type' => $type->getName()];
} catch (ReflectionException $e) {
throw new ClassOrMethodCouldNotBeFound($e->getMessage());
Expand Down
9 changes: 0 additions & 9 deletions tests/unit/ResolverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,4 @@ public function getTypeHintClassesShouldThrowExceptionForNonExistingMethod(): vo

Selami\Stdlib\Resolver::getParameterHints(TypeHintedClass::class, 'nonExistingMethod');
}

/**
* @test
*/
public function getTypeHintClassesShouldThrowExceptionForNonExistingClassHint(): void
{
$this->expectException(ClassOrMethodCouldNotBeFound::class);
$result = Selami\Stdlib\Resolver::getParameterHints(TypeHintedClass::class, 'method2');
}
}

0 comments on commit 6158925

Please sign in to comment.