Update php-stubs/woocommerce-stubs to the latest version

[MAILPOET-4774]
This commit is contained in:
Rostislav Wolny
2022-11-03 13:27:03 +01:00
committed by alex-mailpoet
parent a990250072
commit 9ca1cabb67
3 changed files with 36 additions and 43 deletions

View File

@@ -1,28 +1,27 @@
{
"require": {
"php-stubs/woocommerce-stubs": "^6.0",
"phpstan/phpstan": "1.4.10",
"phpstan/phpstan-doctrine": "1.2.11",
"phpstan/phpstan-phpunit": "1.0.0",
"szepeviktor/phpstan-wordpress": "1.0.3"
},
"autoload": {
"psr-4": {
"MailPoet\\PHPStan\\Extensions\\": "extensions"
}
},
"config": {
"sort-packages": true
},
"scripts": {
"post-install-cmd": [
"php prefix-phpstan-doctrine.php",
"php fix-WPStubs-for-PHP-8_1.php"
],
"post-update-cmd": [
"php prefix-phpstan-doctrine.php",
"php fix-WPStubs-for-PHP-8_1.php"
]
"require": {
"php-stubs/woocommerce-stubs": "^7.0",
"phpstan/phpstan": "1.4.10",
"phpstan/phpstan-doctrine": "1.2.11",
"phpstan/phpstan-phpunit": "1.0.0",
"szepeviktor/phpstan-wordpress": "1.0.3"
},
"autoload": {
"psr-4": {
"MailPoet\\PHPStan\\Extensions\\": "extensions"
}
},
"config": {
"sort-packages": true
},
"scripts": {
"post-install-cmd": [
"php prefix-phpstan-doctrine.php",
"php fix-WPStubs-for-PHP-8_1.php"
],
"post-update-cmd": [
"php prefix-phpstan-doctrine.php",
"php fix-WPStubs-for-PHP-8_1.php"
]
}
}

View File

@@ -4,28 +4,28 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "ff830b6e9cbe937699c148d8d53b907b",
"content-hash": "f4ffe233f34ce17c0d21212db84abf08",
"packages": [
{
"name": "php-stubs/woocommerce-stubs",
"version": "v6.0.0",
"version": "v7.0.0",
"source": {
"type": "git",
"url": "https://github.com/php-stubs/woocommerce-stubs.git",
"reference": "65e6be8a1b74b7be5d0d5591262342ff116f93db"
"reference": "2bbe0ba67081cfad17d33ac503883fdc6e68a386"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/php-stubs/woocommerce-stubs/zipball/65e6be8a1b74b7be5d0d5591262342ff116f93db",
"reference": "65e6be8a1b74b7be5d0d5591262342ff116f93db",
"url": "https://api.github.com/repos/php-stubs/woocommerce-stubs/zipball/2bbe0ba67081cfad17d33ac503883fdc6e68a386",
"reference": "2bbe0ba67081cfad17d33ac503883fdc6e68a386",
"shasum": ""
},
"require": {
"php-stubs/wordpress-stubs": "^5.3.0"
"php-stubs/wordpress-stubs": "^5.3 || ^6.0"
},
"require-dev": {
"giacocorsiglia/stubs-generator": "^0.5.0",
"php": "~7.1"
"php": "~7.1 || ~8.0",
"php-stubs/generator": "^0.8.0"
},
"suggest": {
"symfony/polyfill-php73": "Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions",
@@ -46,9 +46,9 @@
],
"support": {
"issues": "https://github.com/php-stubs/woocommerce-stubs/issues",
"source": "https://github.com/php-stubs/woocommerce-stubs/tree/v6.0.0"
"source": "https://github.com/php-stubs/woocommerce-stubs/tree/v7.0.0"
},
"time": "2022-01-04T22:00:24+00:00"
"time": "2022-10-12T08:25:57+00:00"
},
{
"name": "php-stubs/wordpress-stubs",
@@ -435,5 +435,5 @@
"prefer-lowest": false,
"platform": [],
"platform-dev": [],
"plugin-api-version": "2.2.0"
"plugin-api-version": "2.3.0"
}

View File

@@ -42,8 +42,6 @@ parameters:
- '/Parameter #1 \$cssOrXPath of method AcceptanceTester::moveMouseOver\(\) expects string\|null, array<string, string> given./'
- '/Function expect invoked with 1 parameter, 0 required\./'
- '/Call to method getName\(\) on an unknown class _generated\\([a-zA-Z])*Cookie/' # codeception generate incorrect return type in ../../tests/_support/_generated
- '/Call to static method container\(\) on an unknown class/'
- '/Class Automattic\\WooCommerce\\StoreApi\\Schemas\\ExtendSchema not found./'
-
message: "#^Cannot cast string|void to string\\.$#"
count: 5
@@ -52,10 +50,6 @@ parameters:
message: "#^Cannot cast string|void to string\\.$#"
count: 5
path: ../../lib/Automation/Engine/Storage/WorkflowStorage.php
-
message: '/^Call to static method custom_orders_table_usage_is_enabled\(\) on an unknown class Automattic\\WooCommerce\\Utilities\\OrderUtil\.$/'
count: 1
path: ../../lib/WooCommerce/Helper.php
-
message: '/^Call to static method get_orders_table_name\(\) on an unknown class Automattic\\WooCommerce\\Internal\\DataStores\\Orders\\OrdersTableDataStore\.$/'
count: 1
@@ -66,7 +60,7 @@ parameters:
path: ../../lib/WooCommerce/Helper.php
-
message: '/^Call to function method_exists\(\) with/'
count: 3
count: 2
path: ../../lib/WooCommerce/Helper.php
- # WooCommerce stubs contains stubs for older ActionScheduler version
message: '/^Function as_schedule_recurring_action invoked with 6 parameters, 3-5 required.$/'