Skip to content

Commit 516cddb

Browse files
authored
Remove deprecated properties (#1560)
1 parent 836f550 commit 516cddb

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

src/Passport.php

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -35,47 +35,20 @@ class Passport
3535
//
3636
];
3737

38-
/**
39-
* The date when access tokens expire.
40-
*
41-
* @var \DateTimeInterface|null
42-
*
43-
* @deprecated Will be removed in the next major Passport release.
44-
*/
45-
public static $tokensExpireAt;
46-
4738
/**
4839
* The interval when access tokens expire.
4940
*
5041
* @var \DateInterval|null
5142
*/
5243
public static $tokensExpireIn;
5344

54-
/**
55-
* The date when refresh tokens expire.
56-
*
57-
* @var \DateTimeInterface|null
58-
*
59-
* @deprecated Will be removed in the next major Passport release.
60-
*/
61-
public static $refreshTokensExpireAt;
62-
6345
/**
6446
* The date when refresh tokens expire.
6547
*
6648
* @var \DateInterval|null
6749
*/
6850
public static $refreshTokensExpireIn;
6951

70-
/**
71-
* The date when personal access tokens expire.
72-
*
73-
* @var \DateTimeInterface|null
74-
*
75-
* @deprecated Will be removed in the next major Passport release.
76-
*/
77-
public static $personalAccessTokensExpireAt;
78-
7952
/**
8053
* The date when personal access tokens expire.
8154
*
@@ -282,7 +255,6 @@ public static function tokensExpireIn(DateTimeInterface $date = null)
282255
return static::$tokensExpireIn ?? new DateInterval('P1Y');
283256
}
284257

285-
static::$tokensExpireAt = $date;
286258
static::$tokensExpireIn = Carbon::now()->diff($date);
287259

288260
return new static;
@@ -300,7 +272,6 @@ public static function refreshTokensExpireIn(DateTimeInterface $date = null)
300272
return static::$refreshTokensExpireIn ?? new DateInterval('P1Y');
301273
}
302274

303-
static::$refreshTokensExpireAt = $date;
304275
static::$refreshTokensExpireIn = Carbon::now()->diff($date);
305276

306277
return new static;
@@ -318,7 +289,6 @@ public static function personalAccessTokensExpireIn(DateTimeInterface $date = nu
318289
return static::$personalAccessTokensExpireIn ?? new DateInterval('P1Y');
319290
}
320291

321-
static::$personalAccessTokensExpireAt = $date;
322292
static::$personalAccessTokensExpireIn = Carbon::now()->diff($date);
323293

324294
return new static;

0 commit comments

Comments
 (0)