Skip to content

Commit

Permalink
Merge pull request #2857 from AlessandroMinoccheri/use_newer_PHP_synt…
Browse files Browse the repository at this point in the history
…ax_complete

use newer PHP syntax
  • Loading branch information
Ocramius committed Sep 11, 2017
2 parents be3478e + 8f2db0b commit ec2ae93
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/Doctrine/DBAL/Configuration.php
Expand Up @@ -61,8 +61,7 @@ public function setSQLLogger(SQLLogger $logger = null)
*/
public function getSQLLogger()
{
return isset($this->_attributes['sqlLogger']) ?
$this->_attributes['sqlLogger'] : null;
return $this->_attributes['sqlLogger'] ?? null;
}

/**
Expand All @@ -72,8 +71,7 @@ public function getSQLLogger()
*/
public function getResultCacheImpl()
{
return isset($this->_attributes['resultCacheImpl']) ?
$this->_attributes['resultCacheImpl'] : null;
return $this->_attributes['resultCacheImpl'] ?? null;
}

/**
Expand Down

0 comments on commit ec2ae93

Please sign in to comment.