From d57593f30f99d57030a7b4386f70d441c13bcf5e Mon Sep 17 00:00:00 2001 From: Maximilian Schmidt Date: Tue, 4 May 2021 15:41:30 +0200 Subject: [PATCH] PHP8 compatible, remove deprecated use of curly braces --- src/JsonMapper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/JsonMapper.php b/src/JsonMapper.php index 0cdb305..18ae32a 100755 --- a/src/JsonMapper.php +++ b/src/JsonMapper.php @@ -283,7 +283,7 @@ public function map($json, $classObject) */ protected function getFullNamespace($type, $strNs) { - if ($type !== '' && $type{0} != '\\') { + if ($type !== '' && substr($type, 0, 1) != '\\') { //create a full qualified namespace if ($strNs != '') { $type = '\\' . $strNs . '\\' . $type;