Skip to content

Commit a30dace

Browse files
authored
Fix return types on card date functions
They claim to return strings but actually return ints because the setters cast everything
1 parent a513ff3 commit a30dace

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Omnipay/Common/CreditCard.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ public function getBrand()
456456
/**
457457
* Get the card expiry month.
458458
*
459-
* @return string
459+
* @return int
460460
*/
461461
public function getExpiryMonth()
462462
{
@@ -477,7 +477,7 @@ public function setExpiryMonth($value)
477477
/**
478478
* Get the card expiry year.
479479
*
480-
* @return string
480+
* @return int
481481
*/
482482
public function getExpiryYear()
483483
{
@@ -531,7 +531,7 @@ public function setStartMonth($value)
531531
/**
532532
* Get the card start year.
533533
*
534-
* @return string
534+
* @return int
535535
*/
536536
public function getStartYear()
537537
{

0 commit comments

Comments
 (0)