9309f4c9c7
@andrewparoski had the excellent observation that functions and constants don't get imported with use statements.
9 linhas
81 B
PHP
9 linhas
81 B
PHP
<?php
|
|
namespace A {
|
|
const C = "a";
|
|
}
|
|
namespace B {
|
|
use A\C;
|
|
var_dump(C);
|
|
}
|