Skip to content

Commit c82d969

Browse files
committed
Improve parsing exception code
1 parent a7cd7a8 commit c82d969

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Exception/ParsingException.php

+1-5
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,16 @@ class ParsingException extends \RuntimeException implements RuntimeExceptionInte
1010

1111
protected const CODE_LAST = self::ERROR_CODE_INTERNAL;
1212

13-
public readonly string $source;
14-
1513
/**
1614
* @param int<0, max> $offset
1715
*/
1816
final public function __construct(
19-
string $source,
17+
public readonly string $source,
2018
public readonly int $offset = 0,
2119
string $message = "",
2220
int $code = 0,
2321
?\Throwable $previous = null
2422
) {
25-
$this->source = $source;
26-
2723
parent::__construct($message, $code, $previous);
2824
}
2925

0 commit comments

Comments
 (0)