Skip to content

Commit c6909e9

Browse files
committed
static
1 parent b246ab6 commit c6909e9

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ use MLL\GraphQLScalars\IntRange;
5454

5555
final class UpToADozen extends IntRange
5656
{
57-
protected function min(): int
57+
protected static function min(): int
5858
{
5959
return 1;
6060
}
6161

62-
protected function max(): int
62+
protected static function max(): int
6363
{
6464
return 12;
6565
}

src/IntRange.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
abstract class IntRange extends ScalarType
1313
{
1414
/** The minimum allowed value. */
15-
abstract protected function min(): int;
15+
abstract protected static function min(): int;
1616

1717
/** The maximum allowed value. */
18-
abstract protected function max(): int;
18+
abstract protected static function max(): int;
1919

2020
public function serialize($value)
2121
{

tests/UpToADozen.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66

77
final class UpToADozen extends IntRange
88
{
9-
protected function min(): int
9+
protected static function min(): int
1010
{
1111
return 1;
1212
}
1313

14-
protected function max(): int
14+
protected static function max(): int
1515
{
1616
return 12;
1717
}

0 commit comments

Comments
 (0)