Skip to content

Commit 6e9d010

Browse files
authored
[TASK] Use native type declarations in Anchor (#1141)
Part of #811
1 parent 681fef6 commit 6e9d010

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Please also have a look at our
3232
- Make all non-private properties `@internal` (#886)
3333
- Use more native type declarations and strict mode
3434
(#641, #772, #774, #778, #804, #841, #873, #875, #891, #922, #923, #933, #958,
35-
#964, #967, #1000, #1044, #1134, #1136, #1137, #1139, #1140)
35+
#964, #967, #1000, #1044, #1134, #1136, #1137, #1139, #1140, #1141)
3636
- Add visibility to all class/interface constants (#469)
3737

3838
### Deprecated

src/Parsing/Anchor.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
class Anchor
1111
{
1212
/**
13-
* @var int
13+
* @var int<0, max>
1414
*/
1515
private $position;
1616

@@ -20,9 +20,9 @@ class Anchor
2020
private $parserState;
2121

2222
/**
23-
* @param int $position
23+
* @param int<0, max> $position
2424
*/
25-
public function __construct($position, ParserState $parserState)
25+
public function __construct(int $position, ParserState $parserState)
2626
{
2727
$this->position = $position;
2828
$this->parserState = $parserState;

0 commit comments

Comments
 (0)