Skip to content

Commit 4646990

Browse files
committed
Merge branch 'v2.x' into v3.x
2 parents b13d893 + 31342ca commit 4646990

3 files changed

Lines changed: 2 additions & 4 deletions

File tree

BaseMapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ protected function map(array $row, array $dataTypes): BaseModel
8484
),
8585
'int' => (int)$val,
8686
'bool' => $this->getBoolValue($val),
87-
default => utf8_encode((string)$val)
87+
default => mb_convert_encoding((string)$val, 'UTF-8', ['ISO-8859-1', 'UTF-8'])
8888
};
8989
}
9090
}

FeastTests/IdentityTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
declare(strict_types=1);
1919

2020
use Feast\Interfaces\ConfigInterface;
21-
use Feast\ServiceContainer\ServiceContainer;
2221
use Feast\Session\Identity;
2322
use Feast\Session\Session;
2423
use Mocks\MockUser;

HttpRequest/Response.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727

2828
class Response
2929
{
30-
3130
public function __construct(protected string $rawResponse, protected ResponseCode $responseCode)
3231
{
3332
}
@@ -40,7 +39,7 @@ public function getResponseAsText(): string
4039
public function getResultAsJson(): stdClass|array|null
4140
{
4241
try {
43-
/** @var stdClass|array */
42+
/** @var stdClass */
4443
return json_decode(
4544
mb_convert_encoding($this->rawResponse, 'UTF-8', ['ISO-8859-1', 'UTF-8']),
4645
flags: JSON_THROW_ON_ERROR

0 commit comments

Comments
 (0)