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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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: Fri Mar 29 07:01:28 2024 UTC