mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
chore: static analysis adjustments - deprecation RE: ReflectionType::__toString
This commit is contained in:
@ -165,7 +165,9 @@ final class Reflection
|
||||
$arguments = [];
|
||||
|
||||
foreach ($parameters as $parameter) {
|
||||
$arguments[$parameter->getName()] = ($parameter->hasType()) ? (string) $parameter->getType() : 'mixed';
|
||||
/** @var ReflectionNamedType|null $type */
|
||||
$type = ($parameter->hasType()) ? $parameter->getType() : null;
|
||||
$arguments[$parameter->getName()] = (is_null($type)) ? 'mixed' : $type->getName();
|
||||
}
|
||||
|
||||
return $arguments;
|
||||
|
||||
Reference in New Issue
Block a user