Skip to content

Commit c04977e

Browse files
committed
Fix code style, PHPStan and Psalm baselines
Signed-off-by: Nicolai Ehrhardt <[email protected]>
1 parent 8041ea3 commit c04977e

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

psalm-baseline.xml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@
698698
<code>$this-&gt;last</code>
699699
<code>$this-&gt;last</code>
700700
</LoopInvalidation>
701-
<MixedArrayAccess occurrences="43">
701+
<MixedArrayAccess occurrences="51">
702702
<code>$this-&gt;str[$this-&gt;last + 1]</code>
703703
<code>$this-&gt;str[$this-&gt;last++]</code>
704704
<code>$this-&gt;str[$this-&gt;last]</code>
@@ -742,6 +742,14 @@
742742
<code>$this-&gt;str[$this-&gt;last]</code>
743743
<code>$this-&gt;str[$this-&gt;last]</code>
744744
<code>$this-&gt;str[$this-&gt;last]</code>
745+
<code>$this-&gt;str[$this-&gt;last]</code>
746+
<code>$this-&gt;str[$this-&gt;last]</code>
747+
<code>$this-&gt;str[$this-&gt;last]</code>
748+
<code>$this-&gt;str[$this-&gt;last]</code>
749+
<code>$this-&gt;str[$this-&gt;last]</code>
750+
<code>$this-&gt;str[$this-&gt;last]</code>
751+
<code>$this-&gt;str[$this-&gt;last]</code>
752+
<code>$this-&gt;str[$this-&gt;last]</code>
745753
</MixedArrayAccess>
746754
<MixedAssignment occurrences="2">
747755
<code>$lastToken</code>

src/Lexer.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,10 @@ public function parseNumber()
992992
$token .= $this->str[$this->last];
993993
}
994994

995-
if ($state === 2 || $state === 3 || ($token !== '.' && $state === 4) || $state === 6 || $state === 9 || $state === 13) {
995+
if (
996+
$state === 2 || $state === 3 || ($token !== '.' && $state === 4)
997+
|| $state === 6 || $state === 9 || $state === 13
998+
) {
996999
--$this->last;
9971000

9981001
return new Token($token, Token::TYPE_NUMBER, $flags);

0 commit comments

Comments
 (0)