示例#1
0
 /**
  * Process any throw tags that this function comment has.
  *
  * @param int $commentstart The position in the stack where the
  *                          comment started.
  *
  * @return void
  */
 protected function processthrows($commentstart)
 {
     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($error, $errorpos);
         }
     }
 }