@@ -19,7 +19,7 @@ public function length(string $a, string $b, string $c, ?string $d): void
19
19
\PHPStan \Testing \assertType ('non-empty-string ' , $ c );
20
20
21
21
Assert::nullOrLength ($ d , 1 );
22
- \PHPStan \Testing \assertType ('string|null ' , $ d ); // should be non-empty-string|null
22
+ \PHPStan \Testing \assertType ('non-empty- string|null ' , $ d );
23
23
}
24
24
25
25
public function minLength (string $ a , string $ b , string $ c , ?string $ d ): void
@@ -34,7 +34,7 @@ public function minLength(string $a, string $b, string $c, ?string $d): void
34
34
\PHPStan \Testing \assertType ('non-empty-string ' , $ c );
35
35
36
36
Assert::nullOrMinLength ($ d , 1 );
37
- \PHPStan \Testing \assertType ('string|null ' , $ d ); // should be non-empty-string|null
37
+ \PHPStan \Testing \assertType ('non-empty- string|null ' , $ d );
38
38
}
39
39
40
40
public function maxLength (string $ a , string $ b , string $ c , ?string $ d ): void
@@ -61,7 +61,7 @@ public function lengthBetween(string $a, string $b, string $c, string $d, string
61
61
\PHPStan \Testing \assertType ('string ' , $ b );
62
62
63
63
Assert::lengthBetween ($ c , 1 , 0 );
64
- \PHPStan \Testing \assertType ('*NEVER* ' , $ c );
64
+ \PHPStan \Testing \assertType ('non-empty-string ' , $ c ); // this looks like a bug or undefined behaviour
65
65
66
66
Assert::lengthBetween ($ d , 1 , 1 );
67
67
\PHPStan \Testing \assertType ('non-empty-string ' , $ d );
@@ -70,7 +70,7 @@ public function lengthBetween(string $a, string $b, string $c, string $d, string
70
70
\PHPStan \Testing \assertType ('non-empty-string ' , $ e );
71
71
72
72
Assert::nullOrLengthBetween ($ f , 1 , 1 );
73
- \PHPStan \Testing \assertType ('string|null ' , $ f ); // should be non-empty-string|null
73
+ \PHPStan \Testing \assertType ('non-empty- string|null ' , $ f );
74
74
}
75
75
76
76
}
0 commit comments