Skip to content

Commit 10cbbe6

Browse files
committed
Override attributes
1 parent 6f5f6c3 commit 10cbbe6

3 files changed

Lines changed: 7 additions & 0 deletions

File tree

phpstan.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
parameters:
22
rememberPossiblyImpureFunctionValues: false
3+
checkMissingOverrideMethodAttribute: true

src/Exception/TokenizerError.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ final public function __construct(
1818
$this->setLocation($location);
1919
}
2020

21+
#[\Override]
2122
final public function isOutputable() : bool
2223
{
2324
return true;

src/Tokenizer.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,23 +45,27 @@ public function __construct(
4545
{
4646
}
4747

48+
#[\Override]
4849
public function current() : Token
4950
{
5051
return $this->token
5152
?? throw new \LogicException('Iterator not initialized');
5253
}
5354

55+
#[\Override]
5456
public function key() : int
5557
{
5658
return $this->tokenStartIndex
5759
?? throw new \LogicException('Iterator not initialized');
5860
}
5961

62+
#[\Override]
6063
public function next() : void
6164
{
6265
$this->loadToken();
6366
}
6467

68+
#[\Override]
6569
public function valid() : bool
6670
{
6771
if (!$this->token instanceof Token || !\is_int($this->tokenStartIndex)) {
@@ -77,6 +81,7 @@ public function valid() : bool
7781
return true;
7882
}
7983

84+
#[\Override]
8085
public function rewind() : void
8186
{
8287
$this->source->rewind();

0 commit comments

Comments
 (0)