php-scoper
php-scoper copied to clipboard
Fix function with multiple namespaces
Hi @theofidry, I discovered a bug with the php-scoper.
Before the fix, I get
namespace Acme\Emca {
if (!function_exists('Acme\Emca\foo')) { function Emca\foo() { return \Humbug\Acme\Emca\foo(...func_get_args()); } }
}
which is crashing.
Thank you @VincentLanglet, I'll try to check the CI ASAP to fix it to get this merged
Thank you @VincentLanglet, I'll try to check the CI ASAP to fix it to get this merged
Should I fix the test on this PR @theofidry ? It seems to mainly be CS issues
@VincentLanglet the CS yes (I think it's related), but the test failures looks unrelated so in a different MR. Sorry I'm a bit overwhelmed IRL between visists and moving and stuff
@VincentLanglet the CS yes (I think it's related), but the test failures looks unrelated so in a different MR. Sorry I'm a bit overwhelmed IRL between visists and moving and stuff
https://github.com/humbug/php-scoper/pull/1065