php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #81200 Determine if Closure is static
Submitted: 2021-06-25 09:41 UTC Modified: -
From: krakjoe@php.net Assigned:
Status: Closed Package: Reflection related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2021-06-25 09:41 UTC] 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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-06-28 07:49 UTC] git@php.net
Automatic comment on behalf of krakjoe
Revision: https://github.com/php/php-src/commit/aad0d26816fa04eb5b273ad9775a79c7b9dd7c4a
Log: Fix bug #81200 ReflectionMethod::isStatic belongs on ReflectionFunctionAbstract
 [2021-06-28 07:49 UTC] git@php.net
-Status: Open +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 08:01:29 2024 UTC