Skip to content
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

Namespaces in constants not replaced #13

Open
danielhuesken opened this issue Feb 18, 2019 · 2 comments
Open

Namespaces in constants not replaced #13

danielhuesken opened this issue Feb 18, 2019 · 2 comments

Comments

@danielhuesken
Copy link

I have found some constant functions in with the Namespaces are not replaced by the new one. Version 0.3.0 is used.

const_ns

@coenjacobs
Copy link
Owner

That's correct. It doesn't replace those (yet). This is already documented in #5, if I recall correctly.

Is this line of code inside the psr/log package, or in your own implementation? If it is in your own implementation, you could get around it, by just referring to the constant directly in your code (without the use of the constant() function):

PSR\Log\LogLevel::$loggingLevel

and Mozart will replace this just fine. If it's in an external package, please provide the (links to) lines of code that it is present in. Thank you!

@danielhuesken
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants