@@ -107,25 +107,25 @@ public static function getDeclarationName(File $phpcsFile, $stackPtr)
107107 * Each parameter is in the following format:
108108 * ```php
109109 * 0 => array(
110- * 'name' => '$var', // The variable name.
111- * 'token' => integer, // The stack pointer to the variable name.
112- * 'content' => string, // The full content of the variable definition.
113- * 'has_attributes' => boolean, // Does the parameter have one or more attributes attached ?
114- * 'pass_by_reference' => boolean, // Is the variable passed by reference?
115- * 'reference_token' => integer, // The stack pointer to the reference operator
116- * // or FALSE if the param is not passed by reference.
117- * 'variable_length' => boolean, // Is the param of variable length through use of `...` ?
118- * 'variadic_token' => integer, // The stack pointer to the ... operator
119- * // or FALSE if the param is not variable length.
120- * 'type_hint' => string, // The type hint for the variable.
121- * 'type_hint_token' => integer, // The stack pointer to the start of the type hint
122- * // or FALSE if there is no type hint.
123- * 'type_hint_end_token' => integer, // The stack pointer to the end of the type hint
124- * // or FALSE if there is no type hint.
125- * 'nullable_type' => boolean, // TRUE if the var type is preceded by the nullability
126- * // operator.
127- * 'comma_token' => integer, // The stack pointer to the comma after the param
128- * // or FALSE if this is the last param.
110+ * 'name' => string, // The variable name.
111+ * 'token' => integer, // The stack pointer to the variable name.
112+ * 'content' => string, // The full content of the variable definition.
113+ * 'has_attributes' => boolean, // Does the parameter have one or more attributes attached ?
114+ * 'pass_by_reference' => boolean, // Is the variable passed by reference?
115+ * 'reference_token' => integer|false , // The stack pointer to the reference operator
116+ * // or FALSE if the param is not passed by reference.
117+ * 'variable_length' => boolean, // Is the param of variable length through use of `...` ?
118+ * 'variadic_token' => integer|false , // The stack pointer to the ... operator
119+ * // or FALSE if the param is not variable length.
120+ * 'type_hint' => string, // The type hint for the variable.
121+ * 'type_hint_token' => integer|false , // The stack pointer to the start of the type hint
122+ * // or FALSE if there is no type hint.
123+ * 'type_hint_end_token' => integer|false , // The stack pointer to the end of the type hint
124+ * // or FALSE if there is no type hint.
125+ * 'nullable_type' => boolean, // TRUE if the var type is preceded by the nullability
126+ * // operator.
127+ * 'comma_token' => integer|false , // The stack pointer to the comma after the param
128+ * // or FALSE if this is the last param.
129129 * )
130130 * ```
131131 *
@@ -142,6 +142,7 @@ public static function getDeclarationName(File $phpcsFile, $stackPtr)
142142 * 'visibility_token' => integer, // The stack pointer to the visibility modifier token.
143143 * 'property_readonly' => bool, // TRUE if the readonly keyword was found.
144144 * 'readonly_token' => integer, // The stack pointer to the readonly modifier token.
145+ * // This index will only be set if the property is readonly.
145146 * ```
146147 *
147148 * PHPCS cross-version compatible version of the `File::getMethodParameters()` method.
@@ -431,19 +432,19 @@ public static function getMethodParameters(File $phpcsFile, $stackPtr)
431432 * The format of the return value is:
432433 * ```php
433434 * array(
434- * 'scope' => 'public', // Public, private, or protected
435- * 'scope_specified' => true, // TRUE if the scope keyword was found.
436- * 'return_type' => '', // The return type of the method.
437- * 'return_type_token' => integer, // The stack pointer to the start of the return type
438- * // or FALSE if there is no return type.
439- * 'return_type_end_token' => integer, // The stack pointer to the end of the return type
440- * // or FALSE if there is no return type.
441- * 'nullable_return_type' => false, // TRUE if the return type is preceded by
442- * // the nullability operator.
443- * 'is_abstract' => false, // TRUE if the abstract keyword was found.
444- * 'is_final' => false, // TRUE if the final keyword was found.
445- * 'is_static' => false, // TRUE if the static keyword was found.
446- * 'has_body' => false, // TRUE if the method has a body
435+ * 'scope' => string, // Public, private, or protected
436+ * 'scope_specified' => boolean, // TRUE if the scope keyword was found.
437+ * 'return_type' => string, // The return type of the method.
438+ * 'return_type_token' => integer|false, // The stack pointer to the start of the return type
439+ * // or FALSE if there is no return type.
440+ * 'return_type_end_token' => integer|false, // The stack pointer to the end of the return type
441+ * // or FALSE if there is no return type.
442+ * 'nullable_return_type' => boolean, // TRUE if the return type is preceded by
443+ * // the nullability operator.
444+ * 'is_abstract' => boolean, // TRUE if the abstract keyword was found.
445+ * 'is_final' => boolean, // TRUE if the final keyword was found.
446+ * 'is_static' => boolean, // TRUE if the static keyword was found.
447+ * 'has_body' => boolean, // TRUE if the method has a body
447448 * );
448449 * ```
449450 *
@@ -478,17 +479,17 @@ public static function getMethodProperties(File $phpcsFile, $stackPtr)
478479 * The format of the return value is:
479480 * ```php
480481 * array(
481- * 'scope' => string, // Public, private, or protected.
482- * 'scope_specified' => boolean, // TRUE if the scope was explicitly specified.
483- * 'is_static' => boolean, // TRUE if the static keyword was found.
484- * 'is_readonly' => boolean, // TRUE if the readonly keyword was found.
485- * 'type' => string, // The type of the var (empty if no type specified).
486- * 'type_token' => integer, // The stack pointer to the start of the type
487- * // or FALSE if there is no type.
488- * 'type_end_token' => integer, // The stack pointer to the end of the type
489- * // or FALSE if there is no type.
490- * 'nullable_type' => boolean, // TRUE if the type is preceded by the
491- * // nullability operator.
482+ * 'scope' => string, // Public, private, or protected.
483+ * 'scope_specified' => boolean, // TRUE if the scope was explicitly specified.
484+ * 'is_static' => boolean, // TRUE if the static keyword was found.
485+ * 'is_readonly' => boolean, // TRUE if the readonly keyword was found.
486+ * 'type' => string, // The type of the var (empty if no type specified).
487+ * 'type_token' => integer|false , // The stack pointer to the start of the type
488+ * // or FALSE if there is no type.
489+ * 'type_end_token' => integer|false , // The stack pointer to the end of the type
490+ * // or FALSE if there is no type.
491+ * 'nullable_type' => boolean, // TRUE if the type is preceded by the
492+ * // nullability operator.
492493 * );
493494 * ```
494495 *
@@ -524,8 +525,8 @@ public static function getMemberProperties(File $phpcsFile, $stackPtr)
524525 * The format of the return value is:
525526 * ```php
526527 * array(
527- * 'is_abstract' => false , // TRUE if the abstract keyword was found.
528- * 'is_final' => false , // TRUE if the final keyword was found.
528+ * 'is_abstract' => boolean , // TRUE if the abstract keyword was found.
529+ * 'is_final' => boolean , // TRUE if the final keyword was found.
529530 * );
530531 * ```
531532 *
0 commit comments