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

chore(deps): Bump vlucas/phpdotenv from 4.0.1 to 4.1.0 #487

Merged
merged 1 commit into from
Feb 18, 2020

Conversation

dependabot-preview[bot]
Copy link
Contributor

@dependabot-preview dependabot-preview bot commented Dec 16, 2019

Bumps vlucas/phpdotenv from 3.6.0 to 4.1.0.

Release notes

Sourced from vlucas/phpdotenv's releases.

V4.1 (14/12/2019)

We announce the immediate availability V4.1.0.

New Features

  • More flexible file finding using stores (#394, #395, #397)
  • Optional variable name whitelist within the loader (#398)

Changes

  • Improved phpdoc (43586fefce5898513d2aabab784269f431c346d7, #399, c9af33768b9e2c1307579ae15dd1f24377b799b7)

V4.0.1 (08/12/2019)

We announce the immediate availability V4.0.1.

Bug Fixes

V4.0 (30/11/2019)

We announce the immediate availability V4.0.0.

We've made some further improvements to this library, since v3, maintaining the same API where possible.

New Features

  • Match single quote semantics with bash (#380)
  • Support escaping dollars in unquoted and double quoted strings (#380)
  • Right to left processing of environment variable interpolation (#380)
  • More flexible design with support for separate readers and writers (#387)

Upgrading Notes

Please see the upgrading guide.

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Automerge options (never/patch/minor, and dev/runtime dependencies)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

@dependabot-preview dependabot-preview bot added the dependencies Pull requests that update a dependency file label Dec 16, 2019
@jordanlgraham
Copy link

In our tests using vlucas/phpdotenv v4.1.0 we had to update config/application.php from:

/**
 * Use Dotenv to set required environment variables and load .env file in root
 */
$dotenv = Dotenv\Dotenv::create($root_dir);
if (file_exists($root_dir . '/.env')) {
  $dotenv->load();
  $dotenv->required(['WP_HOME', 'WP_SITEURL']);
  if (!env('DATABASE_URL')) {
    $dotenv->required(['DB_NAME', 'DB_USER', 'DB_PASSWORD']);
  }
}

to:

/**
 * Use Dotenv to set required environment variables and load .env file in root
 */
if (file_exists($root_dir . '/.env')) {
  $dotenv = Dotenv::createMutable($root_dir);
  $dotenv->load();
  $dotenv->required(['WP_HOME', 'WP_SITEURL']);
  if (!env('DATABASE_URL')) {
    $dotenv->required(['DB_NAME', 'DB_USER', 'DB_PASSWORD']);
  }
}

In v4.1.0 the create() method requires three arguments:

 * @param \Dotenv\Repository\RepositoryInterface $repository
 * @param string|string[]                        $paths
 * @param string|null                            $file

@Log1x
Copy link
Sponsor Member

Log1x commented Dec 18, 2019

See #485

@retlehs
Copy link
Sponsor Member

retlehs commented Feb 18, 2020

@dependabot rebase

@dependabot-preview dependabot-preview bot force-pushed the dependabot/composer/vlucas/phpdotenv-4.1.0 branch 2 times, most recently from 4ece816 to 187e3e5 Compare February 18, 2020 00:34
@retlehs retlehs changed the title chore(deps): Bump vlucas/phpdotenv from 3.6.0 to 4.1.0 chore(deps): Bump vlucas/phpdotenv from 4.0.1 to 4.1.0 Feb 18, 2020
Bumps [vlucas/phpdotenv](https://github.com/vlucas/phpdotenv) from 3.6.0 to 4.1.0.
- [Release notes](https://github.com/vlucas/phpdotenv/releases)
- [Commits](vlucas/phpdotenv@v3.6.0...v4.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
@dependabot-preview dependabot-preview bot force-pushed the dependabot/composer/vlucas/phpdotenv-4.1.0 branch from 187e3e5 to df3462e Compare February 18, 2020 00:37
@retlehs retlehs merged commit a3e5b53 into master Feb 18, 2020
@retlehs retlehs deleted the dependabot/composer/vlucas/phpdotenv-4.1.0 branch February 18, 2020 00:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants