Closed makao closed 6 years ago
@makao I can't merge your PR as it stands, as it will cause an issue. Take a look at this commit and you'll see that your PR actually is an exact revert of the changes you made: https://github.com/makao/ClassyLlama_AvaTax/commit/30403feadb57f9ff13fffa1e2076d4eed07343f1#diff-f9a20ab0f1b66092b9c7efa82de1f220
I actually ran into a similar issue in my fork of this repo. In this fork, I was working on getting automated tests running with Travis CI. This is how I dealt with this issue: https://github.com/erikhansen/ClassyLlama_AvaTax/blob/feature/travis-ci-setup/registration.php
If you update this PR include the contents of the registration.php
file, we can merge this PR.
I am not sure what do you mean by it will cause an issue. I've tried to compile DI and everything worked. However I've updated with check if BP is defined.
@rsisco I'm quite certain this PR will work without causing any issues, but can you test locally and include these changes in your next release?
Hello @makao and @erikhansen
Any updates on this? We are getting this issue too. Would be super cool to get this fix as fast as possible.
Best regards,
Still waiting, I've fixed it locally for development.
This PR fixes issue when running CLI tools like PHPUnit, PHPMD or PHPCS. Composer is autoloading registration.php, but app/autoload.php isn't loaded there so BP constant is not available.
To reproduce try to run
It will throw an error