Update PHPStan
[MAILPOET-3658]
This commit is contained in:
committed by
Veljko V
parent
8e0cbc9626
commit
7a3ffa388f
@ -77,7 +77,7 @@ class Newsletter implements CategoryInterface {
|
||||
]
|
||||
);
|
||||
WPFunctions::get()->removeAction('pre_get_posts', [$this, 'ensureConsistentQueryType'], $filterPriority);
|
||||
return (!empty($posts->posts[0])) ?
|
||||
return (!empty($posts->posts[0])) && ($posts->posts[0] instanceof \WP_Post) ?
|
||||
$posts->posts[0]->to_array() :
|
||||
false;
|
||||
}
|
||||
|
@ -229,7 +229,7 @@ class ImportExportRepository {
|
||||
->from($customFieldsTable)
|
||||
->execute();
|
||||
|
||||
$customFields = $customFields instanceof Statement ? $customFields->fetchAll() : [];
|
||||
$customFields = $customFields->fetchAll();
|
||||
|
||||
foreach ($customFields as $customField) {
|
||||
$customFieldId = "customFieldId{$customField['id']}";
|
||||
|
@ -279,7 +279,6 @@ class Functions {
|
||||
/**
|
||||
* @param string|array $args
|
||||
* @param string|array $deprecated
|
||||
* @return array|int|WP_Error
|
||||
*/
|
||||
public function getTerms($args = [], $deprecated = '') {
|
||||
return get_terms($args, $deprecated);
|
||||
|
@ -1,10 +1,10 @@
|
||||
{
|
||||
"require": {
|
||||
"php-stubs/woocommerce-stubs": "^4.8",
|
||||
"phpstan/phpstan": "0.12.83",
|
||||
"phpstan/phpstan-doctrine": "0.12.26",
|
||||
"phpstan/phpstan-phpunit": "0.12.17",
|
||||
"szepeviktor/phpstan-wordpress": "^0.7.1"
|
||||
"php-stubs/woocommerce-stubs": "^5.4",
|
||||
"phpstan/phpstan": "0.12.90",
|
||||
"phpstan/phpstan-doctrine": "0.12.39",
|
||||
"phpstan/phpstan-phpunit": "0.12.20",
|
||||
"szepeviktor/phpstan-wordpress": "^0.7.6"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
|
125
tasks/phpstan/composer.lock
generated
125
tasks/phpstan/composer.lock
generated
@ -4,20 +4,20 @@
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "b0b363f2808d7584a0e5e70750e57567",
|
||||
"content-hash": "778500e89c7d747c99cb2cd23793372f",
|
||||
"packages": [
|
||||
{
|
||||
"name": "php-stubs/woocommerce-stubs",
|
||||
"version": "v4.8.0",
|
||||
"version": "v5.4.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/php-stubs/woocommerce-stubs.git",
|
||||
"reference": "86523c0fc7838347605fdd4fbaa6b8a67c644f5c"
|
||||
"reference": "f0f6a806d92d8918d0dfccde5c7300ce182aec0d"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/php-stubs/woocommerce-stubs/zipball/86523c0fc7838347605fdd4fbaa6b8a67c644f5c",
|
||||
"reference": "86523c0fc7838347605fdd4fbaa6b8a67c644f5c",
|
||||
"url": "https://api.github.com/repos/php-stubs/woocommerce-stubs/zipball/f0f6a806d92d8918d0dfccde5c7300ce182aec0d",
|
||||
"reference": "f0f6a806d92d8918d0dfccde5c7300ce182aec0d",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@ -44,20 +44,24 @@
|
||||
"woocommerce",
|
||||
"wordpress"
|
||||
],
|
||||
"time": "2020-12-08T17:43:23+00:00"
|
||||
"support": {
|
||||
"issues": "https://github.com/php-stubs/woocommerce-stubs/issues",
|
||||
"source": "https://github.com/php-stubs/woocommerce-stubs/tree/v5.4.0"
|
||||
},
|
||||
"time": "2021-06-09T05:54:56+00:00"
|
||||
},
|
||||
{
|
||||
"name": "php-stubs/wordpress-stubs",
|
||||
"version": "v5.6.0",
|
||||
"version": "v5.7.2",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/php-stubs/wordpress-stubs.git",
|
||||
"reference": "ed446cce304cd49f13900274b3ed60d1b526297e"
|
||||
"reference": "beda02c58f1c4689d42c8dde6a84f7f0c9c93f42"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/php-stubs/wordpress-stubs/zipball/ed446cce304cd49f13900274b3ed60d1b526297e",
|
||||
"reference": "ed446cce304cd49f13900274b3ed60d1b526297e",
|
||||
"url": "https://api.github.com/repos/php-stubs/wordpress-stubs/zipball/beda02c58f1c4689d42c8dde6a84f7f0c9c93f42",
|
||||
"reference": "beda02c58f1c4689d42c8dde6a84f7f0c9c93f42",
|
||||
"shasum": ""
|
||||
},
|
||||
"replace": {
|
||||
@ -84,20 +88,24 @@
|
||||
"static analysis",
|
||||
"wordpress"
|
||||
],
|
||||
"time": "2020-12-09T00:38:16+00:00"
|
||||
"support": {
|
||||
"issues": "https://github.com/php-stubs/wordpress-stubs/issues",
|
||||
"source": "https://github.com/php-stubs/wordpress-stubs/tree/v5.7.2"
|
||||
},
|
||||
"time": "2021-05-13T07:54:04+00:00"
|
||||
},
|
||||
{
|
||||
"name": "phpstan/phpstan",
|
||||
"version": "0.12.83",
|
||||
"version": "0.12.90",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/phpstan/phpstan.git",
|
||||
"reference": "4a967cec6efb46b500dd6d768657336a3ffe699f"
|
||||
"reference": "f0e4b56630fc3d4eb5be86606d07212ac212ede4"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/4a967cec6efb46b500dd6d768657336a3ffe699f",
|
||||
"reference": "4a967cec6efb46b500dd6d768657336a3ffe699f",
|
||||
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/f0e4b56630fc3d4eb5be86606d07212ac212ede4",
|
||||
"reference": "f0e4b56630fc3d4eb5be86606d07212ac212ede4",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@ -128,13 +136,17 @@
|
||||
"description": "PHPStan - PHP Static Analysis Tool",
|
||||
"support": {
|
||||
"issues": "https://github.com/phpstan/phpstan/issues",
|
||||
"source": "https://github.com/phpstan/phpstan/tree/0.12.83"
|
||||
"source": "https://github.com/phpstan/phpstan/tree/0.12.90"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
"url": "https://github.com/ondrejmirtes",
|
||||
"type": "github"
|
||||
},
|
||||
{
|
||||
"url": "https://github.com/phpstan",
|
||||
"type": "github"
|
||||
},
|
||||
{
|
||||
"url": "https://www.patreon.com/phpstan",
|
||||
"type": "patreon"
|
||||
@ -144,25 +156,25 @@
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2021-04-03T15:35:45+00:00"
|
||||
"time": "2021-06-18T07:15:38+00:00"
|
||||
},
|
||||
{
|
||||
"name": "phpstan/phpstan-doctrine",
|
||||
"version": "0.12.26",
|
||||
"version": "0.12.39",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/phpstan/phpstan-doctrine.git",
|
||||
"reference": "716ea5f101636cd6cf36bb7298a4fe8b62c6606d"
|
||||
"reference": "c35261fe7fe54bd0338c7ab43e85db20b7dc483c"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/phpstan/phpstan-doctrine/zipball/716ea5f101636cd6cf36bb7298a4fe8b62c6606d",
|
||||
"reference": "716ea5f101636cd6cf36bb7298a4fe8b62c6606d",
|
||||
"url": "https://api.github.com/repos/phpstan/phpstan-doctrine/zipball/c35261fe7fe54bd0338c7ab43e85db20b7dc483c",
|
||||
"reference": "c35261fe7fe54bd0338c7ab43e85db20b7dc483c",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": "^7.1 || ^8.0",
|
||||
"phpstan/phpstan": "^0.12.56"
|
||||
"phpstan/phpstan": "^0.12.85"
|
||||
},
|
||||
"conflict": {
|
||||
"doctrine/collections": "<1.0",
|
||||
@ -173,16 +185,17 @@
|
||||
},
|
||||
"require-dev": {
|
||||
"doctrine/annotations": "^1.11.0",
|
||||
"doctrine/collections": "^1.0",
|
||||
"doctrine/collections": "^1.6",
|
||||
"doctrine/common": "^2.7 || ^3.0",
|
||||
"doctrine/dbal": "^2.13.1",
|
||||
"doctrine/mongodb-odm": "^1.3 || ^2.1",
|
||||
"doctrine/orm": "^2.5",
|
||||
"doctrine/orm": "^2.9.1",
|
||||
"doctrine/persistence": "^1.1 || ^2.0",
|
||||
"phing/phing": "^2.16.3",
|
||||
"nesbot/carbon": "^2.49",
|
||||
"php-parallel-lint/php-parallel-lint": "^1.2",
|
||||
"phpstan/phpstan-phpunit": "^0.12.16",
|
||||
"phpstan/phpstan-strict-rules": "^0.12.5",
|
||||
"phpunit/phpunit": "^7.5.20",
|
||||
"phpunit/phpunit": "^9.5",
|
||||
"ramsey/uuid-doctrine": "^1.5.0"
|
||||
},
|
||||
"type": "phpstan-extension",
|
||||
@ -207,34 +220,37 @@
|
||||
"MIT"
|
||||
],
|
||||
"description": "Doctrine extensions for PHPStan",
|
||||
"time": "2020-12-13T11:58:47+00:00"
|
||||
"support": {
|
||||
"issues": "https://github.com/phpstan/phpstan-doctrine/issues",
|
||||
"source": "https://github.com/phpstan/phpstan-doctrine/tree/0.12.39"
|
||||
},
|
||||
"time": "2021-06-10T12:42:07+00:00"
|
||||
},
|
||||
{
|
||||
"name": "phpstan/phpstan-phpunit",
|
||||
"version": "0.12.17",
|
||||
"version": "0.12.20",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/phpstan/phpstan-phpunit.git",
|
||||
"reference": "432575b41cf2d4f44e460234acaf56119ed97d36"
|
||||
"reference": "efc009981af383eb3303f0ca9868c29acad7ce74"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/phpstan/phpstan-phpunit/zipball/432575b41cf2d4f44e460234acaf56119ed97d36",
|
||||
"reference": "432575b41cf2d4f44e460234acaf56119ed97d36",
|
||||
"url": "https://api.github.com/repos/phpstan/phpstan-phpunit/zipball/efc009981af383eb3303f0ca9868c29acad7ce74",
|
||||
"reference": "efc009981af383eb3303f0ca9868c29acad7ce74",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": "^7.1 || ^8.0",
|
||||
"phpstan/phpstan": "^0.12.60"
|
||||
"phpstan/phpstan": "^0.12.86"
|
||||
},
|
||||
"conflict": {
|
||||
"phpunit/phpunit": "<7.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"phing/phing": "^2.16.3",
|
||||
"php-parallel-lint/php-parallel-lint": "^1.2",
|
||||
"phpstan/phpstan-strict-rules": "^0.12.6",
|
||||
"phpunit/phpunit": "^7.5.20"
|
||||
"phpunit/phpunit": "^9.5"
|
||||
},
|
||||
"type": "phpstan-extension",
|
||||
"extra": {
|
||||
@ -258,20 +274,24 @@
|
||||
"MIT"
|
||||
],
|
||||
"description": "PHPUnit extensions and rules for PHPStan",
|
||||
"time": "2020-12-13T12:12:51+00:00"
|
||||
"support": {
|
||||
"issues": "https://github.com/phpstan/phpstan-phpunit/issues",
|
||||
"source": "https://github.com/phpstan/phpstan-phpunit/tree/0.12.20"
|
||||
},
|
||||
"time": "2021-06-17T08:28:30+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/polyfill-php73",
|
||||
"version": "v1.20.0",
|
||||
"version": "v1.23.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/polyfill-php73.git",
|
||||
"reference": "8ff431c517be11c78c48a39a66d37431e26a6bed"
|
||||
"reference": "fba8933c384d6476ab14fb7b8526e5287ca7e010"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/8ff431c517be11c78c48a39a66d37431e26a6bed",
|
||||
"reference": "8ff431c517be11c78c48a39a66d37431e26a6bed",
|
||||
"url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/fba8933c384d6476ab14fb7b8526e5287ca7e010",
|
||||
"reference": "fba8933c384d6476ab14fb7b8526e5287ca7e010",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@ -280,7 +300,7 @@
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-main": "1.20-dev"
|
||||
"dev-main": "1.23-dev"
|
||||
},
|
||||
"thanks": {
|
||||
"name": "symfony/polyfill",
|
||||
@ -320,6 +340,9 @@
|
||||
"portable",
|
||||
"shim"
|
||||
],
|
||||
"support": {
|
||||
"source": "https://github.com/symfony/polyfill-php73/tree/v1.23.0"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
"url": "https://symfony.com/sponsor",
|
||||
@ -334,20 +357,20 @@
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2020-10-23T14:02:19+00:00"
|
||||
"time": "2021-02-19T12:13:01+00:00"
|
||||
},
|
||||
{
|
||||
"name": "szepeviktor/phpstan-wordpress",
|
||||
"version": "v0.7.1",
|
||||
"version": "v0.7.6",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/szepeviktor/phpstan-wordpress.git",
|
||||
"reference": "6195a6a19830d5ad187df0a3fb350e77cd571a5f"
|
||||
"reference": "3721127a9ddc62c8dc14fc8726cbfb3e47529bbe"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/szepeviktor/phpstan-wordpress/zipball/6195a6a19830d5ad187df0a3fb350e77cd571a5f",
|
||||
"reference": "6195a6a19830d5ad187df0a3fb350e77cd571a5f",
|
||||
"url": "https://api.github.com/repos/szepeviktor/phpstan-wordpress/zipball/3721127a9ddc62c8dc14fc8726cbfb3e47529bbe",
|
||||
"reference": "3721127a9ddc62c8dc14fc8726cbfb3e47529bbe",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@ -357,11 +380,11 @@
|
||||
"symfony/polyfill-php73": "^1.12.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"composer/composer": "^1.8.6",
|
||||
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
|
||||
"composer/composer": "^1.10.22",
|
||||
"dealerdirect/phpcodesniffer-composer-installer": "^0.7",
|
||||
"php-parallel-lint/php-parallel-lint": "^1.1",
|
||||
"phpstan/phpstan-strict-rules": "^0.12",
|
||||
"szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset": "^0.4.3"
|
||||
"szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset": "^0.6"
|
||||
},
|
||||
"type": "phpstan-extension",
|
||||
"extra": {
|
||||
@ -388,13 +411,17 @@
|
||||
"static analysis",
|
||||
"wordpress"
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/szepeviktor/phpstan-wordpress/issues",
|
||||
"source": "https://github.com/szepeviktor/phpstan-wordpress/tree/v0.7.6"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
"url": "https://www.paypal.me/szepeviktor",
|
||||
"type": "custom"
|
||||
}
|
||||
],
|
||||
"time": "2020-11-05T00:12:19+00:00"
|
||||
"time": "2021-06-19T15:51:50+00:00"
|
||||
}
|
||||
],
|
||||
"packages-dev": [],
|
||||
|
Reference in New Issue
Block a user