Skip to content

Commit a509065

Browse files
committed
Fix remaining errors after LegacyNodeScopeResolverTest refactoring
1 parent c1c4816 commit a509065

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tests/PHPStan/Analyser/nsrt/properties.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ public function doFoo()
166166
assertType('PropertiesNamespace\Bar', $this->implicitInheritDocProperty);
167167
assertType('int', $this->readOnlyProperty);
168168
assertType('string', $this->overriddenReadOnlyProperty);
169-
assertType('DOMElement|null', $this->documentElement);
169+
assertType(PHP_VERSION_ID < 80100 ? 'string' : 'DOMElement|null', $this->documentElement);
170170
}
171171

172172
}

tests/PHPStan/Analyser/nsrt/range-function.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
assertType('array{2, 3, 4, 5}', range(2, 5));
1515
assertType('array{2, 4}', range(2, 5, 2));
1616
assertType('array{2, 0}', range(2, '', 2));
17-
assertType('array{2, 3, 4, 5}', range(2, 5, 1.0));
17+
assertType(PHP_VERSION_ID < 80300 ? 'array{2.0, 3.0, 4.0, 5.0}' : 'array{2, 3, 4, 5}', range(2, 5, 1.0));
1818
assertType('array{2.1, 3.1, 4.1}', range(2.1, 5));
1919
assertType('non-empty-list<int>', range(2, 5, $integer));
2020
assertType('non-empty-list<float|int>', range($float, 5, $integer));

0 commit comments

Comments
 (0)