Hi Sherif,

Sherif Ramadan wrote:
I'm proposing a new RFC to change var_export()'s array syntax to use the
short hand array syntax instead.

The RFC is available here https://wiki.php.net/rfc/var-export-array-syntax

This is a forwards-compatible change proposed for and targeting PHP 8.0.

I'd like to open up discussion.


What about stdClass? That is currently exported using an object cast applied to an array literal, and that array literal uses long array syntax for consistency. I think this should be mentioned in the RFC, whatever choice you make.

Regards,
Andrea

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to