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

Add default values to array_merge #1184

Merged
merged 1 commit into from
Mar 17, 2021
Merged

Conversation

netpok
Copy link
Contributor

@netpok netpok commented Mar 17, 2021

Summary

This PR adds default values so array_merge does not break when config values are missing. This should not happen unless the package is freshly installed and config is cached.

Fixes #1180

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • Existing tests have been adapted and/or new tests have been added
  • Add a CHANGELOG.md entry
  • Update the README.md
  • Code style has been fixed via composer fix-style

Copy link
Collaborator

@mfn mfn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also wasn't able to reproduce it, but there's no excuse to not just provide defaults anyway => 👍 😄

Thanks!

@mfn mfn requested a review from barryvdh March 17, 2021 10:55
@barryvdh barryvdh merged commit f7f7e9e into barryvdh:master Mar 17, 2021
@netpok
Copy link
Contributor Author

netpok commented Mar 17, 2021

For future reference it is reproducable:

  1. Take a clean install of Laravel
  2. Run config:cache
  3. Install package
  4. Run the command

That said the config should not be cached in dev mode.

@mfn
Copy link
Collaborator

mfn commented Mar 17, 2021

@netpok can you add a changelog entry? I missed this in the review 😢

@netpok
Copy link
Contributor Author

netpok commented Mar 17, 2021

Should I just commit it to this branch?

@mfn
Copy link
Collaborator

mfn commented Mar 17, 2021

Ah, no, I fear it needs a separate PR 😬

mfn added a commit that referenced this pull request Mar 22, 2021
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.

Error when running
3 participants