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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: krakjoe@php.net
New email:
PHP Version: OS:

 

 [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

Add a Patch

Pull Requests

Add a Pull Request

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 Apr 25 22:01:29 2024 UTC