From 3c21f6b1d58a61898217789f7614a6671240706e Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 22 Aug 2022 16:36:04 +0200 Subject: [PATCH] wip #5408 --- src/Data.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Data.php b/src/Data.php index 51aef23..91275b3 100644 --- a/src/Data.php +++ b/src/Data.php @@ -34,9 +34,7 @@ class Data implements \ArrayAccess protected static function square_brackets_to_dots($string) { - $string = str_replace(['[', ']'], ['.', ''], $string); - - return $string; + return str_replace(['[', ']'], ['.', ''], $string); } protected function _fixValue($value) @@ -223,6 +221,4 @@ class Data implements \ArrayAccess { return null === $this->_offsetPrefix ? $offset : $this->_offsetPrefix . $offset; } - - } -- 2.39.5