-
-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Prefixing function argument type which matches namespace #124
Comments
Instead of looking for characters: \ | ; and space, it now looks for phrases ";", "\", "|" and " as" Fix for #124
Fixed in #125 |
Hi @BrianHenryIE, I'm using Mozart 0.7.1 and also having issues using it with mPDF: I tried applying the changes of the commits 26e4f9d and 29ccf74 in #125 to the file NamespaceReplacer.php but this is causing another issue: I appreciate any help! |
You need a couple of lines in your composer
I've stopped using Mozart though. I forked it to https://github.com/BrianHenryIE/strauss. I think there are further MPDF issues that I needed to fix. |
I'm using Mpdf and its namespace and main class name are the same.
With:
In
mozart/dep/Mpdf/ServiceFactory.php:36
:We're in the correct namespace already so the prefixing there is unnecessary (and PHP crashes when the code is run).
I mentioned this in a comment on #84 but reverting #84 would introduce its own problem.
Any advice on what negative/positive look-ahead/look-behind might help would be great. It is a valid place to do a replacement.
Failing test for
NamespaceReplacerTest.php
:The text was updated successfully, but these errors were encountered: