]> granicus.if.org Git - php/commit
code de-duplication in ReflectionType::__toString and ReflectionNamedType::getName
authorRemi Collet <remi@php.net>
Thu, 15 Jun 2017 13:38:03 +0000 (15:38 +0200)
committerRemi Collet <remi@php.net>
Thu, 15 Jun 2017 13:38:03 +0000 (15:38 +0200)
commitfdfc5c1b3dbc9c8030ff8019ef9bf66d9f46d2d8
treeb6b57fbf6226f3266d90b0cf061b14b9bd093e9e
parent76db01d9ff213aec3f5f0e532c67c6ea8c4b5751
code de-duplication in ReflectionType::__toString and ReflectionNamedType::getName

This code duplication introduce an inconsistency in displayed type name
- bool (reflection) vs boolean
- int (reflection) vs integer

And reflection already use zend_get_type_by_const in other methods...

Inconsistenty is kept for BC reason.
Could be fixed in 8.0
ext/reflection/php_reflection.c