hasType()) { $type = FakeType::from($reflection->getType()->getName()); // @phpstan-ignore-line } return new ParameterDefinition( $reflection->name, 'Signature::' . $reflection->name, $type, $reflection->isOptional(), $reflection->isVariadic(), $reflection->isDefaultValueAvailable() ? $reflection->getDefaultValue() : null, new FakeAttributes() ); } }