#
7f462c97 |
| 26-Oct-2020 |
Nikita Popov |
Revert "Make ReflectionUnionType final" This reverts commit ef6adb4e27853eb19bf50bad6486311920d6af7b. Per Ondrej's comment, this is already being used by BetterReflection adapto
Revert "Make ReflectionUnionType final" This reverts commit ef6adb4e27853eb19bf50bad6486311920d6af7b. Per Ondrej's comment, this is already being used by BetterReflection adaptors, ugh.
show more ...
|
#
ef6adb4e |
| 25-Oct-2020 |
Máté Kocsis |
Make ReflectionUnionType final Closes GH-6384 |
#
47bbfe1f |
| 23-Oct-2020 |
Máté Kocsis |
Require stubs to declare return types for magic methods when possible Closes GH-6376 |
#
351776ea |
| 29-Sep-2020 |
Máté Kocsis |
Make the $filter parameter of ReflectionClass::get*Constants() nullable |
#
e1959928 |
| 28-Sep-2020 |
Máté Kocsis |
Reflection param renames amendment Closes GH-6230 |
#
64af12d1 |
| 19-Sep-2020 |
Máté Kocsis |
Add support for `@implementation-alias` in stubs Closes GH-6170 |
#
1a8936cd |
| 14-Sep-2020 |
Gabriel Caruso |
Check `ReflectionReference::fromArrayElement` with union types ReflectionReference::fromArrayElement(array $array, int|string $key): ?ReflectionReference is going to be its official sign
Check `ReflectionReference::fromArrayElement` with union types ReflectionReference::fromArrayElement(array $array, int|string $key): ?ReflectionReference is going to be its official signature for PHP 8.0. Closes GH-5651
show more ...
|
#
a59923be |
| 09-Sep-2020 |
Máté Kocsis |
Refactor ReflectionMethod::__construct() Closes GH-6098 |
#
8107a1da |
| 04-Sep-2020 |
Máté Kocsis |
Use ZPP instead of custom type checks We can add these types as a native type declaration to stubs as a side-effect. Closes GH-6068 |
#
0d330e1a |
| 28-Jul-2020 |
Máté Kocsis |
Add a few missing parameter types in stubs Related to GH-5627 |
#
8664ff7a |
| 24-Jul-2020 |
Máté Kocsis |
Cleanup argument handling in ext/reflection Closes GH-5850 |
#
b3ea6ce7 |
| 21-Jul-2020 |
Nikita Popov |
Make ReflectionGenerator final This class is not safe against malicious extension / instantiation. |
#
a4b253c4 |
| 06-Jul-2020 |
Nikita Popov |
ReflectionMethod::invoke() object is not optional |
#
053ef28b |
| 28-Jun-2020 |
Martin Schröder |
Implement Attribute Amendments. RFC: https://wiki.php.net/rfc/attribute_amendments Support for attribute grouping is left out, because the short attribute syntax RFC will likely
Implement Attribute Amendments. RFC: https://wiki.php.net/rfc/attribute_amendments Support for attribute grouping is left out, because the short attribute syntax RFC will likely make it obsolete. Closes GH-5751.
show more ...
|
Revision tags: php-7.3.19 |
|
#
7439941d |
| 30-May-2020 |
Gabriel Caruso |
Add $filter parameter for ReflectionClass::(getConstants|getReflectionConstants) This solves [#79628](https://bugs.php.net/79628). Similar to `ReflectionClass::getMethods()` and `Re
Add $filter parameter for ReflectionClass::(getConstants|getReflectionConstants) This solves [#79628](https://bugs.php.net/79628). Similar to `ReflectionClass::getMethods()` and `ReflectionClass::getProperties()`, this new `$filter` argument allows the filtering of constants defined in a class by their visibility. For that, we create three new constants for `ReflectionClassConstant`: * `IS_PUBLIC` * `IS_PROTECTED` * `IS_PRIVATE` Closes GH-5649.
show more ...
|
Revision tags: php-7.4.7RC1, php-7.3.19RC1, php-7.3.18RC1, php-7.2.30, php-7.3.17, php-7.3.17RC1 |
|
#
064b4644 |
| 24-Mar-2020 |
Nikita Popov |
Implement "Constructor Promotion" RFC RFC: https://wiki.php.net/rfc/constructor_promotion Closes GH-5291. |
#
a7908c2d |
| 24-May-2020 |
Benjamin Eberlei |
Add Attributes Co-authored-by: Martin Schröder <m.schroeder2007@gmail.com> |
#
b3718430 |
| 25-May-2020 |
Máté Kocsis |
Annotate internal functions with the mixed type Closes GH-5618 |
Revision tags: php-7.3.18, php-7.3.16, php-7.3.16RC1 |
|
#
28af364d |
| 25-Feb-2020 |
Nikita Popov |
Deprecate old ReflectionParameter type declaration APIs This deprecates: ReflectionParameter::isArray() ReflectionParameter::isCallable() ReflectionParameter::ge
Deprecate old ReflectionParameter type declaration APIs This deprecates: ReflectionParameter::isArray() ReflectionParameter::isCallable() ReflectionParameter::getClass() These APIs have been superseded by ReflectionParameter::getType() since PHP 7.0. Types introduced since that time are not available through the old APIs, and their behavior is getting increasingly confusing. This is how they interact with PHP 8 union types: * isArray() will return true if the type is array or ?array, but not any other union type * Same for isCallable(). * getClass() will return a class for T|int etc, as long as the union only contains a single type. T1|T2 will return null. This behavior is not particularly reasonable or useful, and will get more confusing as new type system extensions are added. Closes GH-5209.
show more ...
|
#
038502b9 |
| 02-May-2020 |
George Peter Banyard |
Use int|string Fast ZPP macro in Reflection Moreover, throw a more appropriate ValueError in case the integer position provided is less than 0. Closes GH-5513 |
#
53eee290 |
| 27-Apr-2020 |
Nikita Popov |
Completely remove disabled functions from function table Currently, disabling a function only replaces the internal function handler with one that throws a warning, and a few places
Completely remove disabled functions from function table Currently, disabling a function only replaces the internal function handler with one that throws a warning, and a few places in the engine special-case such functions, such as function_exists. This leaves us with a Schrödinger's function, which both does not exist (function_exists returns false) and does exist (you cannot define a function with the same name). In particular, this prevents the implementation of robust polyfills, as reported in https://bugs.php.net/bug.php?id=79382: if (!function_exists('getallheaders')) { function getallheaders(...) { ... } } If getallheaders() is a disabled function, this code will break. This patch changes disable_functions to remove the functions from the function table completely. For all intents and purposes, it will look like the function does not exist. This also renders two bits of PHP functionality obsolete and thus deprecated: * ReflectionFunction::isDisabled(), as it will no longer be possible to construct the ReflectionFunction of a disabled function in the first place. * get_defined_functions() with $exclude_disabled=false, as get_defined_functions() now never returns disabled functions. Fixed bug #79382. Closes GH-5473.
show more ...
|
#
1bba691e |
| 12-Apr-2020 |
Máté Kocsis |
Generate method entries for ext/session and ext/reflection Closes GH-5376 |
#
e088836b |
| 11-Apr-2020 |
Máté Kocsis |
Fix nullable types in PHPDoc |
#
07e739a2 |
| 07-Apr-2020 |
Nikita Popov |
Remove most uses of _default_get_name() Instead fetch the name from the respective structure. The only place where this is still used is ReflectionClassConst, as zend_class_const doe
Remove most uses of _default_get_name() Instead fetch the name from the respective structure. The only place where this is still used is ReflectionClassConst, as zend_class_const does not store the name.
show more ...
|
#
ab73d142 |
| 07-Apr-2020 |
Nikita Popov |
Eliminate uses of _default_load_name() Instead fetch the name from the function/class/property, as appropriate. This makes us independent of the property, and eliminates error condit
Eliminate uses of _default_load_name() Instead fetch the name from the function/class/property, as appropriate. This makes us independent of the property, and eliminates error conditions related to it.
show more ...
|