Inheritance: extends PhpParser\Node\Stmt
Example #1
0
 protected function checkTryCatch(TryCatch $node)
 {
     if (empty($node->catches) && null === $node->finally) {
         $this->emitError(new Error('Cannot use try without catch or finally', $node->getAttributes()));
     }
 }