Permalink
Browse files

Adding fix for syntax error in inherited `__isset()`

  • Loading branch information...
1 parent 6f9e96c commit 75ba2ab0b6d377720277fb8a3cef3e0f12b8a5a9 @Ocramius Ocramius committed Feb 18, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Doctrine/Common/Proxy/ProxyGenerator.php
@@ -542,7 +542,7 @@ public function __isset(\$name)
$magicIsset .= <<<'EOT'
$this->__initializer__ && $this->__initializer__->__invoke($this, '__isset', array($name));
- return parent::__isset($name)
+ return parent::__isset($name);
EOT;
} else {
@@ -683,7 +683,7 @@ private function generateCloneImpl(ClassMetadata $class)
{
$hasParentClone = $class->getReflectionClass()->hasMethod('__clone');
$inheritDoc = $hasParentClone ? '{@inheritDoc}' : '';
- $callParentClone = $hasParentClone ? "\n parent::__clone();" : '';
+ $callParentClone = $hasParentClone ? "\n parent::__clone();\n" : '';
return <<<EOT
/**

0 comments on commit 75ba2ab

Please sign in to comment.