diff options
author | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-09-29 09:19:45 +0200 |
---|---|---|
committer | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-09-29 11:04:10 +0200 |
commit | 351776eae583d3dc352a4b3e8f4e4a639f8c59ec (patch) | |
tree | b6358d380469d7480493aad715e0279538f75f13 /ext/reflection/php_reflection.stub.php | |
parent | e19599287eb7c41f9cb7ecbff8f3a363b15971e9 (diff) | |
download | php-git-351776eae583d3dc352a4b3e8f4e4a639f8c59ec.tar.gz |
Make the $filter parameter of ReflectionClass::get*Constants() nullable
Diffstat (limited to 'ext/reflection/php_reflection.stub.php')
-rw-r--r-- | ext/reflection/php_reflection.stub.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/reflection/php_reflection.stub.php b/ext/reflection/php_reflection.stub.php index bd0a6fe0a1..cf6613c3a3 100644 --- a/ext/reflection/php_reflection.stub.php +++ b/ext/reflection/php_reflection.stub.php @@ -260,10 +260,10 @@ class ReflectionClass implements Reflector public function hasConstant(string $name) {} /** @return array|null */ - public function getConstants(int $filter = ReflectionClassConstant::IS_PUBLIC | ReflectionClassConstant::IS_PROTECTED | ReflectionClassConstant::IS_PRIVATE) {} + public function getConstants(?int $filter = null) {} /** @return ReflectionClassConstant[] */ - public function getReflectionConstants(int $filter = ReflectionClassConstant::IS_PUBLIC | ReflectionClassConstant::IS_PROTECTED | ReflectionClassConstant::IS_PRIVATE) {} + public function getReflectionConstants(?int $filter = null) {} /** @return mixed */ public function getConstant(string $name) {} |