1.2.727. Multiple Alias Definitions Per File

Avoid aliasing the same name with different aliases. This leads to confusion.

<?php

// first occurrence
use name\space\ClasseName;

// when this happens, several other uses are mentioned

// name\space\ClasseName has now two names
use name\space\ClasseName as anotherName;

?>

See also :ref:`No title for `Namespaces/MultipleAliasDefinition`_ <No anchor for `Namespaces/MultipleAliasDefinition`_>`.

1.2.727.1. Connex PHP features

1.2.727.1.1. Specs

Short name

Namespaces/MultipleAliasDefinitionPerFile

Rulesets

All, Analyze, CE, CI-checks, Changed Behavior

Exakat since

0.10.3

PHP Version

All

Severity

Minor

Time To Fix

Slow (1 hour)

Precision

High

Available in

Entreprise Edition, Community Edition, Exakat Cloud