Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dc611e5

Browse files
authored
Fix the return type of the TracingDriver::getDatabase() method (getsentry#541)
1 parent 5129f96 commit dc611e5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Unreleased
44

5+
- Fix return type for `TracingDriver::getDatabase()` method (#541)
6+
57
## 4.2.0 (2021-08-12)
68

79
- Log the bus name, receiver name and message class name as event tags when using Symfony Messenger (#492)

src/Tracing/Doctrine/DBAL/TracingDriver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function getName(): string
101101
/**
102102
* {@inheritdoc}
103103
*/
104-
public function getDatabase(Connection $conn): string
104+
public function getDatabase(Connection $conn): ?string
105105
{
106106
if (method_exists($this->decoratedDriver, 'getDatabase')) {
107107
return $this->decoratedDriver->getDatabase($conn);

0 commit comments

Comments
 (0)