From 2b562b72a852331ea048a13ff396d2012651bb94 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Sat, 3 Sep 2022 11:02:16 +0200 Subject: [PATCH] Update default of ClassMethod::$flags in docs This defaults to 0, not Modifiers::PUBLIC. --- lib/PhpParser/Node/Stmt/ClassMethod.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PhpParser/Node/Stmt/ClassMethod.php b/lib/PhpParser/Node/Stmt/ClassMethod.php index 12e44615..71cf1840 100644 --- a/lib/PhpParser/Node/Stmt/ClassMethod.php +++ b/lib/PhpParser/Node/Stmt/ClassMethod.php @@ -47,7 +47,7 @@ class ClassMethod extends Node\Stmt implements FunctionLike { * * @param string|Node\Identifier $name Name * @param array $subNodes Array of the following optional subnodes: - * 'flags => MODIFIER_PUBLIC: Flags + * 'flags => 0 : Flags * 'byRef' => false : Whether to return by reference * 'params' => array() : Parameters * 'returnType' => null : Return type