Debian Codegraph @

lib/3rdParty/composer/phpdocumentor/reflection-docblock/src/Exception/ParserException.php

raw symbols SCIP
1 <?php
2
3 declare(strict_types=1);
4
5 namespace phpDocumentor\Reflection\Exception;
6
7 use InvalidArgumentException;
8
9 final class ParserException extends InvalidArgumentException implements ReflectionDocblockException
10 {
11 public static function from(\PHPStan\PhpDocParser\Parser\ParserException $exception): self
12 {
13 return new self(
14 'Failed to parse docblock: ' . $exception->getMessage(),
15 0,
16 $exception
17 );
18 }
19 }