Re: RFC: var_export - short syntax for array

From: Date: Wed, 21 Aug 2019 08:44:22 +0000
Subject: Re: RFC: var_export - short syntax for array
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-106686@lists.php.net to get a copy of this message
> > There are other issues with the format besides just the long array syntax.. > E.g. opening bracket on same line? Indentation? For the record, I have a userland implementation of var_export() that does all of this: - (object) array export of stdClass for PHP < 7.3 - short array syntax - bracket on the same line - array of scalars on a single line (optional) - export classes without __set_state() - export closures https://github.com/brick/varexporter I'm currently working on supporting object identity and circular references.. Feedback welcome! — Benjamin

« previous php.internals (#106686) next »