Skip to content

Commit 103b410

Browse files
committed
Lower requirements to allow installing doctrine/doctrine-bundle on Symfony 3.4
1 parent 79837b5 commit 103b410

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"symfony/security-core": "^3.4.43||^4.4.11||^5.0.11"
3333
},
3434
"require-dev": {
35-
"doctrine/doctrine-bundle": "^2.2",
35+
"doctrine/doctrine-bundle": "^1.12||^2.0",
3636
"friendsofphp/php-cs-fixer": "^2.17",
3737
"jangregor/phpstan-prophecy": "^0.8",
3838
"monolog/monolog": "^1.3||^2.0",

src/DependencyInjection/Configuration.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,8 @@ private function addDistributedTracingSection(ArrayNodeDefinition $rootNode): vo
154154
->addDefaultsIfNotSet()
155155
->children()
156156
->arrayNode('dbal')
157-
->addDefaultsIfNotSet()
158-
->fixXmlConfig('connection')
159157
->canBeEnabled()
158+
->fixXmlConfig('connection')
160159
->children()
161160
->arrayNode('connections')
162161
->defaultValue(class_exists(DoctrineBundle::class) ? ['%doctrine.default_connection%'] : [])

src/Tracing/Doctrine/DBAL/TracingDriverConnection.php

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,10 @@ public function __construct(
8989

9090
/**
9191
* {@inheritdoc}
92+
*
93+
* @param string $sql
9294
*/
93-
public function prepare(string $sql): Statement
95+
public function prepare(/*string*/ $sql): Statement
9496
{
9597
return $this->traceFunction(self::SPAN_OP_CONN_PREPARE, $sql, function () use ($sql): Statement {
9698
return $this->decoratedConnection->prepare($sql);
@@ -99,8 +101,10 @@ public function prepare(string $sql): Statement
99101

100102
/**
101103
* {@inheritdoc}
104+
*
105+
* @param string $sql
102106
*/
103-
public function query(string $sql): Result
107+
public function query(/*string*/ $sql): Result
104108
{
105109
return $this->traceFunction(self::SPAN_OP_CONN_QUERY, $sql, function () use ($sql): Result {
106110
return $this->decoratedConnection->query($sql);
@@ -117,8 +121,10 @@ public function quote($value, $type = ParameterType::STRING)
117121

118122
/**
119123
* {@inheritdoc}
124+
*
125+
* @param string $sql
120126
*/
121-
public function exec(string $sql): int
127+
public function exec(/*string*/ $sql): int
122128
{
123129
return $this->traceFunction(self::SPAN_OP_CONN_EXEC, $sql, function () use ($sql): int {
124130
return $this->decoratedConnection->exec($sql);

0 commit comments

Comments
 (0)