Description
Bug report
Question | Answer |
---|---|
PHP-Scoper version | 0.18.12 |
#298 exists again since v18 as it was reintroduced by #864
e.g. Guzzle for example (via AWS-SDK or others)
When any of the included files is loaded already, it will not load the "scoped" version anymore at all (since they have the same hash)
Also possibly the previous (working) solution it had an issue that if for whatever reason there were 2 of the scoped library (same scoped namespace), it would load the files twice? (would need to be tested though)
Btw confusingly the FAQs https://github.com/humbug/php-scoper/blob/main/docs/limitations.md#files-autoloading state it's not suppported, but it was supported fine, since the referenced issue was fixed.
EDIT:
just realized this only worked with scoper-autoload.php which is created when whitelisting symbols.
However I'm not whitelisting anything, therefore don't even have a scoper-autoload.php to be used in the first place.