Skip to content

Commit

Permalink
Remove php 7.4 and 8.0 from CI
Browse files Browse the repository at this point in the history
  • Loading branch information
SerafimArts committed Aug 2, 2024
1 parent 7884983 commit c51552c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 deletions.
11 changes: 2 additions & 9 deletions src/ExtrusiveBuffer.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,16 @@ class ExtrusiveBuffer extends LazyBuffer
*/
public const BUFFER_DEFAULT_SIZE = 100;

/**
* @var int<1, max>
*/
private int $size;

/**
* @param iterable<TokenInterface> $stream
* @param int<1, max> $size
*/
public function __construct(
iterable $stream,
int $size = self::BUFFER_DEFAULT_SIZE
private int $size = self::BUFFER_DEFAULT_SIZE
) {
$this->size = $size;

/** @psalm-suppress RedundantCondition */
assert($this->size > 0, 'Buffer size must be greater than 0, but ' . $size . ' passed');
assert($this->size > 0, 'Buffer size must be greater than 0, but ' . $this->size . ' passed');

parent::__construct($stream);
}
Expand Down
9 changes: 3 additions & 6 deletions src/MutableBuffer.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,14 @@
*/
class MutableBuffer implements BufferInterface
{
private BufferInterface $parent;

/**
* @var array<int<0, max>, TokenInterface>
*/
private array $overrides = [];

public function __construct(BufferInterface $parent)
{
$this->parent = $parent;
}
public function __construct(
private BufferInterface $parent,
) {}

/**
* @param int<0, max> $offset
Expand Down

0 comments on commit c51552c

Please sign in to comment.