diff --git a/src/Rules/DoctrineKeyValueStyleRule.php b/src/Rules/DoctrineKeyValueStyleRule.php index 896399f48..b36234dbe 100644 --- a/src/Rules/DoctrineKeyValueStyleRule.php +++ b/src/Rules/DoctrineKeyValueStyleRule.php @@ -32,11 +32,6 @@ final class DoctrineKeyValueStyleRule implements Rule */ private $classMethods; - /** - * @var QueryReflection - */ - private $queryReflection; - /** * @param list $classMethods */ @@ -55,7 +50,6 @@ public function __construct(array $classMethods) } $this->classMethods[] = [$className, $methodName, $arrayArgPositions]; } - $this->queryReflection = new QueryReflection(); } public function getNodeType(): string @@ -116,7 +110,8 @@ public function processNode(Node $callLike, Scope $scope): array ]; } - $schemaReflection = $this->queryReflection->getSchemaReflection(); + $queryReflection = new QueryReflection(); + $schemaReflection = $queryReflection->getSchemaReflection(); // Table name may be escaped with backticks $argTableName = trim($tableType->getValue(), '`');