Skip to content

Commit

Permalink
ReflectionProvider->hasClass() narrows $className arg
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm authored and ondrejmirtes committed Mar 18, 2024
1 parent 737f5a0 commit 2d4a799
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Reflection/ReflectionProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
interface ReflectionProvider
{

/** @phpstan-assert-if-true =class-string $className */
public function hasClass(string $className): bool;

public function getClass(string $className): ClassReflection;
Expand Down

0 comments on commit 2d4a799

Please sign in to comment.