Doctrine Common
  1. Doctrine Common
  2. DCOM-60

SimpleAnnotationReader get*Annotations

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major 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());
          }
      

        Activity

        Hide
        Guilherme Blanco added a comment -

        This issue is already fixed in master. Closing the ticket.

        Show
        Guilherme Blanco added a comment - This issue is already fixed in master. Closing the ticket.

          People

          • Assignee:
            Guilherme Blanco
            Reporter:
            Ryan Hutchison
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: