|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #80188 stub.php files in php-src do not contain class constants and properties
Submitted: 2020-10-05 12:26 UTC Modified: 2021-02-18 11:40 UTC
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: ondrej at mirtes dot cz Assigned: kocsismate (profile)
Status: Assigned Package: Reflection related
PHP Version: 8.0.0rc1 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.
Block user comment
Status: Assign to:
Bug Type:
From: ondrej at mirtes dot cz
New email:
PHP Version: OS:


 [2020-10-05 12:26 UTC] ondrej at mirtes dot cz

I'd like to take advantage of the internal PHP stubs that are in php-src for PHPStan Static Analysis Tool. I've set up a repository that automatically extracts them and offers them as a Composer package:

But I found out that the classes are missing class constants and properties, which would be very useful for me.

Thank you.

Test script:

Expected result:

Actual result:

Patches (last revision 2020-11-16 22:33 UTC by chingbella03 at gmail dot com)

Add a Patch

Pull Requests

Pull requests:

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2020-10-07 08:24 UTC]
-Assigned To: +Assigned To: kocsismate
 [2020-10-07 11:34 UTC]
The following pull request has been associated:

Patch Name: Add support for declaring properties in stubs
On GitHub:
 [2020-11-16 22:33 UTC] chingbella03 at gmail dot com
The following patch has been added/updated:

Patch Name:
Revision:   1605565985
 [2021-02-18 11:40 UTC]
The stub files contain property declarations in PHP 8.1 -- I don't think there's plans to include constant declarations at this time.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri May 07 14:01:24 2021 UTC