From 4b0ca714ce6f4803263f8f3246f1b66b8a7ee000 Mon Sep 17 00:00:00 2001 From: Franck DAKIA Date: Wed, 19 Mar 2025 12:09:16 +0000 Subject: [PATCH 1/2] fix: undefined class --- src/Database/Database.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/Database/Database.php b/src/Database/Database.php index 1d2ef2e9..124191b5 100644 --- a/src/Database/Database.php +++ b/src/Database/Database.php @@ -4,14 +4,15 @@ namespace Bow\Database; +use PDO; +use ErrorException; +use Bow\Security\Sanitize; +use Bow\Database\Exception\DatabaseException; use Bow\Database\Connection\AbstractConnection; +use Bow\Database\Exception\ConnectionException; use Bow\Database\Connection\Adapter\MysqlAdapter; -use Bow\Database\Connection\Adapter\PostgreSQLAdapter; use Bow\Database\Connection\Adapter\SqliteAdapter; -use Bow\Database\Exception\ConnectionException; -use Bow\Database\Exception\DatabaseException; -use Bow\Security\Sanitize; -use PDO; +use Bow\Database\Connection\Adapter\PostgreSQLAdapter; class Database { From a9f80ec30b059b535fd7418085362a7a71b8fa34 Mon Sep 17 00:00:00 2001 From: Franck DAKIA Date: Wed, 19 Mar 2025 12:11:53 +0000 Subject: [PATCH 2/2] fix: github action/cache --- .github/workflows/coding-standards.yml | 2 +- .github/workflows/tests.yml | 2 +- tests/Support/HttpClientTest.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/coding-standards.yml b/.github/workflows/coding-standards.yml index b39bcba6..7c014d20 100644 --- a/.github/workflows/coding-standards.yml +++ b/.github/workflows/coding-standards.yml @@ -19,7 +19,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup PHP uses: shivammathur/setup-php@v2 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2c99dc37..78443439 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -50,7 +50,7 @@ jobs: - name: Cache Composer packages id: composer-cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: vendor key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} diff --git a/tests/Support/HttpClientTest.php b/tests/Support/HttpClientTest.php index 867a0430..c647050f 100644 --- a/tests/Support/HttpClientTest.php +++ b/tests/Support/HttpClientTest.php @@ -13,7 +13,7 @@ public function test_get_method() $response = $http->get("https://www.oogle.com"); - $this->assertEquals($response->statusCode(), 525); + $this->assertEquals($response->statusCode(), 503); } public function test_get_method_with_custom_headers()