Skip to content

Commit

Permalink
feat: drop support for PHP < 8.1
Browse files Browse the repository at this point in the history
allow PHPUnit 10/11,
allow "spatie/phpunit-snapshot-assertions" 5
  • Loading branch information
Chris8934 committed Mar 5, 2024
1 parent 6f35c19 commit 03b57aa
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Common/BitUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
*/
final class BitUtils
{
private function __construct()
{
}

/**
* Performs an unsigned right shift.
*
Expand Down
4 changes: 4 additions & 0 deletions src/Encoder/MaskUtil.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ final class MaskUtil
public const N4 = 10;
/**#@-*/

private function __construct()
{
}

/**
* Applies mask penalty rule 1 and returns the penalty.
*
Expand Down
4 changes: 4 additions & 0 deletions src/Renderer/Eye/SimpleCircleEye.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ final class SimpleCircleEye implements EyeInterface
{
private static ?SimpleCircleEye $instance;

private function __construct()
{
}

public static function instance() : self
{
return self::$instance ?: self::$instance = new self();
Expand Down
4 changes: 4 additions & 0 deletions src/Renderer/Eye/SquareEye.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ final class SquareEye implements EyeInterface
{
private static ?SquareEye $instance;

private function __construct()
{
}

public static function instance() : self
{
return self::$instance ?: self::$instance = new self();
Expand Down
4 changes: 4 additions & 0 deletions src/Renderer/Module/SquareModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ final class SquareModule implements ModuleInterface
{
private static ?SquareModule $instance;

private function __construct()
{
}

public static function instance() : self
{
return self::$instance ?: self::$instance = new self();
Expand Down
4 changes: 4 additions & 0 deletions src/Renderer/Path/Close.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ final class Close implements OperationInterface
{
private static ?Close $instance;

private function __construct()
{
}

public static function instance() : self
{
return self::$instance ?: self::$instance = new self();
Expand Down

0 comments on commit 03b57aa

Please sign in to comment.