Skip to content

Commit

Permalink
PHP7.0 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkaOnLine committed Dec 20, 2018
1 parent 365ea79 commit c44d41a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Unit/CardExpirationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,9 @@ protected function yearValidator(string $year)
*
* @return mixed
*/
protected function monthValidator(string $month, ?int $year = null)
protected function monthValidator(string $month, $year = null)
{
$year = $year ? $year : Carbon::now()->addYear()->year;
$year = $year ?? Carbon::now()->addYear()->year;

return Validator::make(
[
Expand Down

0 comments on commit c44d41a

Please sign in to comment.