@@ -19,7 +19,7 @@ public function length(string $a, string $b, string $c, ?string $d): void
1919 \PHPStan \Testing \assertType ('non-empty-string ' , $ c );
2020
2121 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 );
2323 }
2424
2525 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
3434 \PHPStan \Testing \assertType ('non-empty-string ' , $ c );
3535
3636 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 );
3838 }
3939
4040 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
6161 \PHPStan \Testing \assertType ('string ' , $ b );
6262
6363 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
6565
6666 Assert::lengthBetween ($ d , 1 , 1 );
6767 \PHPStan \Testing \assertType ('non-empty-string ' , $ d );
@@ -70,7 +70,7 @@ public function lengthBetween(string $a, string $b, string $c, string $d, string
7070 \PHPStan \Testing \assertType ('non-empty-string ' , $ e );
7171
7272 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 );
7474 }
7575
7676}
0 commit comments