Example #1
0
 protected function processThrows($errorPos)
 {
     if (count($this->commentParser->getThrows()) === 0) {
         return;
     }
     foreach ($this->commentParser->getThrows() as $throw) {
         $exception = $throw->getValue();
         $errorPos = $commentStart + $throw->getLine();
         if ($exception === '') {
             $error = '@throws tag must contain the exception class name';
             $this->currentFile->addError($this->getReqPrefix($this->reqCodeEmpty) . $error, $errorPos);
         }
     }
 }