Skip to content

Commit 68760a4

Browse files
committed
Improve typehints
1 parent f2d8005 commit 68760a4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Omnipay/Common/Currency.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function getDecimals()
6262
* Find a specific currency
6363
*
6464
* @param string $code The three letter currency code
65-
* @return mixed A Currency object, or null if no currency was found
65+
* @return static|null A Currency object, or null if no currency was found
6666
*/
6767
public static function find($code)
6868
{

src/Omnipay/Common/Message/AbstractRequest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ public function setCurrency($value)
392392
/**
393393
* Get the payment currency number.
394394
*
395-
* @return integer
395+
* @return string|null
396396
*/
397397
public function getCurrencyNumeric()
398398
{
@@ -423,6 +423,7 @@ private function getCurrencyDecimalFactor()
423423
/**
424424
* Format an amount for the payment currency.
425425
*
426+
* @param double $amount
426427
* @return string
427428
*/
428429
public function formatCurrency($amount)

0 commit comments

Comments
 (0)