Skip to content

Commit 9c71f25

Browse files
committed
Rename empty method to reset
Some PHP versions (we suspect it’s this) have issues with that name
1 parent 022bc04 commit 9c71f25

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

classes/Collections/Elements.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,12 +205,12 @@ public function clearCache()
205205
}
206206

207207
/**
208-
* Clea the internal store as well as the cache, in effect totally resetting
209-
* hydration
208+
* Clear the internal store as well as the cache, in effect
209+
* totally resetting hydration
210210
*
211-
* @return $this;
211+
* @return $this
212212
*/
213-
public function empty()
213+
public function reset()
214214
{
215215
$this->items = [];
216216
$this->clearCache();

tests/Integration/ElementsLocalizationTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function testSavedValueQuarantined()
5252
]);
5353

5454
// Clear the cache
55-
app('decoy.elements')->empty();
55+
app('decoy.elements')->reset();
5656

5757
// Test that in english, we don't see the sapnish title
5858
$element = (string) Decoy::el('homepage.marquee.title');
@@ -71,7 +71,7 @@ public function testSavedValue()
7171
]);
7272

7373
// Clear the cache
74-
app('decoy.elements')->empty();
74+
app('decoy.elements')->reset();
7575

7676
// Set to spanish adn confirm the locale scene
7777
Decoy::locale('es');

0 commit comments

Comments
 (0)