Skip to content

Commit 2098fa4

Browse files
committed
Generate stubs for WooCommerce 10.1.2
1 parent b8e010d commit 2098fa4

File tree

2 files changed

+15
-50
lines changed

2 files changed

+15
-50
lines changed

source/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"ext-json": "*",
77
"ext-mbstring": "*",
88
"ext-openssl": "*",
9-
"woocommerce/woocommerce": "10.1.1"
9+
"woocommerce/woocommerce": "10.1.2"
1010
},
1111
"minimum-stability": "stable",
1212
"extra": {

woocommerce-stubs.php

Lines changed: 14 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -19101,16 +19101,12 @@ public function get_cart_for_session()
1910119101
}
1910219102
/**
1910319103
* Save the persistent cart when the cart is updated.
19104-
*
19105-
* @deprecated 11.0.0 Data persists in the session table for longer instead of syncing to meta.
1910619104
*/
1910719105
public function persistent_cart_update()
1910819106
{
1910919107
}
1911019108
/**
1911119109
* Delete the persistent cart permanently.
19112-
*
19113-
* @deprecated 11.0.0 Data persists in the session table for longer instead of syncing to meta.
1911419110
*/
1911519111
public function persistent_cart_destroy()
1911619112
{
@@ -19123,6 +19119,15 @@ public function persistent_cart_destroy()
1912319119
private function set_cart_cookies($set = \true)
1912419120
{
1912519121
}
19122+
/**
19123+
* Get the persistent cart from the database.
19124+
*
19125+
* @since 3.5.0
19126+
* @return array
19127+
*/
19128+
private function get_saved_cart()
19129+
{
19130+
}
1912619131
/**
1912719132
* Get a cart from an order, if user has permission.
1912819133
*
@@ -20251,9 +20256,10 @@ public function is_empty()
2025120256
* Empties the cart and optionally the persistent cart too.
2025220257
*
2025320258
* @since 9.7.0 Also clears shipping methods and packages since the items they are linked to are cleared.
20254-
* @param bool $deprecated Previously used to clear the persistent cart, but this is now handled by the session handler.
20259+
*
20260+
* @param bool $clear_persistent_cart Should the persistent cart be cleared too. Defaults to true.
2025520261
*/
20256-
public function empty_cart($deprecated = \true)
20262+
public function empty_cart($clear_persistent_cart = \true)
2025720263
{
2025820264
}
2025920265
/**
@@ -34845,10 +34851,8 @@ private function clone_session_data(string $clone_from_customer_id)
3484534851
}
3484634852
/**
3484734853
* Migrates a guest session to a user session.
34848-
*
34849-
* @param int $user_id The user ID to migrate to.
3485034854
*/
34851-
private function migrate_guest_session_to_user_session(int $user_id)
34855+
private function migrate_guest_session_to_user_session()
3485234856
{
3485334857
}
3485434858
/**
@@ -34859,18 +34863,6 @@ private function migrate_guest_session_to_user_session(int $user_id)
3485934863
private function restore_session_data()
3486034864
{
3486134865
}
34862-
/**
34863-
* Merges the cart data from the guest session to the user session.
34864-
*
34865-
* When merging, if the same item exists in both carts (same cart item ID), the guest cart data for that item is preserved.
34866-
*
34867-
* @param array $data The updated session data.
34868-
* @param array $user_session_data The user session data that will be overridden.
34869-
* @return array The updated session data.
34870-
*/
34871-
private function migrate_cart_data(array $data, array $user_session_data)
34872-
{
34873-
}
3487434866
/**
3487534867
* Checks if session cookie is expired, or belongs to a logged out user.
3487634868
*
@@ -34923,30 +34915,6 @@ private function verify_hash($message, $hash)
3492334915
public function set_customer_session_cookie($set)
3492434916
{
3492534917
}
34926-
/**
34927-
* Check if the cookie exists in the $_COOKIE superglobal.
34928-
*
34929-
* @return bool Whether the cookie exists.
34930-
*/
34931-
protected function cookie_exists()
34932-
{
34933-
}
34934-
/**
34935-
* Get the cookie value.
34936-
*
34937-
* @return string The cookie value.
34938-
*/
34939-
protected function get_cookie_value()
34940-
{
34941-
}
34942-
/**
34943-
* Set the cookie value if not empty. Unset the cookie if empty. Wrapper for wc_setcookie.
34944-
*
34945-
* @param string $cookie_value The cookie value to set.
34946-
*/
34947-
protected function set_cookie_value($cookie_value)
34948-
{
34949-
}
3495034918
/**
3495134919
* Should the session cookie be secure?
3495234920
*
@@ -34974,9 +34942,6 @@ private function is_session_expiring()
3497434942
}
3497534943
/**
3497634944
* Set session expiration.
34977-
*
34978-
* For logged in users sessions renew daily and expire in a week. This is to keep carts persistent for logged in users.
34979-
* For guests, sessions expire in 48 hours.
3498034945
*/
3498134946
public function set_session_expiration()
3498234947
{
@@ -38096,7 +38061,7 @@ final class WooCommerce
3809638061
*
3809738062
* @var string
3809838063
*/
38099-
public $version = '10.1.1';
38064+
public $version = '10.1.2';
3810038065
/**
3810138066
* WooCommerce Schema version.
3810238067
*

0 commit comments

Comments
 (0)