Skip to content

Commit b60cedb

Browse files
committed
Improve compatibility with PHPStan 1.0
1 parent 3bd8464 commit b60cedb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/Type/BeberleiAssert/data/data.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function doFoo($a, $b, array $c, iterable $d, $e, $f, $g, $h, $i, $j, $k,
3030
\PHPStan\Testing\assertType('float', $f);
3131

3232
Assertion::numeric($g);
33-
\PHPStan\Testing\assertType('float|int|(string&numeric)', $g);
33+
\PHPStan\Testing\assertType('float|int|numeric-string', $g);
3434

3535
Assertion::boolean($h);
3636
\PHPStan\Testing\assertType('bool', $h);
@@ -101,7 +101,7 @@ public function doFoo($a, $b, array $c, iterable $d, $e, $f, $g, $h, $i, $j, $k,
101101
$z = [-1, -2, -3];
102102
}
103103
Assertion::allNotSame($z, -1);
104-
\PHPStan\Testing\assertType('array(1, -2|2, -3|3)', $z);
104+
\PHPStan\Testing\assertType('array{1, -2|2, -3|3}', $z);
105105

106106
Assertion::subclassOf($aa, self::class);
107107
\PHPStan\Testing\assertType('class-string<PHPStan\Type\BeberleiAssert\Foo>|PHPStan\Type\BeberleiAssert\Foo', $aa);
@@ -170,7 +170,7 @@ public function doBaz(array $a): void
170170
public function doFooBar($a): void
171171
{
172172
Assertion::integerish($a);
173-
\PHPStan\Testing\assertType('float|int|(string&numeric)', $a);
173+
\PHPStan\Testing\assertType('float|int|numeric-string', $a);
174174
}
175175
}
176176

0 commit comments

Comments
 (0)