Casts (float) and (real) are normalized to (double)
Was there a discussion about that anywhere? Because double is not seen by PHP as a type, it is seen as an alias for float only:
No there was not. I’m not entirerly sure why I did choose (double) over (float), maybe it was because PHP-Parser defaults to this or because their size is dependent of the platform and now most of the platform are 64-bits and in C float means 32-bits precision while double means 64-bits precision.
Maybe we can note that somewhere in case (double) is dropped from PHP / php-parser. (real) got deprecated with PHP8.0, and the php-parser Node type of floating point values is now Float_ instead of DNumber.