mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-18 10:07:12 +00:00
🚨 assure backward compatibility
This commit is contained in:
@@ -71,6 +71,9 @@ final class MethodParameter
|
||||
|
||||
public function getDefaultValue(): ?string
|
||||
{
|
||||
if ($this->defaultValue === static::NO_DEFAULT_VALUE) {
|
||||
return null;
|
||||
}
|
||||
if (is_array($this->defaultValue)) {
|
||||
return implode(',', $this->defaultValue);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user