diff --git a/composer.json b/composer.json index 0fa2329bbdb36ee10f905d2cbc72aebd1d0d9171..3b5e5bd714dfb52922bffbe12e9cb3bcf542b40a 100644 --- a/composer.json +++ b/composer.json @@ -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", diff --git a/composer.lock b/composer.lock index 216890bb1d34df64c1fcc0c2a170ce1a9ec27486..8ff7d661df7048ab59298d09437d9e74cced0d72 100644 --- a/composer.lock +++ b/composer.lock @@ -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": "ebb4f2cb2ec7e1defce66b73926a53bd", "packages": [ { "name": "asm89/stack-cors", @@ -5250,21 +5250,21 @@ }, { "name": "mglaman/phpstan-drupal", - "version": "1.1.16", + "version": "1.1.19", "source": { "type": "git", "url": "https://github.com/mglaman/phpstan-drupal.git", - "reference": "2c72ac675e5630e1f421adb1bf4e6546310d6b05" + "reference": "b3dac214fa90d8b5e79a426693cf78313d154f5e" }, "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/b3dac214fa90d8b5e79a426693cf78313d154f5e", + "reference": "b3dac214fa90d8b5e79a426693cf78313d154f5e", "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.19" }, "funding": [ { @@ -5353,7 +5350,7 @@ "type": "tidelift" } ], - "time": "2022-04-13T20:19:23+00:00" + "time": "2022-06-04T20:22:12+00:00" }, { "name": "mikey179/vfsstream", @@ -6002,16 +5999,16 @@ }, { "name": "phpstan/phpstan", - "version": "1.6.8", + "version": "1.7.10", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan.git", - "reference": "d76498c5531232cb8386ceb6004f7e013138d3ba" + "reference": "25e069474cf00215b0f64c60a26230908ef3eefa" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/d76498c5531232cb8386ceb6004f7e013138d3ba", - "reference": "d76498c5531232cb8386ceb6004f7e013138d3ba", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/25e069474cf00215b0f64c60a26230908ef3eefa", + "reference": "25e069474cf00215b0f64c60a26230908ef3eefa", "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.10" }, "funding": [ { @@ -6057,7 +6054,7 @@ "type": "tidelift" } ], - "time": "2022-05-10T06:54:21+00:00" + "time": "2022-06-03T14:12:23+00:00" }, { "name": "phpunit/php-code-coverage", diff --git a/composer/Metapackage/DevDependencies/composer.json b/composer/Metapackage/DevDependencies/composer.json index 5ba3cf9f99d0ea33024d6c3f74e9bd94bffcd863..d727a96df2487882077a544202c9e8152b1372d8 100644 --- a/composer/Metapackage/DevDependencies/composer.json +++ b/composer/Metapackage/DevDependencies/composer.json @@ -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", diff --git a/composer/Metapackage/PinnedDevDependencies/composer.json b/composer/Metapackage/PinnedDevDependencies/composer.json index 7d59a9a0c389a2da955c48c723dd54acba791efb..ef736fbceb582b73f89b762ddc0ec76c2656be0e 100644 --- a/composer/Metapackage/PinnedDevDependencies/composer.json +++ b/composer/Metapackage/PinnedDevDependencies/composer.json @@ -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.19", "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.10", "phpunit/php-code-coverage": "9.2.15", "phpunit/php-file-iterator": "3.0.6", "phpunit/php-invoker": "3.1.1", diff --git a/core/modules/comment/comment.module b/core/modules/comment/comment.module index 8b3e026ba72a4c06d5a994ebe7e8de8bfd519830..0fac1d23e267f77615f06324464f2843f05ff89c 100644 --- a/core/modules/comment/comment.module +++ b/core/modules/comment/comment.module @@ -37,7 +37,7 @@ * * @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(). diff --git a/core/modules/history/history.module b/core/modules/history/history.module index 02dd964fd7cd4c3904b0a248f6885626cdf1f5d2..95da9b651eba93c10605d4d86ba5d09461c455c6 100644 --- a/core/modules/history/history.module +++ b/core/modules/history/history.module @@ -21,7 +21,7 @@ * 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(). diff --git a/core/phpstan-baseline.neon b/core/phpstan-baseline.neon index 2dcef51f45d86b1930d993f4d751cc77a45776cb..09c6de4ca53ed373b8c0a21490e843f7089f4242 100644 --- a/core/phpstan-baseline.neon +++ b/core/phpstan-baseline.neon @@ -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