File tree Expand file tree Collapse file tree 8 files changed +25
-42
lines changed Expand file tree Collapse file tree 8 files changed +25
-42
lines changed Original file line number Diff line number Diff line change 14
14
strategy :
15
15
fail-fast : true
16
16
matrix :
17
- php : ['8.0', 8.1, 8.2]
18
- laravel : [9 ]
17
+ php : [8.1, 8.2]
18
+ laravel : [10 ]
19
19
20
20
steps :
21
21
- name : Checkout Code
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 (6.0)
7
+
8
+ ### Changed
9
+
10
+ - Dropped support for PHP 8.0 - minimum PHP version is now 8.1.
11
+ - Upgraded to Laravel 10, dropping support for Laravel 9.
12
+
6
13
## [ 5.0.0] - 2023-01-21
7
14
8
15
### Changed
Original file line number Diff line number Diff line change 22
22
}
23
23
],
24
24
"require" : {
25
- "php" : " ^8.0 " ,
25
+ "php" : " ^8.1 " ,
26
26
"ext-json" : " *" ,
27
27
"laravel-json-api/neomerx-json-api" : " ^5.0.1" ,
28
- "laravel/framework" : " ^9 .0" ,
28
+ "laravel/framework" : " ^10 .0" ,
29
29
"nyholm/psr7" : " ^1.2" ,
30
30
"ramsey/uuid" : " ^4.0" ,
31
31
"symfony/psr-http-message-bridge" : " ^2.0"
32
32
},
33
33
"require-dev" : {
34
34
"ext-sqlite3" : " *" ,
35
35
"guzzlehttp/guzzle" : " ^7.0" ,
36
- "laravel-json-api/testing" : " ^1.1 " ,
36
+ "laravel-json-api/testing" : " ^2.0 " ,
37
37
"laravel/legacy-factories" : " ^1.0.4" ,
38
- "laravel/ui" : " ^3.0 " ,
38
+ "laravel/ui" : " ^4.2 " ,
39
39
"mockery/mockery" : " ^1.1" ,
40
- "orchestra/testbench" : " ^6.23|^7 .0" ,
41
- "phpunit/phpunit" : " ^9.5.10 "
40
+ "orchestra/testbench" : " ^8 .0" ,
41
+ "phpunit/phpunit" : " ^9.5.28 "
42
42
},
43
43
"suggest" : {
44
44
"cloudcreativity/json-api-testing" : " Required to use the test helpers."
72
72
}
73
73
}
74
74
},
75
- "minimum-stability" : " stable " ,
75
+ "minimum-stability" : " dev " ,
76
76
"prefer-stable" : true ,
77
77
"config" : {
78
78
"sort-packages" : true
Original file line number Diff line number Diff line change @@ -74,19 +74,13 @@ class ClientJob extends Model implements AsynchronousProcess
74
74
*/
75
75
protected $ casts = [
76
76
'attempts ' => 'integer ' ,
77
+ 'completed_at ' => 'datetime ' ,
77
78
'failed ' => 'boolean ' ,
78
79
'timeout ' => 'integer ' ,
80
+ 'timeout_at ' => 'datetime ' ,
79
81
'tries ' => 'integer ' ,
80
82
];
81
83
82
- /**
83
- * @var array
84
- */
85
- protected $ dates = [
86
- 'completed_at ' ,
87
- 'timeout_at ' ,
88
- ];
89
-
90
84
/**
91
85
* @inheritdoc
92
86
*/
Original file line number Diff line number Diff line change @@ -43,9 +43,9 @@ class Post extends Model
43
43
/**
44
44
* @var array
45
45
*/
46
- protected $ dates = [
47
- 'published_at ' ,
48
- 'deleted_at ' ,
46
+ protected $ casts = [
47
+ 'deleted_at ' => ' datetime ' ,
48
+ 'published_at ' => ' datetime ' ,
49
49
];
50
50
51
51
/**
Original file line number Diff line number Diff line change 17
17
18
18
namespace CloudCreativity \LaravelJsonApi \Tests \Integration ;
19
19
20
- use Carbon \Carbon ;
21
20
use CloudCreativity \LaravelJsonApi \Document \Error \Error ;
22
21
use CloudCreativity \LaravelJsonApi \Exceptions \DocumentRequiredException ;
23
22
use CloudCreativity \LaravelJsonApi \Exceptions \InvalidJsonException ;
24
23
use CloudCreativity \LaravelJsonApi \Exceptions \JsonApiException ;
25
24
use CloudCreativity \LaravelJsonApi \Exceptions \ResourceNotFoundException ;
26
25
use DummyApp \Post ;
27
26
use Illuminate \Contracts \Validation \Validator ;
28
- use Illuminate \Foundation \Http \Exceptions \MaintenanceModeException ;
29
27
use Illuminate \Http \Response ;
30
28
use Illuminate \Session \TokenMismatchException ;
31
29
use Illuminate \Support \Facades \Route ;
@@ -326,24 +324,6 @@ public function testJsonApiException2(): void
326
324
->assertExactJson ($ expected );
327
325
}
328
326
329
- public function testMaintenanceMode ()
330
- {
331
- $ ex = new MaintenanceModeException (Carbon::now ()->getTimestamp (), 60 , "We'll be back soon. " );
332
-
333
- $ this ->request ($ ex )
334
- ->assertStatus (503 )
335
- ->assertHeader ('Content-Type ' , 'application/vnd.api+json ' )
336
- ->assertExactJson ([
337
- 'errors ' => [
338
- [
339
- 'title ' => 'Service Unavailable ' ,
340
- 'detail ' => "We'll be back soon. " ,
341
- 'status ' => '503 ' ,
342
- ],
343
- ],
344
- ]);
345
- }
346
-
347
327
/**
348
328
* By default Laravel sends a 419 response for a TokenMismatchException.
349
329
*
Original file line number Diff line number Diff line change @@ -45,6 +45,8 @@ protected function setUp(): void
45
45
{
46
46
parent ::setUp ();
47
47
48
+ $ this ->markTestSkipped ('@TODO requires bugfix: https://github.com/laravel/framework/pull/45864 ' );
49
+
48
50
// required for tests to work in Laravel 5.7
49
51
if (method_exists ($ this , 'withoutMockingConsoleOutput ' )) {
50
52
$ this ->withoutMockingConsoleOutput ();
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ class Blog extends Model
34
34
/**
35
35
* @var array
36
36
*/
37
- protected $ dates = [
38
- 'published_at ' ,
37
+ protected $ casts = [
38
+ 'published_at ' => ' datetime ' ,
39
39
];
40
40
}
You can’t perform that action at this time.
0 commit comments