Update default of ClassMethod::$flags in docs

This defaults to 0, not Modifiers::PUBLIC.
This commit is contained in:
Nikita Popov 2022-09-03 11:02:16 +02:00
parent f5b56a5c4c
commit 2b562b72a8

View File

@ -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