Skip to content

Commit

Permalink
Merge pull request #15 from Algatux/late_notation
Browse files Browse the repository at this point in the history
Referencing class with ::class does not work with PHP 5.4
  • Loading branch information
Jean85 committed Jun 3, 2016
2 parents acedbff + 6878fce commit f84b317
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ public function canTryAgain($attempt, $ignoreTransactionLevel = false)
private function resetTransactionNestingLevel()
{
if(!$this->selfReflectionNestingLevelProperty instanceof \ReflectionProperty) {
$reflection = new \ReflectionClass(parent::class);
$reflection = new \ReflectionClass('Doctrine\DBAL\Connection');
$this->selfReflectionNestingLevelProperty = $reflection->getProperty("_transactionNestingLevel");
$this->selfReflectionNestingLevelProperty->setAccessible(true);
}
Expand Down

0 comments on commit f84b317

Please sign in to comment.