mozart
mozart copied to clipboard
Namespaces in constants not replaced
I have found some constant functions in with the Namespaces are not replaced by the new one. Version 0.3.0 is used.
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!
It is in The PayPal SDK https://github.com/paypal/PayPal-PHP-SDK/blob/master/lib/PayPal/Log/PayPalLogger.php#L69