Skip to content

Commit

Permalink
Fix GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
SerafimArts committed Aug 1, 2024
1 parent 6141070 commit acd8816
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/ErrorInformationRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
namespace Phplrt\Exception;

use Phplrt\Contracts\Lexer\TokenInterface;
use Phplrt\Contracts\Position\PositionInterface;
use Phplrt\Contracts\Source\ReadableInterface;
use Phplrt\Position\Position;
use Phplrt\Contracts\Position\PositionInterface;

class ErrorInformationRenderer
{
Expand Down
1 change: 1 addition & 0 deletions src/LineReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public function readLine(int $line): string
/**
* @param int<1, max> $from
* @param int<1, max> $to
*
* @return iterable<int<1, max>, string>
*/
public function readLines(int $from, int $to): iterable
Expand Down
7 changes: 2 additions & 5 deletions src/RuntimeException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

use Phplrt\Contracts\Exception\RuntimeExceptionInterface;
use Phplrt\Contracts\Lexer\TokenInterface;
use Phplrt\Contracts\Position\PositionInterface;
use Phplrt\Contracts\Source\FileInterface;
use Phplrt\Contracts\Source\ReadableInterface;
use Phplrt\Position\Position;
use Phplrt\Contracts\Position\PositionInterface;
use Phplrt\Source\File;

abstract class RuntimeException extends \RuntimeException implements RuntimeExceptionInterface
Expand All @@ -20,10 +20,7 @@ abstract class RuntimeException extends \RuntimeException implements RuntimeExce

private string $original;

/**
* @param \Throwable|null $previous
*/
public function __construct(string $message = '', int $code = 0, \Throwable $previous = null)
public function __construct(string $message = '', int $code = 0, ?\Throwable $previous = null)
{
$this->original = $message;

Expand Down

0 comments on commit acd8816

Please sign in to comment.