diff --git a/tests/Unit/Declaration/Fixture/FixedReader.php b/tests/Unit/Declaration/Fixture/FixedReader.php index 227ec60d4..c470148bd 100644 --- a/tests/Unit/Declaration/Fixture/FixedReader.php +++ b/tests/Unit/Declaration/Fixture/FixedReader.php @@ -18,7 +18,7 @@ class FixedReader implements ReaderInterface { - public function getClassMetadata(\ReflectionClass $class, string $name = null): iterable + public function getClassMetadata(\ReflectionClass $class, ?string $name = null): iterable { return []; } @@ -36,7 +36,7 @@ public function firstClassMetadata(\ReflectionClass $class, string $name): ?obje return null; } - public function getFunctionMetadata(\ReflectionFunctionAbstract $function, string $name = null): iterable + public function getFunctionMetadata(\ReflectionFunctionAbstract $function, ?string $name = null): iterable { return []; } @@ -50,7 +50,7 @@ public function firstFunctionMetadata(\ReflectionFunctionAbstract $function, str return null; } - public function getPropertyMetadata(\ReflectionProperty $property, string $name = null): iterable + public function getPropertyMetadata(\ReflectionProperty $property, ?string $name = null): iterable { return []; } @@ -60,7 +60,7 @@ public function firstPropertyMetadata(\ReflectionProperty $property, string $nam return null; } - public function getConstantMetadata(\ReflectionClassConstant $constant, string $name = null): iterable + public function getConstantMetadata(\ReflectionClassConstant $constant, ?string $name = null): iterable { return []; } @@ -70,7 +70,7 @@ public function firstConstantMetadata(\ReflectionClassConstant $constant, string return null; } - public function getParameterMetadata(\ReflectionParameter $parameter, string $name = null): iterable + public function getParameterMetadata(\ReflectionParameter $parameter, ?string $name = null): iterable { return []; } diff --git a/tests/Unit/Worker/AutowiringTestCase.php b/tests/Unit/Worker/AutowiringTestCase.php index b5a2ec245..67b4822fc 100644 --- a/tests/Unit/Worker/AutowiringTestCase.php +++ b/tests/Unit/Worker/AutowiringTestCase.php @@ -42,7 +42,7 @@ public static function reflectionDataProvider(): array static::class . '->instanceMethod' => [new \ReflectionMethod($instance, 'instanceMethod')], // Static Method - static::class . '::staticMethod' => [new \ReflectionMethod(static::class . '::staticMethod')], + static::class . '::staticMethod' => [new \ReflectionMethod(static::class, 'staticMethod')], // Function __NAMESPACE__ . '\\global_function' => [new \ReflectionFunction(__NAMESPACE__ . '\\global_function')],