Skip to content

Commit

Permalink
Merge pull request #410 from llleocesar/patch-1
Browse files Browse the repository at this point in the history
Update Manager.php for PHP 8.1 Deprecated Passing null
  • Loading branch information
romerosilva-meli authored Jun 5, 2023
2 parents c41853b + 829e28c commit 3b80803
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MercadoPago/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public function setEntityUrl($entity, $ormMethod, $params = [])
} elseif (!empty($entity->$key)) {
$url = str_replace($match, $entity->$key, $url);
} else {
$url = str_replace($match, $entity->{$key}, $url);
$url = str_replace($match, $entity->{$key} ?? '', $url);
}
}
$this->_entityConfiguration[$className]->url = $url;
Expand Down Expand Up @@ -437,4 +437,4 @@ protected function _getIdempotencyAttributes($attributes)
}
return implode('&', $result);
}
}
}

0 comments on commit 3b80803

Please sign in to comment.