File tree 4 files changed +22
-9
lines changed
4 files changed +22
-9
lines changed Original file line number Diff line number Diff line change 3
3
All notable changes to this project will be documented in this file. This project adheres to
4
4
[ Semantic Versioning] ( http://semver.org/ ) and [ this changelog format] ( http://keepachangelog.com/ ) .
5
5
6
+ ## Unreleased
7
+
8
+ ### Added
9
+
10
+ - Package now supports PHP 8.1.
11
+
6
12
## [ 1.0.1] - 2021-07-31
7
13
8
14
### Fixed
Original file line number Diff line number Diff line change 25
25
"require" : {
26
26
"php" : " ^7.4|^8.0" ,
27
27
"illuminate/support" : " ^8.0" ,
28
- "laravel-json-api/eloquent" : " ^1.0.0" ,
28
+ "laravel-json-api/eloquent" : " ^1.0.1|^2. 0" ,
29
29
"tenantcloud/laravel-boolean-softdeletes" : " ^3.1"
30
30
},
31
31
"require-dev" : {
32
- "orchestra/testbench" : " ^6.17 " ,
33
- "phpunit/phpunit" : " ^9.5"
32
+ "orchestra/testbench" : " ^6.23 " ,
33
+ "phpunit/phpunit" : " ^9.5.10 "
34
34
},
35
35
"autoload" : {
36
36
"psr-4" : {
49
49
"dev-develop" : " 1.x-dev"
50
50
}
51
51
},
52
- "minimum-stability" : " stable " ,
52
+ "minimum-stability" : " dev " ,
53
53
"prefer-stable" : true ,
54
54
"config" : {
55
55
"sort-packages" : true
Original file line number Diff line number Diff line change 24
24
convertErrorsToExceptions =" true"
25
25
convertNoticesToExceptions =" true"
26
26
convertWarningsToExceptions =" true"
27
+ convertDeprecationsToExceptions =" true"
27
28
processIsolation =" false"
28
29
stopOnError =" false"
29
30
stopOnFailure =" false"
47
48
</testsuite >
48
49
</testsuites >
49
50
<php >
51
+ <ini name =" error_reporting" value =" E_ALL" />
50
52
<env name =" DB_CONNECTION" value =" testing" />
51
53
</php >
52
54
</phpunit >
Original file line number Diff line number Diff line change 20
20
namespace LaravelJsonApi \BooleanSoftDeletes \Tests \Acceptance ;
21
21
22
22
use App \Schemas \PostSchema ;
23
+ use Illuminate \Foundation \Testing \Concerns \InteractsWithDeprecationHandling ;
23
24
use LaravelJsonApi \Contracts \Schema \Container as SchemaContainerContract ;
24
25
use LaravelJsonApi \Contracts \Server \Server ;
25
26
use LaravelJsonApi \Core \Schema \Container as SchemaContainer ;
27
+ use LaravelJsonApi \Core \Support \ContainerResolver ;
26
28
use Orchestra \Testbench \TestCase as BaseTestCase ;
27
29
28
30
class TestCase extends BaseTestCase
29
31
{
32
+ use InteractsWithDeprecationHandling;
30
33
31
34
/**
32
35
* @return void
@@ -35,14 +38,16 @@ protected function setUp(): void
35
38
{
36
39
parent ::setUp ();
37
40
41
+ $ this ->withoutDeprecationHandling ();
42
+
38
43
$ this ->loadMigrationsFrom (__DIR__ . '/../../database/migrations ' );
39
44
40
- $ this ->app ->singleton (
41
- SchemaContainerContract::class,
42
- fn ( $ container ) => new SchemaContainer ($ container , $ container ->make (Server::class), [
45
+ $ this ->app ->singleton (SchemaContainerContract::class, static function ( $ container ) {
46
+ $ resolver = new ContainerResolver ( static fn () => $ container );
47
+ return new SchemaContainer ($ resolver , $ container ->make (Server::class), [
43
48
PostSchema::class,
44
- ]),
45
- );
49
+ ]);
50
+ } );
46
51
47
52
$ this ->app ->singleton (Server::class, function () {
48
53
$ server = $ this ->createMock (Server::class);
You can’t perform that action at this time.
0 commit comments