Skip to content

Commit d8f0239

Browse files
committed
Update PHP 8.4+ expectations for numeric-string being non-empty-string
Amp-Thread-ID: https://ampcode.com/threads/T-01a1ad71-9d5a-7120-9844-bfb0954d122f
1 parent d8bc5b1 commit d8f0239

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎tests/PHPStan/Analyser/nsrt/bcmath-number.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public function bcVsNull(Number $a): void
186186
assertType('*ERROR*', $a * $b);
187187
assertType('*ERROR*', $a / $b);
188188
assertType('*ERROR*', $a % $b);
189-
assertType('non-empty-string&numeric-string', $a . $b);
189+
assertType('numeric-string', $a . $b);
190190
assertType('*ERROR*', $a ** $b);
191191
assertType('*ERROR*', $a << $b);
192192
assertType('*ERROR*', $a >> $b);

‎tests/PHPStan/Analyser/nsrt/bug-12393b-php84.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class StringableFoo {
1313
// https://3v4l.org/nelJF#v8.4.6
1414
public function doFoo3(\BcMath\Number $foo): void {
1515
$this->foo = $foo;
16-
assertType('non-empty-string&numeric-string', $this->foo);
16+
assertType('numeric-string', $this->foo);
1717
}
1818

1919
public function __toString(): string {

0 commit comments

Comments
 (0)