Skip to content

Commit f04262b

Browse files
authored
Merge pull request #99 from php-db/0.3.x
0.3.4-merge-up-into-0.4.x
2 parents 3d3a3b6 + fb2c35d commit f04262b

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/Adapter/Adapter.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ class Adapter implements AdapterInterface, Profiler\ProfilerAwareInterface, Sche
2020
* @throws Exception\InvalidArgumentException
2121
*/
2222
public function __construct(
23-
protected readonly Driver\DriverInterface $driver,
24-
protected readonly Platform\PlatformInterface $platform,
25-
protected readonly ResultSet\ResultSetInterface $queryResultSetPrototype,
23+
protected Driver\DriverInterface $driver,
24+
protected Platform\PlatformInterface $platform,
25+
protected ResultSet\ResultSetInterface $queryResultSetPrototype = new ResultSet\ResultSet(),
2626
protected ?Profiler\ProfilerInterface $profiler = null
2727
) {
2828
if ($profiler) {

src/Container/AdapterAbstractServiceFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
* Database adapter abstract service factory.
1717
*
1818
* Allows configuring several database instances (such as writer and reader).
19+
*
20+
* @internal
1921
*/
2022
class AdapterAbstractServiceFactory implements AbstractFactoryInterface
2123
{

0 commit comments

Comments
 (0)