We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61ad0bf commit 8185e0cCopy full SHA for 8185e0c
src/PhpGenerator/GlobalFunction.php
@@ -25,9 +25,9 @@ final class GlobalFunction
25
use Traits\CommentAware;
26
use Traits\AttributeAware;
27
28
- public static function from(string $function): self
+ public static function from(string $function, bool $withBody = false): self
29
{
30
- return (new Factory)->fromFunctionReflection(new \ReflectionFunction($function));
+ return (new Factory)->fromFunctionReflection(new \ReflectionFunction($function), $withBody);
31
}
32
33
0 commit comments