Skip to content
Code-Schnipsel Gruppen Projekte
Bestätigt Commit 8ebf0d6c erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

fix: phpstan errors

Class QUI\DataBase\Exception not found, variable $whereOr in empty() always exists and is not falsy
Übergeordneter 89ec9752
No related branches found
No related tags found
3 Merge Requests!8fix(CouponCodeInput): mobile buttons adjusted,!7fix(CouponCodeInput): mobile buttons adjusted,!3feat!: quiqqer v2
Pipeline #7263 bestanden mit Phase
in 8 Sekunden
......@@ -7,7 +7,6 @@
use QUI;
use QUI\ERP\Discount\Handler as DiscountHandler;
use QUI\ERP\Order\AbstractOrder;
use QUI\ERP\Order\Order;
use QUI\ERP\Order\OrderInterface;
use QUI\ExceptionStack;
use QUI\Interfaces\Users\User;
......@@ -123,7 +122,7 @@ public function __construct(int $id)
'id' => $id
]
]);
} catch (QUI\DataBase\Exception $Exception) {
} catch (QUI\Database\Exception $Exception) {
QUI\System\Log::addError($Exception->getMessage());
throw new CouponCodeException([
......@@ -591,7 +590,7 @@ public function delete(): void
Handler::getTable(),
['id' => $this->id]
);
} catch (QUI\DataBase\Exception $Exception) {
} catch (QUI\Database\Exception $Exception) {
QUI\System\Log::addError($Exception->getMessage());
}
......
......@@ -340,14 +340,12 @@ public static function search(array $searchParams, bool $countOnly = false): arr
$whereOr[] = '`' . $searchColumn . '` LIKE :search';
}
if (!empty($whereOr)) {
$where[] = '(' . implode(' OR ', $whereOr) . ')';
$where[] = '(' . implode(' OR ', $whereOr) . ')';
$binds['search'] = [
'value' => '%' . $searchParams['search'] . '%',
'type' => PDO::PARAM_STR
];
}
$binds['search'] = [
'value' => '%' . $searchParams['search'] . '%',
'type' => PDO::PARAM_STR
];
}
// build WHERE query string
......
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