Fix return type documentation.

This commit is contained in:
Peter Fabian 2021-10-12 16:57:33 +02:00
parent 680869b718
commit 21dd50442d
1 changed files with 1 additions and 1 deletions

View File

@ -284,7 +284,7 @@ class WC_Cart extends WC_Legacy_Cart {
*
* @since 3.2.0
* @param string $context If the context is view, the value will be formatted for display. This keeps it compatible with pre-3.2 versions.
* @return float
* @return float|string
*/
public function get_total( $context = 'view' ) {
$total = apply_filters( 'woocommerce_cart_' . __FUNCTION__, $this->get_totals_var( 'total' ) );