Skip to content
This repository has been archived by the owner on Jun 6, 2023. It is now read-only.

Array bug | rewrite failed, key does not exist #14

Closed
t1k3 opened this issue Dec 6, 2016 · 1 comment
Closed

Array bug | rewrite failed, key does not exist #14

t1k3 opened this issue Dec 6, 2016 · 1 comment

Comments

@t1k3
Copy link

t1k3 commented Dec 6, 2016

Example 1:

app.php > 'locales' => ['en'],
$locales = ['en-GB'];
Config::write('app', ['locales' => $locales]);

Exception in Repository.php line 146:
Unable to rewrite key "locales.0" in config, rewrite failed

Example 2:

app.php > 'locales' => ['en'],
$locales = ['en', 'en-GB'];
Config::write('app', ['locales' => $locales]);

Exception in Repository.php line 137:
Unable to rewrite key "locales.1" in config, does it exist?

@marktopper
Copy link
Member

Duplicate of #11

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants