diff --git a/src/Row.php b/src/Row.php index c280d37..520975e 100644 --- a/src/Row.php +++ b/src/Row.php @@ -630,7 +630,7 @@ class Row { $char = $token['char']; $charLen = strlen($char); - if ($charLen === 0 || $offset >= $this->rsize) + if ($charLen === 0) { continue; } diff --git a/test.php b/test.php index 034f26d..2613bdd 100644 --- a/test.php +++ b/test.php @@ -2,6 +2,7 @@ interface Ifoo {} +// Let's see emoji! 🕯️😸⛩⛪ abstract class Foo implements Ifoo { /** * @param int $a @@ -64,6 +65,10 @@ trait Baz { } } +class BazFoo { + use Baz; +} + $square = fn (int $x) => $x ** 2; foreach ([-1, 0, 1, 2] as $x) @@ -100,7 +105,7 @@ $q = ($x !== 2) /* Heredoc -*/$z = $x + $y; +*/$z = $x + $y[0]; $sql = <<HTML -

+

Test

+
about()) ?>