.. _namespaces-constantfullyqualified: .. _fully-qualified-constants: Fully Qualified Constants +++++++++++++++++++++++++ Constants defined with their namespace. When defining constants with `define() `_ function, it is possible to include the actual namespace : However, the name should be fully qualified without the initial \. Here, \a\b\c constant will never be accessible as a namespace constant, though it will be accessible via the `constant() `_ function. Also, the namespace will be absolute, and not a relative namespace of the current one. .. code-block:: php Connex PHP features ------------------- + `namespace `_ Suggestions ___________ * Drop the initial \ when creating constants with define() : for example, use trim($x, '\'), which removes anti-slashes before and after. Specs _____ +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Short name | Namespaces/ConstantFullyQualified | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Rulesets | :ref:`All `, :ref:`Analyze `, :ref:`Changed Behavior ` | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Exakat since | 0.8.4 | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | PHP Version | All | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Severity | Minor | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Time To Fix | Slow (1 hour) | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Precision | Very high | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Available in | `Entreprise Edition `_, `Exakat Cloud `_ | +--------------+-------------------------------------------------------------------------------------------------------------------------+