PHP 8.5.0 Beta 2 available for testing

Voting

: min(six, six)?
(Example: nine)

The Note You're Voting On

cl
12 years ago
Something that is not immediately obvious, particular with PHP 5.3, is that namespace resolutions within an import are not resolved recursively. i.e.: if you alias an import and then use that alias in another import then this latter import will not be fully resolved with the former import.

For example:
use \Controllers as C;
use C\First;
use C\Last;

Both the First and Last namespaces are NOT resolved as \Controllers\First or \Controllers\Last as one might intend.

<< Back to user notes page

To Top