mirror of
https://github.com/danog/PHP-Parser.git
synced 2024-12-13 09:57:25 +01:00
81e53ce0ff
This changset also adds unit tests for Comments and adds a way to test the pretty printer.
13 lines
279 B
Plaintext
13 lines
279 B
Plaintext
There (mostly) can't be statements outside of namespaces
|
|
-----
|
|
<?php
|
|
echo 1;
|
|
namespace A;
|
|
-----
|
|
Namespace declaration statement has to be the very first statement in the script on line 3
|
|
-----
|
|
<?php
|
|
namespace A {}
|
|
echo 1;
|
|
-----
|
|
No code may exist outside of namespace {} on line 3 |