Skip to content

Commit

Permalink
Add PHP 8.4 (alpha build) tests support
Browse files Browse the repository at this point in the history
  • Loading branch information
SerafimArts committed Jul 28, 2024
1 parent 2c9ac5b commit 9a2264d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
5 changes: 2 additions & 3 deletions src/PositionFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,13 @@ final class PositionFactory implements PositionFactoryInterface

/**
* @var int<1, max>
*
* @psalm-readonly-allow-private-mutation
*/
private int $chunkSize = self::DEFAULT_CHUNK_SIZE;

/**
* @param int<1, max> $chunkSize the chunk size used while non-blocking
* reading the file inside the {@see \Fiber} context
* @param int<1, max> $chunkSize The chunk size used while non-blocking
* reading the file inside the {@see \Fiber} context.
*/
public function __construct(
int $chunkSize = self::DEFAULT_CHUNK_SIZE
Expand Down
24 changes: 12 additions & 12 deletions src/PositionFactoryTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ public static function getSourceFactory(): SourceFactoryInterface
* An alternative factory function of the
* {@see PositionFactoryInterface::createFromPosition()} method.
*
* @param int<1, max> $line expected line value of the position in the
* passed source instance
* @param int<1, max> $column expected column value of the position in the
* passed source instance
* @param int<1, max> $line Expected line value of the position in the
* passed source instance.
* @param int<1, max> $column Expected column value of the position in the
* passed source instance.
*
* @throws SourceExceptionInterface in case of an error in creating the
* source object
* @throws SourceExceptionInterface In case of an error in creating the
* source object.
*/
public static function fromPosition(
$source,
Expand Down Expand Up @@ -95,8 +95,8 @@ public static function start(): PositionInterface
* An alternative factory function of the
* {@see PositionFactoryInterface::createAtEnding()} method.
*
* @throws SourceExceptionInterface in case of an error in creating the
* source object
* @throws SourceExceptionInterface In case of an error in creating the
* source object.
*/
public static function end($source): PositionInterface
{
Expand All @@ -115,11 +115,11 @@ public static function end($source): PositionInterface
* An alternative factory function of the
* {@see PositionFactoryInterface::createFromOffset()} method.
*
* @param int<0, max> $offset expected offset of the position in the passed
* source instance
* @param int<0, max> $offset Expected offset of the position in the passed
* source instance.
*
* @throws SourceExceptionInterface in case of an error in creating the
* source object
* @throws SourceExceptionInterface In case of an error in creating the
* source object.
*/
public static function fromOffset(
$source,
Expand Down

0 comments on commit 9a2264d

Please sign in to comment.