Skip to content

Commit c44d41a

Browse files
committed
PHP7.0 fix
1 parent 365ea79 commit c44d41a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Unit/CardExpirationTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,9 @@ protected function yearValidator(string $year)
162162
*
163163
* @return mixed
164164
*/
165-
protected function monthValidator(string $month, ?int $year = null)
165+
protected function monthValidator(string $month, $year = null)
166166
{
167-
$year = $year ? $year : Carbon::now()->addYear()->year;
167+
$year = $year ?? Carbon::now()->addYear()->year;
168168

169169
return Validator::make(
170170
[

0 commit comments

Comments
 (0)