We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 365ea79 commit c44d41aCopy full SHA for c44d41a
tests/Unit/CardExpirationTest.php
@@ -162,9 +162,9 @@ protected function yearValidator(string $year)
162
*
163
* @return mixed
164
*/
165
- protected function monthValidator(string $month, ?int $year = null)
+ protected function monthValidator(string $month, $year = null)
166
{
167
- $year = $year ? $year : Carbon::now()->addYear()->year;
+ $year = $year ?? Carbon::now()->addYear()->year;
168
169
return Validator::make(
170
[
0 commit comments