PHP Classes

File: vendor/nikic/php-parser/test/code/parser/stmt/namespace/mix.test

Recommend this page to a friend!
  Packages of Abed Nego Ragil Putra   Laravel Blogging Platform   vendor/nikic/php-parser/test/code/parser/stmt/namespace/mix.test   Download  
File: vendor/nikic/php-parser/test/code/parser/stmt/namespace/mix.test
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Laravel Blogging Platform
Manage blog posts using Laravel and Bootstrap
Author: By
Last change:
Date: 8 months ago
Size: 1,975 bytes
 

Contents

Class file image Download
Namespace types cannot be mixed ----- <?php namespace A; echo 1; namespace B { echo 2; } echo 3; ----- Cannot mix bracketed namespace declarations with unbracketed namespace declarations on line 4 array( 0: Stmt_Namespace( name: Name( parts: array( 0: A ) ) stmts: array( 0: Stmt_Echo( exprs: array( 0: Scalar_LNumber( value: 1 ) ) ) ) ) 1: Stmt_Namespace( name: Name( parts: array( 0: B ) ) stmts: array( 0: Stmt_Echo( exprs: array( 0: Scalar_LNumber( value: 2 ) ) ) ) ) 2: Stmt_Echo( exprs: array( 0: Scalar_LNumber( value: 3 ) ) ) ) ----- <?php namespace A { echo 1; } echo 2; namespace B; echo 3; ----- Cannot mix bracketed namespace declarations with unbracketed namespace declarations on line 6 array( 0: Stmt_Namespace( name: Name( parts: array( 0: A ) ) stmts: array( 0: Stmt_Echo( exprs: array( 0: Scalar_LNumber( value: 1 ) ) ) ) ) 1: Stmt_Echo( exprs: array( 0: Scalar_LNumber( value: 2 ) ) ) 2: Stmt_Namespace( name: Name( parts: array( 0: B ) ) stmts: array( 0: Stmt_Echo( exprs: array( 0: Scalar_LNumber( value: 3 ) ) ) ) ) )