composer / composer/composer

Generated code in autoload_real.php should be namespaced

Open
#5,231 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
29.5k
Forks
4.8k
Avg merge
2d 2h
Merged PRs (30d)
12

Description

While collisions are effectively impossible due to the random (hashed?) class and function names, having the class and function in the global namespace is slightly annoying when doing work that involves `get_defined_functions` or `get_declared_classes` if any filtering of the resulting array is required, especially when using the namespace support in the Reflection APIs.

Unless there's a reason not to do this (which I'd be very interested in hearing), I'm more than happy to do the work and send a PR. I expect the file output would change from, roughly:

``` php

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.