From 3f036489c913468e9bef89bb8dc00ad939fafd51 Mon Sep 17 00:00:00 2001 From: Natan Felles Date: Fri, 30 Aug 2024 18:05:54 -0300 Subject: [PATCH] Update ArraySimple::extractKeys method --- src/ArraySimple.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ArraySimple.php b/src/ArraySimple.php index dff741b..55f4b83 100644 --- a/src/ArraySimple.php +++ b/src/ArraySimple.php @@ -36,7 +36,7 @@ class ArraySimple protected static function extractKeys(string $simpleKey) : array { \preg_match_all('#\[(.*?)\]#', $simpleKey, $matches); - return $matches[1] ?? []; + return $matches[1]; } /**