We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4894b8 commit 8cc1a93Copy full SHA for 8cc1a93
tests/PHPStan/Analyser/data/bug-8803.php
@@ -12,11 +12,15 @@ public function sayHello(): void
12
for ($offset = 1; $offset <= 14; $offset++) {
13
$value = $from->format('N') + $offset;
14
$value2 = $offset + $from->format('N');
15
+ $value3 = '1e3' + $offset;
16
+ $value4 = $offset + '1e3';
17
18
assertType("'1'|'2'|'3'|'4'|'5'|'6'|'7'", $from->format('N'));
19
assertType('int<1, 14>', $offset);
20
assertType('int<2, 21>', $value);
21
assertType('int<2, 21>', $value2);
22
+ assertType('float', $value3);
23
+ assertType('float', $value4);
24
}
25
26
0 commit comments