Re: [PHP-DEV] [RFC] is_countable

2018-01-22 Thread Levi Morrison
On Mon, Jan 22, 2018 at 5:34 AM, Johannes Schlüter wrote: > Hi, > > On So, 2018-01-21 at 18:01 +, Gabriel Caruso wrote: >> After that, I like to propose and discuss a new function for PHP 7.x >> (current 7.3): is_countable. >> >> *RFC*: https://wiki.php.net/rfc/is-countable. > > The primary pl

Re: [PHP-DEV] [RFC] is_countable

2018-01-22 Thread Gabriel Caruso
Hi Johannes, thanks for your feedback! Can I ask you to elaborate (or maybe share a link where can I study and improve) more about the Reflection part? Sorry if it’s sounds trivial, is because I’m new to internals 😄 Em seg, 22 de jan de 2018 às 10:34, Johannes Schlüter < johan...@schlueters.de> e

Re: [PHP-DEV] [RFC] is_countable

2018-01-22 Thread Johannes Schlüter
Hi, On So, 2018-01-21 at 18:01 +, Gabriel Caruso wrote: > After that, I like to propose and discuss a new function for PHP 7.x > (current 7.3): is_countable. > > *RFC*: https://wiki.php.net/rfc/is-countable. The primary place for this imo should be reflection. If there is high demand we coul

Re: [PHP-DEV] [RFC] is_countable

2018-01-22 Thread Craig Duncan
Hi Gabriel, I proposed a similar function at the time of introducing the warning, but it doesn't look like I got around to creating an RFC for it: https://github.com/php/php-src/pull/2206/files During this work we realised that objects don't have to implement the '\Countable' interface to be succ

Re: [PHP-DEV] [RFC] is_countable

2018-01-21 Thread Levi Morrison
On Sun, Jan 21, 2018 at 11:01 AM, Gabriel Caruso wrote: > Hello, dear Internals. > > First, thanks to Niklas Keller for giving me permission to write an *RFC*! > After that, I like to propose and discuss a new function for PHP 7.x > (current 7.3): is_countable. > > *RFC*: https://wiki.php.net/rfc/

[PHP-DEV] [RFC] is_countable

2018-01-21 Thread Gabriel Caruso
Hello, dear Internals. First, thanks to Niklas Keller for giving me permission to write an *RFC*! After that, I like to propose and discuss a new function for PHP 7.x (current 7.3): is_countable. *RFC*: https://wiki.php.net/rfc/is-countable. I tried to describe everything there, but of course, l