Fix tests

This commit is contained in:
Dennis Eichhorn 2023-09-22 00:07:11 +00:00
parent 9c1c339d37
commit 662651236e
3 changed files with 4 additions and 4 deletions

View File

@ -422,7 +422,7 @@ final class StringUtils
/** /**
* Turn ints into spreadsheet column names * Turn ints into spreadsheet column names
* *
* @param int $num Column number * @param int $num Column number (1 = A)
* *
* @return string * @return string
* *
@ -437,7 +437,7 @@ final class StringUtils
$result = ''; $result = '';
while ($num >= 0) { while ($num >= 0) {
$remainder = $num % 26; $remainder = $num % 26;
$result = \chr(65 + $remainder) . $result; $result = \chr(64 + $remainder) . $result;
if ($num < 26) { if ($num < 26) {
break; break;

View File

@ -270,7 +270,7 @@ final class HttpRequestTest extends \PHPUnit\Framework\TestCase
'b' => [4, 5], 'b' => [4, 5],
]; ];
$request->setData('abc', \json_encode($data) . ','); $request->setData('abc', \json_encode($data));
self::assertEquals($data, $request->getDataJson('abc')); self::assertEquals($data, $request->getDataJson('abc'));
} }

View File

@ -3,5 +3,5 @@ declare(strict_types=1);
function noDeprecated() : string function noDeprecated() : string
{ {
return \is_string(''); return '';
} }