outsideStmt.test-fail 279 B

12345678910111213
  1. There (mostly) can't be statements outside of namespaces
  2. -----
  3. <?php
  4. echo 1;
  5. namespace A;
  6. -----
  7. Namespace declaration statement has to be the very first statement in the script on line 3
  8. -----
  9. <?php
  10. namespace A {}
  11. echo 1;
  12. -----
  13. No code may exist outside of namespace {} on line 3