Re: [RFC][DISCUSSION] Change var_export() array syntax to use short hand arrays
| From: | Andrea Faulds | Date: | Sun, 29 Mar 2020 22:39:38 +0000 |
| Subject: | Re: [RFC][DISCUSSION] Change var_export() array syntax to use short hand arrays | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-109439@lists.php.net to get a copy of this message | ||
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