Skip to content

Commit

Permalink
* tests/php/scheck/arrays.php:
Browse files Browse the repository at this point in the history
  • Loading branch information
pad committed Aug 18, 2012
1 parent 80a9633 commit d4a7ba4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/php/scheck/arrays.php
Expand Up @@ -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.
}

0 comments on commit d4a7ba4

Please sign in to comment.