Skip to content

Commit

Permalink
fix: Larastan compability (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
canvural authored Oct 18, 2022
1 parent 08e9c28 commit 91b3e8d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/Rules/NoDynamicWhereRuleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace Vural\LarastanStrictRules\Rules;

use NunoMaduro\Larastan\Methods\BuilderHelper;
use NunoMaduro\Larastan\Methods\MacroMethodsClassReflectionExtension;
use PhpParser\Node\Expr\MethodCall;
use PHPStan\Rules\Rule;
use PHPStan\Testing\RuleTestCase;
Expand All @@ -15,7 +16,7 @@ class NoDynamicWhereRuleTest extends RuleTestCase
/** @return Rule<MethodCall> */
protected function getRule(): Rule
{
return new NoDynamicWhereRule($this->createReflectionProvider(), new BuilderHelper($this->createReflectionProvider(), false));
return new NoDynamicWhereRule($this->createReflectionProvider(), new BuilderHelper($this->createReflectionProvider(), false, $this->getContainer()->getByType(MacroMethodsClassReflectionExtension::class)));
}

/** @return string[] */
Expand Down

0 comments on commit 91b3e8d

Please sign in to comment.