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:
Peter Fabian 2022-04-08 10:36:09 +02:00 committed by GitHub
commit 3fa1d070c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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' );