Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions tests/Unit/Declaration/Fixture/FixedReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 [];
}
Expand All @@ -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 [];
}
Expand All @@ -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 [];
}
Expand All @@ -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 [];
}
Expand All @@ -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 [];
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Worker/AutowiringTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')],
Expand Down
Loading