style(админка): pint — new UseAdminConnection без скобок в тесте
Accessibility (Pa11y live) / a11y (push) Has been cancelled
SAST — Semgrep / Semgrep SAST scan (push) Has been cancelled

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Дмитрий
2026-06-27 07:17:39 +03:00
parent b38fe0c875
commit 9d0999d49a
2 changed files with 7 additions and 7 deletions
@@ -13,7 +13,7 @@ it('switches default connection to pgsql_admin during the request', function ()
$original = DB::getDefaultConnection();
$seen = null;
$response = (new UseAdminConnection())->handle(
$response = (new UseAdminConnection)->handle(
Request::create('/api/admin/tenants'),
function () use (&$seen) {
$seen = DB::getDefaultConnection();
@@ -30,7 +30,7 @@ it('switches default connection to pgsql_admin during the request', function ()
it('restores the default connection even when downstream throws', function () {
$original = DB::getDefaultConnection();
$call = fn () => (new UseAdminConnection())->handle(
$call = fn () => (new UseAdminConnection)->handle(
Request::create('/api/admin/tenants'),
function () {
throw new RuntimeException('boom');