Re: var_export() array format
| From: | Paul Jones | Date: | Sun, 18 Feb 2018 02:47:28 +0000 |
| Subject: | Re: var_export() array format | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-101886@lists.php.net to get a copy of this message | ||
> On Feb 17, 2018, at 18:27, Andreas Hennings <andreas@dqxtech.net> wrote:
>
> What we can do is add a third parameter with flags.
Big +1. When writing tests and setting the $expected value, one of the constantly recurring
drudgeries is reformatting the correct var_export($actual) output from arrays to match the
surrounding code style. This would reduce that tedium by an order of magnitude.
--
Paul M. Jones
pmjones@pmjones.io
http://paul-m-jones.com
Modernizing Legacy Applications in PHP
https://leanpub.com/mlaphp
Solving the N+1 Problem in PHP
https://leanpub.com/sn1php