HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/Lacom/lacom.nl/vendor/nikic/php-parser/test/code/parser/stmt/namespace/braced.test
Braced namespaces
-----
<?php

namespace Foo\Bar {
    foo;
}
namespace {
    bar;
}
-----
array(
    0: Stmt_Namespace(
        name: Name(
            parts: array(
                0: Foo
                1: Bar
            )
        )
        stmts: array(
            0: Stmt_Expression(
                expr: Expr_ConstFetch(
                    name: Name(
                        parts: array(
                            0: foo
                        )
                    )
                )
            )
        )
    )
    1: Stmt_Namespace(
        name: null
        stmts: array(
            0: Stmt_Expression(
                expr: Expr_ConstFetch(
                    name: Name(
                        parts: array(
                            0: bar
                        )
                    )
                )
            )
        )
    )
)