We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14cd46b commit 4a877b7Copy full SHA for 4a877b7
1 file changed
src/Stache/Stores/Store.php
@@ -208,7 +208,7 @@ public function handleFileChanges()
208
209
// Get all the deleted files.
210
// This would be any paths that exist in the cached array that aren't there anymore.
211
- $deleted = $existing->keys()->diff($files->keys())->values();
+ $deleted = $existing->keys()->map(fn ($path) => $this->getKeyFromPath($path))->diff($files->keys()->map(fn ($path) => $this->getKeyFromPath($path)))->values();
212
213
// If there are no modified or deleted files, there's nothing to update.
214
if ($modified->isEmpty() && $deleted->isEmpty()) {
0 commit comments