diff --git a/src/Illuminate/Container/Util.php b/src/Illuminate/Container/Util.php index 4a4d3b30a599..0b4bb1283467 100644 --- a/src/Illuminate/Container/Util.php +++ b/src/Illuminate/Container/Util.php @@ -55,7 +55,7 @@ public static function getParameterClassName($parameter) $name = $type->getName(); - if (!is_null($class = $parameter->getDeclaringClass())) { + if (! is_null($class = $parameter->getDeclaringClass())) { if ($name === 'self') { return $class->getName(); } diff --git a/src/Illuminate/Support/Reflector.php b/src/Illuminate/Support/Reflector.php index 4ab922d2a5c8..fb597f5141f1 100644 --- a/src/Illuminate/Support/Reflector.php +++ b/src/Illuminate/Support/Reflector.php @@ -23,7 +23,7 @@ public static function getParameterClassName($parameter) $name = $type->getName(); - if (!is_null($class = $parameter->getDeclaringClass())) { + if (! is_null($class = $parameter->getDeclaringClass())) { if ($name === 'self') { return $class->getName(); } diff --git a/tests/Support/SupportReflectorTest.php b/tests/Support/SupportReflectorTest.php index f9d80b5f10f8..55c4940f7543 100644 --- a/tests/Support/SupportReflectorTest.php +++ b/tests/Support/SupportReflectorTest.php @@ -10,7 +10,6 @@ use Illuminate\Support\Testing\Fakes\PendingMailFake; use PHPUnit\Framework\TestCase; use ReflectionClass; -use ReflectionParameter; class SupportReflectorTest extends TestCase { @@ -71,8 +70,7 @@ public function f(parent $x) } } -if (PHP_MAJOR_VERSION >= 8) -{ +if (PHP_MAJOR_VERSION >= 8) { eval(' namespace Illuminate\Tests\Support;