Skip to content

Commit

Permalink
Add more PHPStan types
Browse files Browse the repository at this point in the history
  • Loading branch information
SerhiiCho committed Nov 22, 2023
1 parent dbf066d commit 83726d3
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion src/Lexer/Lexer.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,30 @@ class Lexer
{
private const LAST_CHAR = 'ø';

private readonly string $input;
/**
* The position of the current character in the input (points to current char)
*
* @var int<0, max>
*/
private int $position = 0;

/**
* The position of the next character in the input (points to next char)
*
* @var int<0, max>
*/
private int $nextPosition = 0;

private readonly string $input;

/**
* The current character under examination
*/
private string $char = '';

/**
* Tells us whether we are in HTML or in embedded code
*/
private bool $isHtml = true;

public function __construct(string $input)
Expand Down

0 comments on commit 83726d3

Please sign in to comment.