view vendor/nikic/php-parser/test/code/parser/stmt/namespace/nested.test @ 5:c69a71b4f40f

Add slideshow module
author Chris Cannam
date Thu, 07 Dec 2017 14:46:23 +0000
parents 4c8ae668cc8c
children
line wrap: on
line source
Nested namespaces are not allowed
-----
<?php
namespace A {
    namespace B {

    }
}
-----
Namespace declarations cannot be nested from 3:5 to 5:5
array(
    0: Stmt_Namespace(
        name: Name(
            parts: array(
                0: A
            )
        )
        stmts: array(
            0: Stmt_Namespace(
                name: Name(
                    parts: array(
                        0: B
                    )
                )
                stmts: array(
                )
            )
        )
    )
)