Issue #3282315 by mondrake, mallezie, alexpott: Update phpstan/phpstan and mglaman/phpstan-drupal to latest versions

merge-requests/2367/head
Alex Pott 2022-06-08 14:46:35 +01:00
parent fd92a54070
commit dea3a7f218
No known key found for this signature in database
GPG Key ID: BDA67E7EE836E5CE
7 changed files with 23 additions and 26 deletions

View File

@ -21,12 +21,12 @@
"composer/composer": "^2.3.5",
"drupal/coder": "^8.3.10",
"instaclick/php-webdriver": "^1.4.1",
"mglaman/phpstan-drupal": "^1.1.9",
"mglaman/phpstan-drupal": "^1.1.19",
"mikey179/vfsstream": "^1.6.8",
"phpunit/phpunit": "^9.5",
"phpspec/prophecy-phpunit": "^2",
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan": "^1.4.0",
"phpstan/phpstan": "^1.7.10",
"symfony/css-selector": "^6.0",
"symfony/phpunit-bridge": "^6.0",
"symfony/var-dumper": "^6.0",

31
composer.lock generated
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": "ff19361e7e9a5766f37cf73a99d3e5ba",
"content-hash": "55c2ddc9e5620ea486de1415d2485266",
"packages": [
{
"name": "asm89/stack-cors",
@ -5250,21 +5250,21 @@
},
{
"name": "mglaman/phpstan-drupal",
"version": "1.1.16",
"version": "1.1.20",
"source": {
"type": "git",
"url": "https://github.com/mglaman/phpstan-drupal.git",
"reference": "2c72ac675e5630e1f421adb1bf4e6546310d6b05"
"reference": "f9d8493835cc50ab9e3592486d129c2b355db335"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/mglaman/phpstan-drupal/zipball/2c72ac675e5630e1f421adb1bf4e6546310d6b05",
"reference": "2c72ac675e5630e1f421adb1bf4e6546310d6b05",
"url": "https://api.github.com/repos/mglaman/phpstan-drupal/zipball/f9d8493835cc50ab9e3592486d129c2b355db335",
"reference": "f9d8493835cc50ab9e3592486d129c2b355db335",
"shasum": ""
},
"require": {
"php": "^7.4 || ^8.0",
"phpstan/phpstan": "^1.0",
"phpstan/phpstan": "^1.7.0",
"symfony/finder": "~3.4.5 ||^4.2 || ^5.0 || ^6.0",
"symfony/yaml": "~3.4.5 || ^4.2|| ^5.0 || ^6.0",
"webflo/drupal-finder": "^1.2"
@ -5317,9 +5317,6 @@
}
},
"autoload": {
"files": [
"drupal-phpunit-hack.php"
],
"psr-4": {
"mglaman\\PHPStanDrupal\\": "src/"
}
@ -5337,7 +5334,7 @@
"description": "Drupal extension and rules for PHPStan",
"support": {
"issues": "https://github.com/mglaman/phpstan-drupal/issues",
"source": "https://github.com/mglaman/phpstan-drupal/tree/1.1.16"
"source": "https://github.com/mglaman/phpstan-drupal/tree/1.1.20"
},
"funding": [
{
@ -5353,7 +5350,7 @@
"type": "tidelift"
}
],
"time": "2022-04-13T20:19:23+00:00"
"time": "2022-06-07T14:32:27+00:00"
},
{
"name": "mikey179/vfsstream",
@ -6002,16 +5999,16 @@
},
{
"name": "phpstan/phpstan",
"version": "1.6.8",
"version": "1.7.11",
"source": {
"type": "git",
"url": "https://github.com/phpstan/phpstan.git",
"reference": "d76498c5531232cb8386ceb6004f7e013138d3ba"
"reference": "62fcadcde81b4037e42ad2489119d31c46f00191"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/d76498c5531232cb8386ceb6004f7e013138d3ba",
"reference": "d76498c5531232cb8386ceb6004f7e013138d3ba",
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/62fcadcde81b4037e42ad2489119d31c46f00191",
"reference": "62fcadcde81b4037e42ad2489119d31c46f00191",
"shasum": ""
},
"require": {
@ -6037,7 +6034,7 @@
"description": "PHPStan - PHP Static Analysis Tool",
"support": {
"issues": "https://github.com/phpstan/phpstan/issues",
"source": "https://github.com/phpstan/phpstan/tree/1.6.8"
"source": "https://github.com/phpstan/phpstan/tree/1.7.11"
},
"funding": [
{
@ -6057,7 +6054,7 @@
"type": "tidelift"
}
],
"time": "2022-05-10T06:54:21+00:00"
"time": "2022-06-07T08:47:03+00:00"
},
{
"name": "phpunit/php-code-coverage",

View File

@ -15,11 +15,11 @@
"easyrdf/easyrdf": "^1.0",
"instaclick/php-webdriver": "^1.4.1",
"justinrainbow/json-schema": "^5.2",
"mglaman/phpstan-drupal": "^1.1.9",
"mglaman/phpstan-drupal": "^1.1.19",
"mikey179/vfsstream": "^1.6.8",
"phpspec/prophecy-phpunit": "^2",
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan": "^1.4.0",
"phpstan/phpstan": "^1.7.10",
"phpunit/phpunit": "^9.5",
"symfony/browser-kit": "^6.0",
"symfony/css-selector": "^6.0",

View File

@ -23,7 +23,7 @@
"easyrdf/easyrdf": "1.1.1",
"instaclick/php-webdriver": "1.4.14",
"justinrainbow/json-schema": "5.2.12",
"mglaman/phpstan-drupal": "1.1.16",
"mglaman/phpstan-drupal": "1.1.20",
"mikey179/vfsstream": "v1.6.10",
"myclabs/deep-copy": "1.11.0",
"nikic/php-parser": "v4.13.2",
@ -36,7 +36,7 @@
"phpspec/prophecy-phpunit": "v2.0.1",
"phpstan/extension-installer": "1.1.0",
"phpstan/phpdoc-parser": "1.5.1",
"phpstan/phpstan": "1.6.8",
"phpstan/phpstan": "1.7.11",
"phpunit/php-code-coverage": "9.2.15",
"phpunit/php-file-iterator": "3.0.6",
"phpunit/php-invoker": "3.1.1",

View File

@ -37,7 +37,7 @@ use Drupal\user\UserInterface;
*
* @todo Remove when https://www.drupal.org/node/1029708 lands.
*/
define('COMMENT_NEW_LIMIT', REQUEST_TIME - 30 * 24 * 60 * 60);
define('COMMENT_NEW_LIMIT', REQUEST_TIME - 2592000);
/**
* Implements hook_help().

View File

@ -21,7 +21,7 @@ use Drupal\user\UserInterface;
* Entities changed within this time may be marked as new, updated, or read,
* depending on their state for the current user. Defaults to 30 days ago.
*/
define('HISTORY_READ_LIMIT', REQUEST_TIME - 30 * 24 * 60 * 60);
define('HISTORY_READ_LIMIT', REQUEST_TIME - 2592000);
/**
* Implements hook_help().

View File

@ -1671,7 +1671,7 @@ parameters:
path: modules/language/tests/src/Unit/LanguageNegotiationUrlTest.php
-
message: "#^Method Drupal\\\\layout_builder_test\\\\Plugin\\\\SectionStorage\\\\TestStateBasedSectionStorage\\:\\:access\\(\\) should return bool\\|Drupal\\\\Core\\\\Access\\\\AccessResultInterface but return statement is missing\\.$#"
message: "#^Method Drupal\\\\layout_builder_test\\\\Plugin\\\\SectionStorage\\\\TestStateBasedSectionStorage\\:\\:access\\(\\) should return \\(\\$return_as_object is true \\? Drupal\\\\Core\\\\Access\\\\AccessResultInterface \\: bool\\) but return statement is missing\\.$#"
count: 1
path: modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/SectionStorage/TestStateBasedSectionStorage.php