Commit 4ba865110df for php.net

commit 4ba865110df53f6d24c3af689c4412c63d166e48
Author: Daniel Scherzer <daniel.e.scherzer@gmail.com>
Date:   Thu Jul 2 13:51:11 2026 -0700

    `ReflectionFunctionAbstract::getClosureCalledClass()`: remove pointer cast

    `called_scope` was declared to be a pointer to a `zend_class_entry`, no cast is
    needed.

diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c
index 7a24f084045..b120e8e4eb9 100644
--- a/ext/reflection/php_reflection.c
+++ b/ext/reflection/php_reflection.c
@@ -1847,7 +1847,7 @@ ZEND_METHOD(ReflectionFunctionAbstract, getClosureCalledClass)
 		if (Z_OBJ_HANDLER(intern->obj, get_closure)
 		 && Z_OBJ_HANDLER(intern->obj, get_closure)(Z_OBJ(intern->obj), &called_scope, &closure_func, &object, true) == SUCCESS
 		 && closure_func && (called_scope || closure_func->common.scope)) {
-			zend_reflection_class_factory(called_scope ? (zend_class_entry *) called_scope : closure_func->common.scope, return_value);
+			zend_reflection_class_factory(called_scope ? called_scope : closure_func->common.scope, return_value);
 		}
 	}
 }