mirror of
https://github.com/danog/psalm.git
synced 2024-12-03 10:07:52 +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',
|
'php_version' => '8.0',
|
||||||
];
|
];
|
||||||
yield 'sprintf yields a non-empty-string for non-empty-string value' => [
|
yield 'sprintf yields a non-empty-string for non-empty-string value' => [
|
||||||
'<?php
|
'code' => '<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param non-empty-string $foo
|
* @param non-empty-string $foo
|
||||||
@ -115,13 +115,13 @@ class CoreStubsTest extends TestCase
|
|||||||
',
|
',
|
||||||
];
|
];
|
||||||
yield 'sprintf yields a string for possible empty string param' => [
|
yield 'sprintf yields a string for possible empty string param' => [
|
||||||
'<?php
|
'code' => '<?php
|
||||||
|
|
||||||
$a = sprintf("%s", "");
|
$a = sprintf("%s", "");
|
||||||
',
|
',
|
||||||
'assertions' => [
|
'assertions' => [
|
||||||
'$a===' => 'string',
|
'$a===' => 'string',
|
||||||
]
|
],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user