mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 01:38:41 +00:00
Fix tests
This commit is contained in:
parent
9c1c339d37
commit
662651236e
|
|
@ -422,7 +422,7 @@ final class StringUtils
|
|||
/**
|
||||
* Turn ints into spreadsheet column names
|
||||
*
|
||||
* @param int $num Column number
|
||||
* @param int $num Column number (1 = A)
|
||||
*
|
||||
* @return string
|
||||
*
|
||||
|
|
@ -437,7 +437,7 @@ final class StringUtils
|
|||
$result = '';
|
||||
while ($num >= 0) {
|
||||
$remainder = $num % 26;
|
||||
$result = \chr(65 + $remainder) . $result;
|
||||
$result = \chr(64 + $remainder) . $result;
|
||||
|
||||
if ($num < 26) {
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -270,7 +270,7 @@ final class HttpRequestTest extends \PHPUnit\Framework\TestCase
|
|||
'b' => [4, 5],
|
||||
];
|
||||
|
||||
$request->setData('abc', \json_encode($data) . ',');
|
||||
$request->setData('abc', \json_encode($data));
|
||||
self::assertEquals($data, $request->getDataJson('abc'));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -3,5 +3,5 @@ declare(strict_types=1);
|
|||
|
||||
function noDeprecated() : string
|
||||
{
|
||||
return \is_string('');
|
||||
return '';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user