@@ -65,14 +65,12 @@ function get_mangled_object_vars(object $object): array {}
65
65
*/
66
66
function get_class_methods (object |string $ object_or_class ): array {}
67
67
68
- /** @param object|string $object_or_class */
69
- function method_exists ($ object_or_class , string $ method ): bool {}
68
+ function method_exists (object |string $ object_or_class , string $ method ): bool {}
70
69
71
70
/**
72
- * @param object|string $object_or_class
73
71
* @frameless-function {"arity": 2}
74
72
*/
75
- function property_exists ($ object_or_class , string $ property ): bool {}
73
+ function property_exists (object | string $ object_or_class , string $ property ): bool {}
76
74
77
75
/**
78
76
* @frameless-function {"arity": 1}
@@ -107,13 +105,11 @@ function trigger_error(string $message, int $error_level = E_USER_NOTICE): true
107
105
/** @alias trigger_error */
108
106
function user_error (string $ message , int $ error_level = E_USER_NOTICE ): true {}
109
107
110
- /** @return callable|null */
111
- function set_error_handler (?callable $ callback , int $ error_levels = E_ALL ) {}
108
+ function set_error_handler (?callable $ callback , int $ error_levels = E_ALL ): ?callable {}
112
109
113
110
function restore_error_handler (): true {}
114
111
115
- /** @return callable|null */
116
- function set_exception_handler (?callable $ callback ) {}
112
+ function set_exception_handler (?callable $ callback ): ?callable {}
117
113
118
114
function restore_exception_handler (): true {}
119
115
0 commit comments