From eacdfedab53380f09f962a39eda9dcede713e59f Mon Sep 17 00:00:00 2001 From: TomasVotruba <924196+TomasVotruba@users.noreply.github.com> Date: Sun, 17 May 2026 01:11:42 +0000 Subject: [PATCH] [automated] Apply Coding Standard --- .../AddNameToBooleanArgumentRectorTest.php | 2 +- rules/Php81/NodeManipulator/NullToStrictStringIntConverter.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/rules-tests/CodeQuality/Rector/CallLike/AddNameToBooleanArgumentRector/AddNameToBooleanArgumentRectorTest.php b/rules-tests/CodeQuality/Rector/CallLike/AddNameToBooleanArgumentRector/AddNameToBooleanArgumentRectorTest.php index b620c2f8260..f187cab1a49 100644 --- a/rules-tests/CodeQuality/Rector/CallLike/AddNameToBooleanArgumentRector/AddNameToBooleanArgumentRectorTest.php +++ b/rules-tests/CodeQuality/Rector/CallLike/AddNameToBooleanArgumentRector/AddNameToBooleanArgumentRectorTest.php @@ -18,7 +18,7 @@ public function test(string $filePath): void public static function provideData(): Iterator { - return AddNameToBooleanArgumentRectorTest::yieldFilesFromDirectory(__DIR__ . '/Fixture'); + return self::yieldFilesFromDirectory(__DIR__ . '/Fixture'); } public function provideConfigFilePath(): string diff --git a/rules/Php81/NodeManipulator/NullToStrictStringIntConverter.php b/rules/Php81/NodeManipulator/NullToStrictStringIntConverter.php index 75c982b3cc8..23f45153297 100644 --- a/rules/Php81/NodeManipulator/NullToStrictStringIntConverter.php +++ b/rules/Php81/NodeManipulator/NullToStrictStringIntConverter.php @@ -176,7 +176,8 @@ private function isPropertyFetchOnClassWithMagicGet(Expr $expr): bool return false; } - return $this->reflectionProvider->getClass($varType->getClassName())->hasMethod('__get'); + return $this->reflectionProvider->getClass($varType->getClassName()) + ->hasMethod('__get'); } private function isValidUnionType(Type $type): bool