Skip to content

Commit

Permalink
static
Browse files Browse the repository at this point in the history
  • Loading branch information
spawnia committed Sep 5, 2024
1 parent b246ab6 commit c6909e9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ use MLL\GraphQLScalars\IntRange;

final class UpToADozen extends IntRange
{
protected function min(): int
protected static function min(): int
{
return 1;
}

protected function max(): int
protected static function max(): int
{
return 12;
}
Expand Down
4 changes: 2 additions & 2 deletions src/IntRange.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
abstract class IntRange extends ScalarType
{
/** The minimum allowed value. */
abstract protected function min(): int;
abstract protected static function min(): int;

/** The maximum allowed value. */
abstract protected function max(): int;
abstract protected static function max(): int;

public function serialize($value)
{
Expand Down
4 changes: 2 additions & 2 deletions tests/UpToADozen.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@

final class UpToADozen extends IntRange
{
protected function min(): int
protected static function min(): int
{
return 1;
}

protected function max(): int
protected static function max(): int
{
return 12;
}
Expand Down

0 comments on commit c6909e9

Please sign in to comment.