From c6aa916ae177483ad83ba58dbd728fa147d88159 Mon Sep 17 00:00:00 2001 From: Ben Thomson Date: Mon, 1 Aug 2022 15:18:05 +0800 Subject: [PATCH] Improve PHP 7.4 compatibility --- src/ArrayFile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ArrayFile.php b/src/ArrayFile.php index b43c6f7..9ee3fce 100644 --- a/src/ArrayFile.php +++ b/src/ArrayFile.php @@ -180,7 +180,7 @@ public function set($key, $value = null) */ protected function makeArrayItem(string $key, string $valueType, $value): ArrayItem { - return (str_contains($key, '.')) + return (strpos($key, '.') !== false) ? $this->makeAstArrayRecursive($key, $valueType, $value) : new ArrayItem( $this->makeAstNode($valueType, $value),