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
Hi @BrianHenryIE. I'm having issues with Strauss adding the namespace prefix twice on my files. There doesn't appear to be any way to fix it. I've removed the custom prefix and let it use the default, and that default doesn't get added twice.
Update:
It seems to only happen with nested namespace prefixes. Here's a sample after changing it to a single namespace. I'll use that, but it might be worth documenting/fixing.
This is fixed now. The problem was the the namespace being replace was a substring of the replacing namespace. The prefixer/replacer class is handed a list of classnames and their replacements:
The problem here is that as the array is iterated through, after the first two replacements are made, the 'Dragon' => 'Dragon\\Dependencies\\Dragon', affects the updated string.
So the solution was to asort() so that that was done before any others.
Hi @BrianHenryIE. I'm having issues with Strauss adding the namespace prefix twice on my files. There doesn't appear to be any way to fix it. I've removed the custom prefix and let it use the default, and that default doesn't get added twice.
See: https://www.loom.com/share/dd52ab3e791840bdbf25bd45fcdeecf3
Here's a couple samples from the autoloader.
Here's the relevant chunk from my composer.json file.
Update:
It seems to only happen with nested namespace prefixes. Here's a sample after changing it to a single namespace. I'll use that, but it might be worth documenting/fixing.
The text was updated successfully, but these errors were encountered: