From d4a7ba4a3d43d0988ccfa245e7e0014995facb84 Mon Sep 17 00:00:00 2001 From: pad Date: Fri, 17 Aug 2012 17:37:30 -0700 Subject: [PATCH] * tests/php/scheck/arrays.php: --- tests/php/scheck/arrays.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/php/scheck/arrays.php b/tests/php/scheck/arrays.php index 369b8dca9..7841e604a 100644 --- a/tests/php/scheck/arrays.php +++ b/tests/php/scheck/arrays.php @@ -9,5 +9,9 @@ function test_undeclared_array($array_parameter) { echo $array_parameter; //ERROR: use of undefined array echo $undefined_array; + + // What about $array[] = 1; Is it more ok? but people can just + // do $array = array(1); and if it's inside a foreach they really should + // declare the array before anyway. }