Skip to content

Commit 47f0fbc

Browse files
authored
Update README.md
1 parent 23c2808 commit 47f0fbc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ $post = [
8686

8787
dump($tags); // ['foo', 'bar']
8888
dump($gallery); // [['image' => 'image.jpg'], ['image' => 'image2.jpg']]
89-
dump($article) // ['title' => 'Article 1', 'slug' => 'article-1', ...] without tags and gallery
89+
dump($article) // ['title' => 'Article 1', 'slug' => 'article-1', 'description' => 'Lorem ipsum']
9090
```
9191

9292
Destructuring with multiple grouped keys
@@ -107,7 +107,7 @@ $post = [
107107

108108
dump($slug); // article-1
109109
dump($meta); // ['tags' => ['foo', 'bar'], 'gallery' => ['image' => 'image.jpg'], ['image' => 'image2.jpg']]
110-
dump($article) // ['title' => 'Article 1', 'slug' => 'article-1', ...] without slug, tags and gallery
110+
dump($article) // ['title' => 'Article 1', 'description' => 'Lorem ipsum']
111111

112112
[$notFoundGroup, $article] = Arr::destructure($post, [['notFound1', 'notFound2']]);
113113

0 commit comments

Comments
 (0)