1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-29 20:28:59 +01:00

Fix tests

This commit is contained in:
fluffycondor 2022-12-18 16:26:43 +06:00
parent 6f230edc8b
commit dd76a1e481

View File

@ -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',
]
],
];
}
}