[PHP-DEV] Re: Raise E_NOTICE for null castings

2017-10-27 Thread Filippo Tessarotto
Becker ha scritto: On 27.10.2017 at 11:49, Filippo Tessarotto wrote: Hi, I would like to propose an RFC to raise an E_NOTICE when a variable "initialized" to null is casted to other types: $foo = null; var_dump($foo['bar']); var_dump($foo . 'bar'); var_dump($foo + 2);

[PHP-DEV] Raise E_NOTICE for null castings

2017-10-27 Thread Filippo Tessarotto
Hi, I would like to propose an RFC to raise an E_NOTICE when a variable "initialized" to null is casted to other types: $foo = null; var_dump($foo['bar']); var_dump($foo . 'bar'); var_dump($foo + 2); var_dump($foo & 2); // At the time being, this code produces no errors The eventual vote may be

[PHP-DEV] Re: Parameter type widening RFC

2017-05-27 Thread Filippo Tessarotto
are active? Filippo Tessarotto -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php