Closed fiskhandlarn closed 4 years ago
Thanks for opening a new issue on the subject @fiskhandlarn 🙌
This is probably due to a recent switch to symfony/dotenv
from vlucas/phpdotenv
. Do you think this issue would be fixed if we switched back? Do you get the error when you are running WordPlate 8.0 (can be enforced in composer.json
)?
This has been fixed in version 9.0 by switching back to vlucas/phpdotenv
.
I thought I'd make a separate issue for this problem (found in https://github.com/wordplate/wordplate/issues/250). Whenever a package that requires
illuminate/support
is required in a WordPlate project this leads toilluminate/support
'senv()
function being defined before WordPlate's. This is in itself probably good for the user to know. But on top of that, the site will die with a PHP fatal error untilvlucas/phpdotenv
is required.AFAIK, the WordPlate documentation mentions/recommends these packages creating this issue:
Steps to Reproduce the Problem
... generates this error in the browser:
Temporary fix
will remove the error, but will force the project to use
illuminate/support
'senv()
.Versions
Possible solutions
env()
(but that would be a breaking change, as vinkla pointed out)vlucas/phpdotenv
needs to required as a prerequisite for the above mentioned packages