mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-12-06 05:58:59 +01:00
719ca71d4a
It makes semantic difference and the latter form is actually forbidden for strict_types. This sets Declare->stmts to null for the body-less case.
17 lines
188 B
Plaintext
17 lines
188 B
Plaintext
declare
|
|
-----
|
|
<?php
|
|
|
|
declare (strict_types=1);
|
|
declare (ticks=1) {
|
|
foo();
|
|
}
|
|
declare (ticks=2) {
|
|
}
|
|
-----
|
|
declare (strict_types=1);
|
|
declare (ticks=1) {
|
|
foo();
|
|
}
|
|
declare (ticks=2) {
|
|
} |