Skip to content

Commit 35491ce

Browse files
committed
used ::class
1 parent 044d878 commit 35491ce

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Bridges/DatabaseDI/DatabaseExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,10 @@ private function setupDatabase(array $config, string $name): void
116116

117117
if ($config['debugger']) {
118118
$connection->addSetup('@Tracy\BlueScreen::addPanel', [
119-
'Nette\Bridges\DatabaseTracy\ConnectionPanel::renderException',
119+
[Nette\Bridges\DatabaseTracy\ConnectionPanel::class, 'renderException'],
120120
]);
121121
if ($this->debugMode) {
122-
$connection->addSetup('Nette\Database\Helpers::createDebugPanel', [$connection, !empty($config['explain']), $name]);
122+
$connection->addSetup([Nette\Database\Helpers::class, 'createDebugPanel'], [$connection, !empty($config['explain']), $name]);
123123
}
124124
}
125125

src/Database/ResultSet.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ public function dump(): void
185185
public function rewind(): void
186186
{
187187
if ($this->result === false) {
188-
throw new Nette\InvalidStateException('Nette\\Database\\ResultSet implements only one way iterator.');
188+
throw new Nette\InvalidStateException(__CLASS__ . ' implements only one way iterator.');
189189
}
190190
}
191191

0 commit comments

Comments
 (0)