Skip to content

Commit

Permalink
Fix wrong version
Browse files Browse the repository at this point in the history
  • Loading branch information
beberlei committed Jun 3, 2014
1 parent d932eb0 commit c2135b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,7 @@ public function __sleep()
public function newInstance()
{
if ($this->_prototype === null) {
if (PHP_VERSION_ID === 50428 || PHP_VERSION_ID === 50513) {
if (PHP_VERSION_ID === 50429 || PHP_VERSION_ID === 50513) {
$this->_prototype = $this->reflClass->newInstanceWithoutConstructor();
} else {
$this->_prototype = unserialize(sprintf('O:%d:"%s":0:{}', strlen($this->name), $this->name));
Expand Down

0 comments on commit c2135b3

Please sign in to comment.