Skip to content

Commit 2754534

Browse files
committed
Fix GH actions
1 parent bfbb852 commit 2754534

5 files changed

+10
-2
lines changed

src/ArrayBuffer.php

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public function __construct(iterable $stream)
3333

3434
/**
3535
* @param iterable<int<0, max>, TokenInterface> $tokens
36+
*
3637
* @return array<int<0, max>, TokenInterface>
3738
*/
3839
private function iterableToArray(iterable $tokens): array

src/Buffer.php

+1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ public function seek($offset): void
6060

6161
/**
6262
* @param array<TokenInterface> $data
63+
*
6364
* @psalm-suppress PossiblyNullArrayOffset
6465
*/
6566
protected function currentFrom(array $data): TokenInterface

src/BufferInterface.php

+6
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ interface BufferInterface extends \SeekableIterator
1515
* Rewind the BufferInterface to the target token element.
1616
*
1717
* @link https://php.net/manual/en/seekableiterator.seek.php
18+
*
1819
* @see \SeekableIterator::seek()
1920
*
2021
* @param int<0, max> $offset
@@ -25,6 +26,7 @@ public function seek($offset): void;
2526
* Return the current token.
2627
*
2728
* @link https://php.net/manual/en/iterator.current.php
29+
*
2830
* @see \Iterator::current()
2931
*/
3032
public function current(): TokenInterface;
@@ -33,6 +35,7 @@ public function current(): TokenInterface;
3335
* Return the ordinal id of the current token element.
3436
*
3537
* @link https://php.net/manual/en/iterator.key.php
38+
*
3639
* @see \Iterator::key()
3740
*
3841
* @return int<0, max>
@@ -43,6 +46,7 @@ public function key(): int;
4346
* Checks if current position is valid and iterator not completed.
4447
*
4548
* @link https://php.net/manual/en/iterator.valid.php
49+
*
4650
* @see \Iterator::valid()
4751
*/
4852
public function valid(): bool;
@@ -51,6 +55,7 @@ public function valid(): bool;
5155
* Rewind the BufferInterface to the first token element.
5256
*
5357
* @link https://php.net/manual/en/iterator.rewind.php
58+
*
5459
* @see \Iterator::rewind()
5560
*/
5661
public function rewind(): void;
@@ -59,6 +64,7 @@ public function rewind(): void;
5964
* Move forward to next token element.
6065
*
6166
* @link https://php.net/manual/en/iterator.next.php
67+
*
6268
* @see \Iterator::next()
6369
*/
6470
public function next(): void;

src/Factory.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
final class Factory implements FactoryInterface
88
{
9-
public function create(iterable $tokens, int $size = null): BufferInterface
9+
public function create(iterable $tokens, ?int $size = null): BufferInterface
1010
{
1111
if ($size === null) {
1212
return new ArrayBuffer($tokens);

src/LazyBuffer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public function __construct(iterable $stream)
3838

3939
/**
4040
* @param iterable<TokenInterface> $stream
41+
*
4142
* @return \Generator<mixed, TokenInterface, mixed, mixed>
4243
*/
4344
private function toGenerator(iterable $stream): \Generator
@@ -113,7 +114,6 @@ protected function nextValid(): bool
113114
}
114115

115116
/**
116-
* {@inheritDoc}
117117
* @psalm-suppress MixedReturnTypeCoercion
118118
*/
119119
public function key(): int

0 commit comments

Comments
 (0)