Hi internals,
I would like to present a possible new RFC( "keep type of reference params" ) for your consideration. Firstly, an example: ``` <?php function my_array_shift( array & $array ) { $array = "string"; } $array = [ 0, 1, 2, 3, 4 ]; my_array_shift($array); count( $array ); ``` The result of this code is a warning( in count line ) because of $array is a string. However, I think it should be an error or exception when a string is assigned to $array var. In my opinion, $array var would have to keep its type when function ends. What is your opinion ? Do you see it useful ? Thanks and I'm sorry for my English( I'm a Spanish ). Regards -- Manuel Canga