Bug #79804 [Opn]: Reflection doesn't know about DateInterval and DatePeriod properties
Edit report at https://bugs.php.net/bug.php?id=79804&edit=1
ID: 79804
User updated by: ondrej at mirtes dot cz
Reported by: ondrej at mirtes dot cz
Summary: Reflection doesn't know about DateInterval and
DatePeriod properties
Status: Open
Type: Bug
Package: Reflection related
PHP Version: 8.0.0alpha1
Block user comment: N
Private report: N
New Comment:
Can something be done about LibXMLError missing from the stubs? https://github.com/php/php-src/blob/master/ext/libxml/libxml.stub.php
Previous Comments:
------------------------------------------------------------------------
[2020-07-08 08:49:54] nikic@php.net
Typed property declarations for LibXMLError added in https://github.com/php/php-src/commit/22be60bb251dd6bde055180be527d9cf8d331e28.
------------------------------------------------------------------------
[2020-07-07 15:36:39] ondrej at mirtes dot cz
These properties are not even mentioned in any way in these new stubs
(https://github.com/php/php-src/blob/master/ext/date/php_date.stub.php) which makes it really
difficult to support them in static analysis...
------------------------------------------------------------------------
[2020-07-07 15:31:53] nikic@php.net
We may be able to address some cases though, for example I don't see any reason why LibXMLError
doesn't have declared properties -- it doesn't seem to be doing anything magic.
------------------------------------------------------------------------
[2020-07-07 15:29:34] nikic@php.net
I'm not willing to address this unless either a) those become normal properties or b) we get
first-class accessor support, and those properties become accessors.
For now, the right way to think about them is like properties implemented through __get(), which is
effectively what these are, just on the internal layer.
------------------------------------------------------------------------
[2020-07-07 15:13:21] ondrej at mirtes dot cz
The actual result is empty: https://3v4l.org/68832
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=79804
--
Edit this bug report at https://bugs.php.net/bug.php?id=79804&edit=1
Thread (7 messages)