@@ -30,7 +30,7 @@ public function doFoo($a, $b, array $c, iterable $d, $e, $f, $g, $h, $i, $j, $k,
30
30
\PHPStan \Testing \assertType ('float ' , $ f );
31
31
32
32
Assert::numeric ($ g );
33
- \PHPStan \Testing \assertType ('float|int|(string& numeric) ' , $ g );
33
+ \PHPStan \Testing \assertType ('float|int|numeric-string ' , $ g );
34
34
35
35
Assert::boolean ($ h );
36
36
\PHPStan \Testing \assertType ('bool ' , $ h );
@@ -104,7 +104,7 @@ public function doFoo($a, $b, array $c, iterable $d, $e, $f, $g, $h, $i, $j, $k,
104
104
$ z = [-1 , -2 , -3 ];
105
105
}
106
106
Assert::allNotSame ($ z , -1 );
107
- \PHPStan \Testing \assertType ('array( 1, -2|2, -3|3) ' , $ z );
107
+ \PHPStan \Testing \assertType ('array{ 1, -2|2, -3|3} ' , $ z );
108
108
109
109
Assert::subclassOf ($ aa , self ::class);
110
110
\PHPStan \Testing \assertType ('class-string<PHPStan\Type\WebMozartAssert\Foo>|PHPStan\Type\WebMozartAssert\Foo ' , $ aa );
@@ -117,7 +117,7 @@ public function doFoo($a, $b, array $c, iterable $d, $e, $f, $g, $h, $i, $j, $k,
117
117
\PHPStan \Testing \assertType ('non-empty-string ' , $ ac );
118
118
119
119
Assert::integerish ($ ad );
120
- \PHPStan \Testing \assertType ('float|int|(string& numeric) ' , $ ad );
120
+ \PHPStan \Testing \assertType ('float|int|numeric-string ' , $ ad );
121
121
122
122
Assert::implementsInterface ($ ae , Baz::class);
123
123
\PHPStan \Testing \assertType ('PHPStan\Type\WebMozartAssert\Baz ' , $ ae );
@@ -129,7 +129,7 @@ public function doFoo($a, $b, array $c, iterable $d, $e, $f, $g, $h, $i, $j, $k,
129
129
/** @var array{foo?: string, bar?: string} $things */
130
130
$ things = doFoo ();
131
131
Assert::keyExists ($ things , 'foo ' );
132
- \PHPStan \Testing \assertType ('array( \' foo \' => string, ? \' bar \' => string) ' , $ things );
132
+ \PHPStan \Testing \assertType ('array{ foo: string, bar?: string} ' , $ things );
133
133
134
134
Assert::classExists ($ ag );
135
135
\PHPStan \Testing \assertType ('class-string ' , $ ag );
0 commit comments