Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Exception/InvalidCodePointException.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class InvalidCodePointException extends UnicodeException
* @param $codePoint
* @param Throwable|null $previous
*/
public function __construct($codePoint, Throwable $previous = null)
public function __construct($codePoint, ?Throwable $previous = null)
{
parent::__construct("Invalid code point", 0, $previous);
$this->codePoint = $codePoint;
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/InvalidStringException.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class InvalidStringException extends UnicodeException
* @param int $offset
* @param Throwable|null $previous
*/
public function __construct(string $string, int $offset = -1, Throwable $previous = null)
public function __construct(string $string, int $offset = -1, ?Throwable $previous = null)
{
parent::__construct("Invalid UTF-8 string at offset {$offset}", 0, $previous);
$this->string = $string;
Expand Down