Skip to content

Commit

Permalink
Fix for signatures of public typed properties (new in PHP7.4), issue #…
Browse files Browse the repository at this point in the history
  • Loading branch information
tvandervorm committed Jul 9, 2019
1 parent e69d1cb commit 5e98b8f
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -136,7 +136,7 @@ private function generateSignature(\ReflectionClass $class)

foreach ($class->getProperties(\ReflectionProperty::IS_PUBLIC | \ReflectionProperty::IS_PROTECTED) as $p) {
yield $p->getDocComment().$p;
yield print_r($defaults[$p->name], true);
yield print_r($defaults[$p->name] ?? null, true);
}
}

Expand Down

0 comments on commit 5e98b8f

Please sign in to comment.