Skip to content
Code-Schnipsel Gruppen Projekte
Bestätigt Commit 25395232 erstellt von Jan Wennrich's avatar Jan Wennrich
Dateien durchsuchen

refactor(Manager): correct case of "QUI\Database\Exception"

Übergeordneter 395e0074
No related branches found
No related tags found
3 Merge Requests!37Update 'next-3.x' with latest changes from 'main',!36Next 2.x,!33Add QUIQQER Tooling
Pipeline #10855 bestanden mit Phase
in 1 Minute und 29 Sekunden
...@@ -15,11 +15,6 @@ parameters: ...@@ -15,11 +15,6 @@ parameters:
count: 2 count: 2
path: src/QUI/Bricks/Manager.php path: src/QUI/Bricks/Manager.php
-
message: "#^Class QUI\\\\Database\\\\Exception referenced with incorrect case\\: QUI\\\\DataBase\\\\Exception\\.$#"
count: 2
path: src/QUI/Bricks/Manager.php
- -
message: "#^Method QUI\\\\Bricks\\\\Manager\\:\\:copyBrick\\(\\) should return int but returns string\\|false\\.$#" message: "#^Method QUI\\\\Bricks\\\\Manager\\:\\:copyBrick\\(\\) should return int but returns string\\|false\\.$#"
count: 1 count: 1
......
...@@ -259,7 +259,7 @@ public function existsUniqueBrickId(string $uid): bool ...@@ -259,7 +259,7 @@ public function existsUniqueBrickId(string $uid): bool
], ],
'limit' => 1 'limit' => 1
]); ]);
} catch (QUI\DataBase\Exception $Exception) { } catch (QUI\Database\Exception $Exception) {
QUI\System\Log::addError($Exception->getMessage()); QUI\System\Log::addError($Exception->getMessage());
return false; return false;
...@@ -1238,7 +1238,7 @@ protected function getInheritedBricks( ...@@ -1238,7 +1238,7 @@ protected function getInheritedBricks(
'area' => $brickArea 'area' => $brickArea
] ]
]); ]);
} catch (QUI\DataBase\Exception $Exception) { } catch (QUI\Database\Exception $Exception) {
QUI\System\Log::addError($Exception->getMessage()); QUI\System\Log::addError($Exception->getMessage());
continue; continue;
} }
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren