From 9eb57908a66a9090f33fc87a6376880d50708ee8 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Fri, 5 Mar 2021 15:33:13 +0100 Subject: var_export no longer has a trailing blank after => --- it_debug.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/it_debug.class b/it_debug.class index b6ebeba..4105f1d 100644 --- a/it_debug.class +++ b/it_debug.class @@ -135,7 +135,7 @@ static function dump($args) $item = preg_replace('#class (\S+) \{\s+([^({,;]+;)?\s+\}#', 'class $1 { $2 }', $item); # 1-element objects on 1 line #$item = preg_replace('#\{\s*var \$attr#', '{ var $attr', $item); # move $attr on same line $item = preg_replace("#\\(\s*\n\s*\\)#", "()", $item); # empty arrays on 1 line - $item = preg_replace("# => \n\s+\(object\) array\(\n#", " => (object) array(\n", $item); + $item = preg_replace("# =>\s*\n\s+\(object\) array\(\n#", " => (object) array(\n", $item); #$item = preg_replace('#\s+var \$_(.|\n)*?;\s*\n#', "", $item); $item = "$red$item$nored"; -- cgit v1.2.3