mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
Fix tests
This commit is contained in:
parent
6f230edc8b
commit
dd76a1e481
@ -102,7 +102,7 @@ class CoreStubsTest extends TestCase
|
||||
'php_version' => '8.0',
|
||||
];
|
||||
yield 'sprintf yields a non-empty-string for non-empty-string value' => [
|
||||
'<?php
|
||||
'code' => '<?php
|
||||
|
||||
/**
|
||||
* @param non-empty-string $foo
|
||||
@ -115,13 +115,13 @@ class CoreStubsTest extends TestCase
|
||||
',
|
||||
];
|
||||
yield 'sprintf yields a string for possible empty string param' => [
|
||||
'<?php
|
||||
'code' => '<?php
|
||||
|
||||
$a = sprintf("%s", "");
|
||||
',
|
||||
'assertions' => [
|
||||
'$a===' => 'string',
|
||||
]
|
||||
],
|
||||
];
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user