From 8b56e37d6ffc77dbe7c3fcf9abcb499cb9195936 Mon Sep 17 00:00:00 2001 From: miladev-ent Date: Thu, 29 Jun 2023 09:26:15 +0330 Subject: [PATCH] add hint-type for `method_exists` & `property_exists` --- Zend/zend_builtin_functions.stub.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Zend/zend_builtin_functions.stub.php b/Zend/zend_builtin_functions.stub.php index 94d356e79088a..551083314c4d7 100644 --- a/Zend/zend_builtin_functions.stub.php +++ b/Zend/zend_builtin_functions.stub.php @@ -66,10 +66,10 @@ function get_mangled_object_vars(object $object): array {} function get_class_methods(object|string $object_or_class): array {} /** @param object|string $object_or_class */ -function method_exists($object_or_class, string $method): bool {} +function method_exists(object|string $object_or_class, string $method): bool {} /** @param object|string $object_or_class */ -function property_exists($object_or_class, string $property): bool {} +function property_exists(object|string $object_or_class, string $property): bool {} function class_exists(string $class, bool $autoload = true): bool {}