We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bd2d25 commit a32269eCopy full SHA for a32269e
stub-generators/wc-generate-stubs.sh
@@ -3,7 +3,7 @@
3
# Generate WooCommerce stubs.
4
#
5
6
-PLUGIN_VERSION="3.6.1"
+PLUGIN_VERSION="3.6.5"
7
8
Get_legacy_classes()
9
{
@@ -57,4 +57,6 @@ if [ ! -x vendor/bin/generate-stubs ]; then
57
fi
58
vendor/bin/generate-stubs --functions --classes --interfaces --traits --out=woocommerce-stubs-${PLUGIN_VERSION}.php ./woocommerce.php ./includes/
59
60
-echo "[WARNING] WooCommerce version 3.6.1 has known invalid PHPDoc blocks." 1>&2
+echo "Fixing invalid PHPDoc blocks in WooCommerce version 3.6.* ..."
61
+sed -e 's#@return array\|WC_Error#@return array|WP_Error#' -i woocommerce-stubs-${PLUGIN_VERSION}.php
62
+sed -e 's#@return string\| Message#@return string Message#' -i woocommerce-stubs-${PLUGIN_VERSION}.php
0 commit comments