1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-03 10:07:52 +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', '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',
] ],
]; ];
} }
} }