Skip to content

Conversation

@rvola
Copy link

@rvola rvola commented Apr 16, 2025

This PR aims to fix an issue with the V2 configuration file, which prevents the correct use of the $config->env() method.

The expected behavior should be:

  1. Check if a value in a .env file exists and use that value.
  2. If the value doesn't exist in an env file, set $config->set() with the default value sent.

Todo: Don't forget to modify the documentation

rvola added 2 commits April 16, 2025 12:13
Removal of the \Env\env() method, which returns an empty value because the .env file is already loaded beforehand by the vlucas/phpdotenv package.
Moreover, the env() function from the oscarotero/env package only accepts a single parameter.
@rvola rvola marked this pull request as ready for review April 16, 2025 10:13
retlehs added a commit that referenced this pull request Jul 26, 2025
@retlehs retlehs closed this Jul 26, 2025
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

Successfully merging this pull request may close these issues.

2 participants