Update phpstan and phpstan-doctrine

[MAILPOET-2945]
This commit is contained in:
Jan Jakeš
2020-03-30 09:13:05 +02:00
committed by Veljko V
parent aac8619f8f
commit fb2e1c707e
5 changed files with 17 additions and 14 deletions

View File

@ -127,6 +127,7 @@ jobs:
- .
static_analysis:
executor: wpcli_php_mysql_latest
resource_class: medium
steps:
- attach_workspace:
at: /home/circleci/mailpoet

View File

@ -484,7 +484,7 @@ class RoboFile extends \Robo\Tasks {
$dir = __DIR__;
$task = implode(' ', [
'WP_ROOT="' . getenv('WP_ROOT') . '"',
'php -d memory_limit=2G',
'php -d memory_limit=-1',
"$dir/tasks/phpstan/vendor/bin/phpstan analyse ",
]);

View File

@ -1,7 +1,7 @@
{
"require": {
"phpstan/phpstan": "0.12.11",
"phpstan/phpstan-doctrine": "0.12.9",
"phpstan/phpstan": "0.12.18",
"phpstan/phpstan-doctrine": "0.12.10",
"phpstan/phpstan-phpunit": "0.12.6"
},
"autoload": {

View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "e7ba2a1806e53e0b1e80d3e94f1bf38d",
"content-hash": "a7171ad5ff5b9f526ac776942d3f5690",
"packages": [
{
"name": "nikic/php-parser",
@ -60,16 +60,16 @@
},
{
"name": "phpstan/phpstan",
"version": "0.12.11",
"version": "0.12.18",
"source": {
"type": "git",
"url": "https://github.com/phpstan/phpstan.git",
"reference": "ca5f2b7cf81c6d8fba74f9576970399c5817e03b"
"reference": "1ce27fe29c8660a27926127d350d53d80c4d4286"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/ca5f2b7cf81c6d8fba74f9576970399c5817e03b",
"reference": "ca5f2b7cf81c6d8fba74f9576970399c5817e03b",
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/1ce27fe29c8660a27926127d350d53d80c4d4286",
"reference": "1ce27fe29c8660a27926127d350d53d80c4d4286",
"shasum": ""
},
"require": {
@ -95,20 +95,20 @@
"MIT"
],
"description": "PHPStan - PHP Static Analysis Tool",
"time": "2020-02-16T14:00:29+00:00"
"time": "2020-03-22T16:51:47+00:00"
},
{
"name": "phpstan/phpstan-doctrine",
"version": "0.12.9",
"version": "0.12.10",
"source": {
"type": "git",
"url": "https://github.com/phpstan/phpstan-doctrine.git",
"reference": "af14feb2ed259f9eb16d3107e63d85ed516e30af"
"reference": "601f343b05875074454ca72702204592f8844f7d"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/phpstan/phpstan-doctrine/zipball/af14feb2ed259f9eb16d3107e63d85ed516e30af",
"reference": "af14feb2ed259f9eb16d3107e63d85ed516e30af",
"url": "https://api.github.com/repos/phpstan/phpstan-doctrine/zipball/601f343b05875074454ca72702204592f8844f7d",
"reference": "601f343b05875074454ca72702204592f8844f7d",
"shasum": ""
},
"require": {
@ -159,7 +159,7 @@
"MIT"
],
"description": "Doctrine extensions for PHPStan",
"time": "2020-01-10T12:31:37+00:00"
"time": "2020-03-13T13:03:08+00:00"
},
{
"name": "phpstan/phpstan-phpunit",

View File

@ -5,6 +5,8 @@ parameters:
inferPrivatePropertyTypeFromConstructor: true
autoload_files:
- ../../vendor/autoload.php
parallel:
processTimeout: 300.0
ignoreErrors:
- '#Function members_register_.+ not found#'
- '#Cannot assign offset .path. to array<string, int\|string>\|false.#' # bug https://github.com/phpstan/phpstan/issues/1791