Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Invalid
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
Description
<br />
<b>Notice</b>: Undefined variable: class in <b>/usr/home/gym/doctrine2-common/lib/Doctrine/Common/Annotations/SimpleAnnotationReader.php</b> on line <b>45</b><br />
<br />
<b>Fatal error</b>: Call to a member function getName() on a non-object in <b>/usr/home/gym/doctrine2-common/lib/Doctrine/Common/Annotations/SimpleAnnotationReader.php</b> on line <b>45</b><br />
Doctrine/Common/Annotations/SimpleAnnotationReader.php
public function getMethodAnnotations(\ReflectionMethod $method) { - return $this->parser->parse($method->getDocComment(), 'method '.$class->getName().'::'.$method->getName().'()'); + return $this->parser->parse($method->getDocComment(), 'method '.$method->getName().'::'.$method->getName().'()'); } public function getPropertyAnnotations(\ReflectionProperty $property) { - return $this->parser->parse($property->getDocComment(), 'property '.$class->getName().'::$'.$property->getName()); + return $this->parser->parse($property->getDocComment(), 'property '.$property->getName().'::$'.$property->getName()); }
This issue is already fixed in master. Closing the ticket.