Skip to content

Commit

Permalink
Merge pull request #1 from mxk1011/master
Browse files Browse the repository at this point in the history
PHP8 compatible, remove deprecated use of curly braces
  • Loading branch information
David Höck authored May 5, 2021
2 parents 05b4bb6 + d57593f commit fa24e28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/JsonMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fa24e28

Please sign in to comment.