Skip to content

Commit b7bb0b8

Browse files
committed
self review
1 parent 087c353 commit b7bb0b8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

models/BaseDoc.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
namespace yii\apidoc\models;
1010

11+
use InvalidArgumentException;
1112
use phpDocumentor\Reflection\DocBlock\Tag;
1213
use phpDocumentor\Reflection\DocBlock\Tags\Deprecated;
1314
use phpDocumentor\Reflection\DocBlock\Tags\Generic;
@@ -22,7 +23,7 @@
2223
use phpDocumentor\Reflection\Php\Property;
2324
use phpDocumentor\Reflection\Php\Trait_;
2425
use phpDocumentor\Reflection\TypeResolver;
25-
use Throwable;
26+
use RuntimeException;
2627
use yii\base\BaseObject;
2728
use yii\helpers\StringHelper;
2829

@@ -290,7 +291,7 @@ public function __construct($parent = null, $reflector = null, $context = null,
290291
$this->psalmTypeImports[(string) $fqsen] = $psalmTypeImport;
291292
unset($this->tags[$i]);
292293
}
293-
} catch (Throwable $e) {
294+
} catch (InvalidArgumentException | RuntimeException $e) {
294295
if ($context !== null){
295296
$context->errors[] = [
296297
'line' => $this->startLine,

0 commit comments

Comments
 (0)