From c9ccd6b98a16abd169b33831aa05e6953a3591c5 Mon Sep 17 00:00:00 2001 From: Philip Iezzi Date: Tue, 15 Oct 2024 23:16:19 +0200 Subject: [PATCH] Upgraded Pest to v3 --- CHANGELOG.md | 8 +++++--- composer.json | 4 ++-- src/Providers/SqlReporterServiceProvider.php | 3 ++- tests/FeatureTestCase.php | 2 ++ 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8547387..e11cc28 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,10 @@ # CHANGELOG -## [v1.2.x (Unreleased)](https://github.com/onlime/laravel-sql-reporter/compare/v1.2.3...main) +## [v1.2.x (Unreleased)](https://github.com/onlime/laravel-sql-reporter/compare/v1.2.4...main) -- ... +## [v1.2.4 (2024-10-15)](https://github.com/onlime/laravel-sql-reporter/compare/v1.2.3...v1.2.4) + +- Upgrade Pest to v3 ## [v1.2.3 (2024-09-12)](https://github.com/onlime/laravel-sql-reporter/compare/v1.2.2...v1.2.3) @@ -15,7 +17,7 @@ - The `SqlQuery` object is now a `readonly` class, and all the getter methods have been removed. **This is a breaking change.** - The `SqlQuery` object now includes the unprepared query and bindings. - Added tests for the reporting mechanism and the `QueryLogWritten` event -- Drops support for 8.1 +- Drops support for PHP 8.1 ## [v1.2.1 (2024-03-14)](https://github.com/onlime/laravel-sql-reporter/compare/v1.2.0...v1.2.1) diff --git a/composer.json b/composer.json index 20de3c7..bdac1ce 100644 --- a/composer.json +++ b/composer.json @@ -20,10 +20,10 @@ "illuminate/container": "^10.15|^11.0" }, "require-dev": { - "laravel/pint": "^1.14", + "laravel/pint": "^1.18", "mockery/mockery": "^1.0", "orchestra/testbench": "^8.0|^9.0", - "pestphp/pest": "^2.34" + "pestphp/pest": "^3.0" }, "autoload": { "psr-4": { diff --git a/src/Providers/SqlReporterServiceProvider.php b/src/Providers/SqlReporterServiceProvider.php index 95ded11..be666df 100644 --- a/src/Providers/SqlReporterServiceProvider.php +++ b/src/Providers/SqlReporterServiceProvider.php @@ -4,6 +4,7 @@ use Illuminate\Console\Events\CommandFinished; use Illuminate\Foundation\Http\Events\RequestHandled; +use Illuminate\Support\Facades\App; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Event; use Illuminate\Support\ServiceProvider; @@ -19,7 +20,7 @@ class SqlReporterServiceProvider extends ServiceProvider */ public function register(): void { - $this->config = $this->app->make(Config::class); + $this->config = App::make(Config::class); $this->mergeConfigFrom($this->configFileLocation(), 'sql-reporter'); diff --git a/tests/FeatureTestCase.php b/tests/FeatureTestCase.php index 1d2b3da..c4dac9c 100644 --- a/tests/FeatureTestCase.php +++ b/tests/FeatureTestCase.php @@ -13,6 +13,8 @@ protected function tearDown(): void { Mockery::close(); Carbon::setTestNow(); + + parent::tearDown(); } protected function getPackageProviders($app)