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/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 { 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()