Merge pull request #32530 from Saggre/fix/refund-reason-type
Fix phpdoc return type for WC_Order_Refund::get_reason
This commit is contained in:
commit
3fa1d070c1
|
@ -83,7 +83,7 @@ class WC_Order_Refund extends WC_Abstract_Order {
|
|||
*
|
||||
* @since 2.2
|
||||
* @param string $context What the value is for. Valid values are view and edit.
|
||||
* @return int|float
|
||||
* @return string
|
||||
*/
|
||||
public function get_reason( $context = 'view' ) {
|
||||
return $this->get_prop( 'reason', $context );
|
||||
|
@ -219,7 +219,7 @@ class WC_Order_Refund extends WC_Abstract_Order {
|
|||
* Get refund reason.
|
||||
*
|
||||
* @deprecated 3.0
|
||||
* @return int|float
|
||||
* @return string
|
||||
*/
|
||||
public function get_refund_reason() {
|
||||
wc_deprecated_function( 'get_refund_reason', '3.0', 'get_reason' );
|
||||
|
|
Loading…
Reference in New Issue