Skip to content

Commit 3249893

Browse files
committed
wip
1 parent dfa1e86 commit 3249893

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/Database/Drivers/PDO/Connection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
abstract class Connection implements Drivers\Connection
2020
{
2121
protected readonly PDO $pdo;
22-
protected Drivers\Engine $engine;
23-
protected readonly TypeConverter $typeConverter;
22+
public Drivers\Engine $engine;
23+
public readonly TypeConverter $typeConverter;
2424

2525

2626
public function __construct(

tests/Database/ResultSet.customNormalizer.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ $connection->query('UPDATE author SET born=?', new DateTime('2022-01-23'));
2020
test('disabled normalization', function () use ($connection) {
2121
$driverName = $GLOBALS['driverName'];
2222

23-
$connection->setRowNormalizer(null);
23+
$connection->getConnectionDriver()->typeConverter->convertDateTime = false;
2424
$res = $connection->query('SELECT * FROM author');
2525
$asInt = $driverName === 'pgsql' || ($driverName !== 'sqlsrv' && PHP_VERSION_ID >= 80100);
2626
Assert::same([

0 commit comments

Comments
 (0)