From 100c768606579a816a2fa72e8c4b5ba42bc2a9bf Mon Sep 17 00:00:00 2001 From: saeideng Date: Mon, 14 Aug 2017 00:19:14 +0430 Subject: [PATCH] add `.name` for fixing `Get the name...` --- src/Utility/Hash.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Utility/Hash.php b/src/Utility/Hash.php index ef58db0957e..e3eb81aa31b 100644 --- a/src/Utility/Hash.php +++ b/src/Utility/Hash.php @@ -110,8 +110,8 @@ public static function get($data, $path, $default = null) * * - `1.User.name` Get the name of the user at index 1. * - `{n}.User.name` Get the name of every user in the set of users. - * - `{n}.User[id]` Get the name of every user with an id key. - * - `{n}.User[id>=2]` Get the name of every user with an id key greater than or equal to 2. + * - `{n}.User[id].name` Get the name of every user with an id key. + * - `{n}.User[id>=2].name` Get the name of every user with an id key greater than or equal to 2. * - `{n}.User[username=/^paul/]` Get User elements with username matching `^paul`. * - `{n}.User[id=1].name` Get the Users name with id matching `1`. *