File tree 4 files changed +29
-12
lines changed
4 files changed +29
-12
lines changed Original file line number Diff line number Diff line change 29
29
- name : " Set up PHP"
30
30
uses : " shivammathur/setup-php@v2"
31
31
with :
32
- php-version : " 8.1 "
32
+ php-version : " 8.2 "
33
33
tools : " parallel-lint"
34
34
35
35
- name : " Checkout code"
@@ -48,15 +48,21 @@ jobs:
48
48
- " syntax_errors"
49
49
runs-on : " ubuntu-latest"
50
50
strategy :
51
+ fail-fast : false
51
52
matrix :
52
53
php-version :
53
54
- " 8.0"
54
55
- " 8.1"
56
+ - " 8.2"
55
57
laravel-constrain :
56
58
- " 9.*"
59
+ - " 10.*"
57
60
dependencies :
58
61
- " lowest"
59
62
- " highest"
63
+ exclude :
64
+ - laravel-constrain : " 10.*"
65
+ php-version : " 8.0"
60
66
steps :
61
67
- name : " Set up PHP"
62
68
uses : " shivammathur/setup-php@v2"
68
74
- name : " Checkout code"
69
75
uses : " actions/checkout@v3"
70
76
77
+ - name : Set Minimum PHP 8.1 Version for ramsey/collection
78
+ run : composer require ramsey/collection:^1.2 --no-interaction --no-update
79
+ if : matrix.php-version >= 8.1
80
+
81
+ - name : Set Minimum PHP 8.2 Version for nesbot/carbon
82
+ run : composer require nesbot/carbon:^2.62.1 --no-interaction --no-update
83
+ if : matrix.php-version >= 8.2
84
+
85
+ - name : Set Minimum PHP 8.2 Version for orchestra/testbench
86
+ run : composer require --dev orchestra/testbench:^7.10 --no-interaction --no-update
87
+ if : matrix.php-version >= 8.2
88
+
71
89
- name : " Install dependencies"
72
90
uses : " ramsey/composer-install@v2"
73
91
with :
Original file line number Diff line number Diff line change 29
29
"laragear/meta" : " ^1.3" ,
30
30
"bacon/bacon-qr-code" : " ^2.0" ,
31
31
"paragonie/constant_time_encoding" : " ^2.5" ,
32
- "illuminate/config" : " 9.* " ,
33
- "illuminate/validation" : " 9.* " ,
34
- "illuminate/database" : " 9.* " ,
35
- "illuminate/support" : " 9.* " ,
36
- "illuminate/http" : " 9.* " ,
37
- "illuminate/auth" : " 9.* "
32
+ "illuminate/config" : " ^9.0|^10.0 " ,
33
+ "illuminate/validation" : " ^9.0|^10.0 " ,
34
+ "illuminate/database" : " ^9.0|^10.0 " ,
35
+ "illuminate/support" : " ^9.0|^10.0 " ,
36
+ "illuminate/http" : " ^9.0|^10.0 " ,
37
+ "illuminate/auth" : " ^9.0|^10.0 "
38
38
},
39
39
"require-dev" : {
40
40
"mockery/mockery" : " ^1.5" ,
41
- "orchestra/testbench" : " 7.* " ,
41
+ "orchestra/testbench" : " ^7.0|^8.0 " ,
42
42
"phpunit/phpunit" : " ^9.5"
43
43
},
44
44
"autoload" : {
Original file line number Diff line number Diff line change @@ -103,13 +103,13 @@ public function createTwoFactorAuth(): Contracts\TwoFactorTotp
103
103
* @return string
104
104
*/
105
105
protected function twoFactorLabel (): string
106
- {
106
+ {
107
107
// If the developer has set acustom label for the app, use that. When not,
108
108
// we will fallback to the issuer name. We will use that string to append
109
109
// it to the user email so the authenticator shows the TOTP origin name.
110
110
$ issuer = config ('two-factor.label ' ) ?? config ('two-factor.issuer ' );
111
-
112
- return $ issuer .': ' .$ this ->getAttribute ('email ' )) ;
111
+
112
+ return $ issuer .': ' .$ this ->getAttribute ('email ' );
113
113
}
114
114
115
115
/**
Original file line number Diff line number Diff line change @@ -76,7 +76,6 @@ protected function publishFiles(): void
76
76
$ this ->publishes ([static ::CONFIG => $ this ->app ->configPath ('two-factor.php ' )], 'config ' );
77
77
// @phpstan-ignore-next-line
78
78
$ this ->publishes ([static ::VIEWS => $ this ->app ->viewPath ('vendor/two-factor ' )], 'views ' );
79
- // @phpstan-ignore-next-line
80
79
$ this ->publishes ([static ::LANG => $ this ->app ->langPath ('vendor/two-factor ' )], 'translations ' );
81
80
}
82
81
}
You can’t perform that action at this time.
0 commit comments