Skip to content

Commit c51552c

Browse files
committed
Remove php 7.4 and 8.0 from CI
1 parent 7884983 commit c51552c

File tree

2 files changed

+5
-15
lines changed

2 files changed

+5
-15
lines changed

src/ExtrusiveBuffer.php

+2-9
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,16 @@ class ExtrusiveBuffer extends LazyBuffer
2020
*/
2121
public const BUFFER_DEFAULT_SIZE = 100;
2222

23-
/**
24-
* @var int<1, max>
25-
*/
26-
private int $size;
27-
2823
/**
2924
* @param iterable<TokenInterface> $stream
3025
* @param int<1, max> $size
3126
*/
3227
public function __construct(
3328
iterable $stream,
34-
int $size = self::BUFFER_DEFAULT_SIZE
29+
private int $size = self::BUFFER_DEFAULT_SIZE
3530
) {
36-
$this->size = $size;
37-
3831
/** @psalm-suppress RedundantCondition */
39-
assert($this->size > 0, 'Buffer size must be greater than 0, but ' . $size . ' passed');
32+
assert($this->size > 0, 'Buffer size must be greater than 0, but ' . $this->size . ' passed');
4033

4134
parent::__construct($stream);
4235
}

src/MutableBuffer.php

+3-6
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,14 @@
1010
*/
1111
class MutableBuffer implements BufferInterface
1212
{
13-
private BufferInterface $parent;
14-
1513
/**
1614
* @var array<int<0, max>, TokenInterface>
1715
*/
1816
private array $overrides = [];
1917

20-
public function __construct(BufferInterface $parent)
21-
{
22-
$this->parent = $parent;
23-
}
18+
public function __construct(
19+
private BufferInterface $parent,
20+
) {}
2421

2522
/**
2623
* @param int<0, max> $offset

0 commit comments

Comments
 (0)