Skip to content

Commit c9ccd6b

Browse files
committed
Upgraded Pest to v3
1 parent 169af80 commit c9ccd6b

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

CHANGELOG.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# CHANGELOG
22

3-
## [v1.2.x (Unreleased)](https://github.com/onlime/laravel-sql-reporter/compare/v1.2.3...main)
3+
## [v1.2.x (Unreleased)](https://github.com/onlime/laravel-sql-reporter/compare/v1.2.4...main)
44

5-
- ...
5+
## [v1.2.4 (2024-10-15)](https://github.com/onlime/laravel-sql-reporter/compare/v1.2.3...v1.2.4)
6+
7+
- Upgrade Pest to v3
68

79
## [v1.2.3 (2024-09-12)](https://github.com/onlime/laravel-sql-reporter/compare/v1.2.2...v1.2.3)
810

@@ -15,7 +17,7 @@
1517
- The `SqlQuery` object is now a `readonly` class, and all the getter methods have been removed. **This is a breaking change.**
1618
- The `SqlQuery` object now includes the unprepared query and bindings.
1719
- Added tests for the reporting mechanism and the `QueryLogWritten` event
18-
- Drops support for 8.1
20+
- Drops support for PHP 8.1
1921

2022
## [v1.2.1 (2024-03-14)](https://github.com/onlime/laravel-sql-reporter/compare/v1.2.0...v1.2.1)
2123

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
"illuminate/container": "^10.15|^11.0"
2121
},
2222
"require-dev": {
23-
"laravel/pint": "^1.14",
23+
"laravel/pint": "^1.18",
2424
"mockery/mockery": "^1.0",
2525
"orchestra/testbench": "^8.0|^9.0",
26-
"pestphp/pest": "^2.34"
26+
"pestphp/pest": "^3.0"
2727
},
2828
"autoload": {
2929
"psr-4": {

src/Providers/SqlReporterServiceProvider.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use Illuminate\Console\Events\CommandFinished;
66
use Illuminate\Foundation\Http\Events\RequestHandled;
7+
use Illuminate\Support\Facades\App;
78
use Illuminate\Support\Facades\DB;
89
use Illuminate\Support\Facades\Event;
910
use Illuminate\Support\ServiceProvider;
@@ -19,7 +20,7 @@ class SqlReporterServiceProvider extends ServiceProvider
1920
*/
2021
public function register(): void
2122
{
22-
$this->config = $this->app->make(Config::class);
23+
$this->config = App::make(Config::class);
2324

2425
$this->mergeConfigFrom($this->configFileLocation(), 'sql-reporter');
2526

tests/FeatureTestCase.php

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ protected function tearDown(): void
1313
{
1414
Mockery::close();
1515
Carbon::setTestNow();
16+
17+
parent::tearDown();
1618
}
1719

1820
protected function getPackageProviders($app)

0 commit comments

Comments
 (0)