Skip to content

Commit bb1b41c

Browse files
author
Kirill Nesmeyanov
committed
Fix semantic error types
1 parent 08be765 commit bb1b41c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Exception/SemanticException.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public function getOffset(): int
3838

3939
/**
4040
* @param non-empty-string $key
41+
* @param int<0, max> $offset
4142
*
4243
* @return static
4344
*/
@@ -49,6 +50,8 @@ public static function fromShapeFieldDuplication(string $key, int $offset = 0):
4950
}
5051

5152
/**
53+
* @param int<0, max> $offset
54+
*
5255
* @return static
5356
*/
5457
public static function fromShapeMixedKeys(int $offset = 0): self
@@ -59,6 +62,8 @@ public static function fromShapeMixedKeys(int $offset = 0): self
5962
}
6063

6164
/**
65+
* @param int<0, max> $offset
66+
*
6267
* @return static
6368
*/
6469
public static function fromVariadicWithDefault(int $offset = 0): self
@@ -70,6 +75,7 @@ public static function fromVariadicWithDefault(int $offset = 0): self
7075

7176
/**
7277
* @param non-empty-string $operator
78+
* @param int<0, max> $offset
7379
*
7480
* @return static
7581
*/

0 commit comments

Comments
 (0)