<?php
namespace Foo
{
const MAX = 1;
function somethig ($param)
{
var_dump($param);
}
class MAX
{
public $property;
}
}
namespace Bar
{
echo Foo\MAX;
}
Fatal error: Uncaught Error: Undefined constant "Bar\Foo\MAX" in /in/QmIqt:20
Stack trace:
#0 {main}
thrown in /in/QmIqt on line 20
Process exited with code 255.
Fatal error: Uncaught Error: Undefined constant 'Bar\Foo\MAX' in /in/QmIqt:20
Stack trace:
#0 {main}
thrown in /in/QmIqt on line 20
Process exited with code 255.