File tree 4 files changed +19
-15
lines changed
4 files changed +19
-15
lines changed Original file line number Diff line number Diff line change @@ -16,17 +16,20 @@ jobs:
16
16
strategy :
17
17
fail-fast : true
18
18
matrix :
19
- php : ['8.0', 8.1, 8.2, 8.3]
20
- laravel : [9, 10, 11]
21
- exclude :
22
- - php : ' 8.0'
23
- laravel : 10
19
+ php : [8.1, 8.2, 8.3, 8.4]
20
+ laravel : [10, 11]
21
+ include :
22
+ - php : 8.2
23
+ laravel : 9
24
+ - php : 8.1
25
+ laravel : 9
24
26
- php : ' 8.0'
25
- laravel : 11
27
+ laravel : 9
28
+ exclude :
26
29
- php : 8.1
27
30
laravel : 11
28
- - php : 8.3
29
- laravel : 9
31
+ - php : 8.4
32
+ laravel : 10
30
33
31
34
name : PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}
32
35
45
48
46
49
- name : Install dependencies
47
50
run : |
48
- composer require "illuminate/contracts=^${{ matrix.laravel }}" --no-update
49
- composer update --prefer-dist --no-interaction --no-progress
51
+ composer update --prefer-dist --no-interaction --no-progress --with="illuminate/contracts=^${{ matrix.laravel }}"
50
52
51
53
- name : Execute tests
52
- run : vendor/bin/phpunit
54
+ run : vendor/bin/phpunit ${{ matrix.laravel >= 10 && '--display-deprecations' || '' }}
Original file line number Diff line number Diff line change 1
1
php :
2
2
preset : laravel
3
+ enabled :
4
+ - nullable_type_declarations
3
5
js : true
4
6
css : true
Original file line number Diff line number Diff line change @@ -291,7 +291,7 @@ public static function tokensCan(array $scopes)
291
291
* @param \DateTimeInterface|\DateInterval|null $date
292
292
* @return \DateInterval|static
293
293
*/
294
- public static function tokensExpireIn (DateTimeInterface |DateInterval $ date = null )
294
+ public static function tokensExpireIn (DateTimeInterface |DateInterval | null $ date = null )
295
295
{
296
296
if (is_null ($ date )) {
297
297
return static ::$ tokensExpireIn ?? new DateInterval ('P1Y ' );
@@ -310,7 +310,7 @@ public static function tokensExpireIn(DateTimeInterface|DateInterval $date = nul
310
310
* @param \DateTimeInterface|\DateInterval|null $date
311
311
* @return \DateInterval|static
312
312
*/
313
- public static function refreshTokensExpireIn (DateTimeInterface |DateInterval $ date = null )
313
+ public static function refreshTokensExpireIn (DateTimeInterface |DateInterval | null $ date = null )
314
314
{
315
315
if (is_null ($ date )) {
316
316
return static ::$ refreshTokensExpireIn ?? new DateInterval ('P1Y ' );
@@ -329,7 +329,7 @@ public static function refreshTokensExpireIn(DateTimeInterface|DateInterval $dat
329
329
* @param \DateTimeInterface|\DateInterval|null $date
330
330
* @return \DateInterval|static
331
331
*/
332
- public static function personalAccessTokensExpireIn (DateTimeInterface |DateInterval $ date = null )
332
+ public static function personalAccessTokensExpireIn (DateTimeInterface |DateInterval | null $ date = null )
333
333
{
334
334
if (is_null ($ date )) {
335
335
return static ::$ personalAccessTokensExpireIn ?? new DateInterval ('P1Y ' );
Original file line number Diff line number Diff line change @@ -292,7 +292,7 @@ public function __construct($idToken)
292
292
}
293
293
294
294
/**
295
- * @inheritdoc
295
+ * { @inheritdoc}
296
296
*/
297
297
protected function getExtraParams (\League \OAuth2 \Server \Entities \AccessTokenEntityInterface $ accessToken )
298
298
{
You can’t perform that action at this time.
0 commit comments