From b0d35366c98de073671c010cf52b4c9b7efeb9cf Mon Sep 17 00:00:00 2001 From: Viktor Khokhryakov Date: Thu, 4 Apr 2019 14:26:48 +0400 Subject: [PATCH] Fix ReflectionClass::getMethods --- Reflection/Reflection.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Reflection/Reflection.php b/Reflection/Reflection.php index b6decffa..4715ce2a 100644 --- a/Reflection/Reflection.php +++ b/Reflection/Reflection.php @@ -1010,19 +1010,20 @@ class ReflectionClass implements Reflector { /** * Gets an array of methods * @link https://php.net/manual/en/reflectionclass.getmethods.php - * @param string $filter [optional]

+ * @param int $filter [optional]

* Filter the results to include only methods with certain attributes. Defaults * to no filtering. *

*

- * Any combination of ReflectionMethod::IS_STATIC, + * Any bitwise disjunction of ReflectionMethod::IS_STATIC, * ReflectionMethod::IS_PUBLIC, * ReflectionMethod::IS_PROTECTED, * ReflectionMethod::IS_PRIVATE, * ReflectionMethod::IS_ABSTRACT, - * ReflectionMethod::IS_FINAL. + * ReflectionMethod::IS_FINAL, + * so that all methods with any of the given attributes will be returned. *

- * @return ReflectionMethod[] An array of methods. + * @return ReflectionMethod[] An array of ReflectionMethod objects reflecting each method. * @since 5.0 */ public function getMethods ($filter = null) {}