Skip to content

Commit

Permalink
Ignore ReflectionClass properties when analysing
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernhard Schmitt committed Jun 23, 2022
1 parent 9aab00e commit 190a866
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions Classes/Domain/Component/PropType/IsComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
*/
final class IsComponent
{
/**
* @param \ReflectionClass<T> $reflectionClass
*/
/** @phpstan-ignore-next-line */
public static function isSatisfiedByReflectionClass(\ReflectionClass $reflectionClass): bool
{
return self::isSatisfiedByClassName($reflectionClass->getName());
Expand Down
2 changes: 1 addition & 1 deletion Classes/Domain/Component/Props.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ public static function fromClassName(string $className): self
}

/**
* @param \ReflectionClass<T> $reflectionClass
* @return array<string,PropTypeInterface>
*/
/** @phpstan-ignore-next-line */
private static function extractPropsFromReflectionClass(\ReflectionClass $reflectionClass): array
{
$parentReflectionClass = $reflectionClass->getParentClass();
Expand Down

0 comments on commit 190a866

Please sign in to comment.