mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-18 01:57:13 +00:00
♻️ variable might not be defined
This commit is contained in:
@@ -261,6 +261,7 @@ final class Method extends BaseTag implements Factory\StaticMethod
|
||||
{
|
||||
$arguments = [];
|
||||
foreach ($this->parameters as $parameter) {
|
||||
$parameterDefaultValueStr = null;
|
||||
if ($parameter->getDefaultValue() !== null) {
|
||||
$parameterDefaultValueStr = $parameter->getDefaultValue();
|
||||
settype($parameterDefaultValueStr, (string)$parameter->getType());
|
||||
|
||||
Reference in New Issue
Block a user