You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a prefix is provided, php-scoper should automatically add that namespace to exclude-namespaces.
Considerations
This would of course not work when no custom prefix was provided and php-scoper chooses a random string. But it would be a nice quality-of-live improvement for the case where there is a prefix provided that doesn't change.
The text was updated successfully, but these errors were encountered:
PHP-Scoper does not re-apply the prefix generally, otherwise a good chunk the specifications would not work at all. Rather, I think the problem is that it does not handle the prefix being a namespace.
I am not sure how easy or hard it is to fix this, but if it is not possible, then I think it's better to fail to clarify its limitation rather than leaving this kind of surprise.
Feature Request
The Problem
php-scoper currently scopes already-scoped packages again. Example:
The result in psr/log after the first run:
...after the second run:
...after the third run:
...and so on. Currently one must add the prefix to
exclude-namespaces
as well to prevent this behavior:The solution
When a
prefix
is provided, php-scoper should automatically add that namespace toexclude-namespaces
.Considerations
This would of course not work when no custom prefix was provided and php-scoper chooses a random string. But it would be a nice quality-of-live improvement for the case where there is a prefix provided that doesn't change.
The text was updated successfully, but these errors were encountered: