replace specific php7 code

This commit is contained in:
Frédéric FRANCE
2018-11-14 22:05:21 +01:00
parent 9447e66da1
commit 1c15d249b3
5 changed files with 5 additions and 5 deletions

View File

@@ -293,7 +293,7 @@ class Swift_Mime_SimpleMimeEntity implements Swift_Mime_CharsetObserver, Swift_M
public function setChildren(array $children, $compoundLevel = null)
{
// TODO: Try to refactor this logic
$compoundLevel = $compoundLevel ?? $this->getCompoundLevel($children);
$compoundLevel = isset($compoundLevel) ? $compoundLevel : $this->getCompoundLevel($children);
$immediateChildren = array();
$grandchildren = array();
$newContentType = $this->userContentType;