From 6a0a6a328b79d8ff8419833240c9f43a6c9c8504 Mon Sep 17 00:00:00 2001 From: Priyadi Iman Nurcahyo <1102197+priyadi@users.noreply.github.com> Date: Fri, 19 Jul 2024 14:10:09 +0700 Subject: [PATCH] codeQuality: true --- .../src/PropertyLister/AttributesPropertyLister.php | 4 ++-- rector.php | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/file-association/src/PropertyLister/AttributesPropertyLister.php b/packages/file-association/src/PropertyLister/AttributesPropertyLister.php index fe1aaec..7cb1974 100644 --- a/packages/file-association/src/PropertyLister/AttributesPropertyLister.php +++ b/packages/file-association/src/PropertyLister/AttributesPropertyLister.php @@ -47,7 +47,7 @@ public function getFileProperties(object $object): iterable * @param class-string $class * @return iterable<\ReflectionProperty> */ - private static function getReflectionProperties(string $class): iterable + private function getReflectionProperties(string $class): iterable { $reflectionClass = (new \ReflectionClass($class)); while ($reflectionClass instanceof \ReflectionClass) { @@ -72,7 +72,7 @@ private function getReflectionPropertiesWithAttribute( string $class, string $attribute ): iterable { - foreach (self::getReflectionProperties($class) as $reflectionProperty) { + foreach ($this->getReflectionProperties($class) as $reflectionProperty) { $attributes = $reflectionProperty ->getAttributes($attribute); diff --git a/rector.php b/rector.php index ce755db..bb21699 100644 --- a/rector.php +++ b/rector.php @@ -32,7 +32,7 @@ ]) ->withPreparedSets( deadCode: true, - // codeQuality: true, + codeQuality: true, // codingStyle: true, typeDeclarations: true, // privatization: true, @@ -41,7 +41,6 @@ // symfonyCodeQuality: true, // doctrineCodeQuality: true, ) - ->withCodeQualityLevel(70) ->withPhpSets(php81: true) ->withRules([ // AddOverrideAttributeToOverriddenMethodsRector::class,