Bug #81200 [Opn->Csd]: Determine if Closure is static

From: Date: Mon, 28 Jun 2021 07:49:55 +0000
Subject: Bug #81200 [Opn->Csd]: Determine if Closure is static
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-234656@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=81200&edit=1 ID: 81200 Updated by: git@php.net Reported by: krakjoe@php.net Summary: Determine if Closure is static -Status: Open +Status: Closed Type: Bug Package: Reflection related PHP Version: Irrelevant Block user comment: N Private report: N New Comment: Automatic comment on behalf of krakjoe Revision: https://github.com/php/php-src/commit/aad0d26816fa04eb5b273ad9775a79c7b9dd7c4a Log: Fix bug #81200 ReflectionMethod::isStatic belongs on ReflectionFunctionAbstract Previous Comments: ------------------------------------------------------------------------ [2021-06-25 09:41:29] krakjoe@php.net Description: ------------ The isStatic method exists only on ReflectionMethod, this means you can't use ReflectionFunction::isStatic on a closure. Since all other Closure reflection methods are declared as part of ReflectionFunctionAbstract, we need to move ReflectionMethod::isStatic to RFA. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=81200&edit=1

« previous php.bugs (#234656) next »