Skip to content

Commit

Permalink
VarianceCheck - accept only ParametersAcceptorWithPhpDocs
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Feb 12, 2023
1 parent 4b4b623 commit 7da13f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Rules/Generics/VarianceCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace PHPStan\Rules\Generics;

use PHPStan\Reflection\ParametersAcceptor;
use PHPStan\Reflection\ParametersAcceptorWithPhpDocs;
use PHPStan\Rules\RuleError;
use PHPStan\Rules\RuleErrorBuilder;
use PHPStan\Type\Generic\TemplateType;
Expand All @@ -15,7 +15,7 @@ class VarianceCheck

/** @return RuleError[] */
public function checkParametersAcceptor(
ParametersAcceptor $parametersAcceptor,
ParametersAcceptorWithPhpDocs $parametersAcceptor,
string $parameterTypeMessage,
string $returnTypeMessage,
string $generalMessage,
Expand Down

0 comments on commit 7da13f7

Please sign in to comment.