Cannot use ‘namespace’ as namespace name¶
Description¶
The namespace namespace
keyword introduces a namespace. The namespace may have no name, or a name. The only forbidden name is namespace
, as it is used later to identify the current namespace, when used as the first entry in a fully qualified namespace.
Example¶
<?php
namespace Namespace {}
?>
Solutions¶
Use another name than
namespace
.