Skip to content

Commit b578efa

Browse files
committed
move
1 parent 4988174 commit b578efa

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

src/Tracing/Doctrine/DBAL/TracingDriverConnection.php

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,18 @@ public function errorCode(): ?string
177177
throw new \BadMethodCallException(sprintf('The %s() method is not supported on Doctrine DBAL 3.0.', __METHOD__));
178178
}
179179

180+
/**
181+
* {@inheritdoc}
182+
*/
183+
public function getNativeConnection()
184+
{
185+
if (!method_exists($this->decoratedConnection, 'getNativeConnection')) {
186+
throw new LogicException(sprintf('The decoratedConnection %s does not support accessing the native connection.', \get_class($this->decoratedConnection)));
187+
}
188+
189+
return $this->decoratedConnection->getNativeConnection();
190+
}
191+
180192
/**
181193
* {@inheritdoc}
182194
*/
@@ -194,15 +206,6 @@ public function getWrappedConnection(): DriverConnectionInterface
194206
return $this->decoratedConnection;
195207
}
196208

197-
public function getNativeConnection()
198-
{
199-
if (!method_exists($this->decoratedConnection, 'getNativeConnection')) {
200-
throw new LogicException(sprintf('The decoratedConnection %s does not support accessing the native connection.', \get_class($this->decoratedConnection)));
201-
}
202-
203-
return $this->decoratedConnection->getNativeConnection();
204-
}
205-
206209
/**
207210
* @phpstan-template T
208211
*

0 commit comments

Comments
 (0)