[PHP-DEV] Reflection changes due to allow null + false as standalone types RFC

2022-04-05 Thread G. P. B.
Hello internals, During the review of the implementation of the RFC which introduces null and false as standalone types there has been a point raised about the changes made to reflection. [1] The current implementation is what follows the RFC, namely to make false|null return a ReflectionUnionTyp

Re: [PHP-DEV] Reflection changes due to allow null + false as standalone types RFC

2022-04-05 Thread Marco Pivetta
Probably best with consistency? > - Ignore the Reflection changes of the RFC and align the union type with the current behaviour This one, specifically. I'd love to see all nullable types become `ReflectionUnionType(ReflectionNamedType($t), ReflectionNamedType(null))`, but that would be a BC br

[PHP-DEV] [RFC] [VOTE] Deprecate and Remove utf8_encode and utf8_decode

2022-04-05 Thread Rowan Tommins
Good evening all, I have opened voting on the RFC to Deprecate and Remove utf8_encode and utf8_decode: https://wiki.php.net/rfc/remove_utf8_decode_and_utf8_encode Please see the RFC for a summary of the reasoning and details of the proposal. Voting will run for two weeks, finishing at appro