77/**
88 * @phpstan-type ConnectionReferencePayload array{
99 * className: class-string,
10- * first: int,
1110 * isValueNullable: bool
1211 * }
1312 *
@@ -22,7 +21,6 @@ final class ConnectionTypeReference implements TypeReference
2221 */
2322 public function __construct (
2423 public readonly string $ className ,
25- public readonly int $ first ,
2624 bool $ isValueNullable ,
2725 ) {
2826 $ this ->isValueNullable = $ isValueNullable ;
@@ -31,9 +29,9 @@ public function __construct(
3129 /**
3230 * @param class-string $className
3331 */
34- public static function create (string $ className, int $ first ): self
32+ public static function create (string $ className ): self
3533 {
36- return new self ($ className , $ first , false );
34+ return new self ($ className , false );
3735 }
3836
3937 /**
@@ -43,7 +41,6 @@ public function toArray(): array
4341 {
4442 return [
4543 'className ' => $ this ->className ,
46- 'first ' => $ this ->first ,
4744 'isValueNullable ' => $ this ->isValueNullable (),
4845 ];
4946 }
@@ -55,7 +52,6 @@ public static function fromArray(array $payload): ConnectionTypeReference
5552 {
5653 return new self (
5754 $ payload ['className ' ],
58- $ payload ['first ' ],
5955 $ payload ['isValueNullable ' ],
6056 );
6157 }
@@ -64,7 +60,6 @@ public function equals(TypeReference $reference): bool
6460 {
6561 return $ reference instanceof self
6662 && $ reference ->className === $ this ->className
67- && $ reference ->first === $ this ->first
6863 && $ reference ->isValueNullable === $ this ->isValueNullable ;
6964 }
7065}
0 commit comments