From ffaa4a181eb8b27d4fc7bcd56e2b6a0efd509eb7 Mon Sep 17 00:00:00 2001 From: Peter Rotich <peter@osticket.com> Date: Sat, 11 Aug 2012 00:06:09 -0400 Subject: [PATCH] Remove call-time pass-by-reference --- setup/test/lint.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/test/lint.php b/setup/test/lint.php index 5657bb080..488785618 100644 --- a/setup/test/lint.php +++ b/setup/test/lint.php @@ -60,7 +60,7 @@ echo "Short open tags: "; $fails = array(); foreach ($scripts as $s) { $matches = array(); - if (preg_match_all('/<\?\s*(?!php|xml).*$/m', file_get_contents($s), &$matches, + if (preg_match_all('/<\?\s*(?!php|xml).*$/m', file_get_contents($s), $matches, PREG_OFFSET_CAPTURE) > 0) { foreach ($matches[0] as $match) $fails[] = array( -- GitLab