Unverified Commit cc433fe1 authored by Alex Pott's avatar Alex Pott
Browse files

chore: #3570713 Bump PHPStan to 2.1.38

By: mondrake
By: andypost
parent 2b1cd68a
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -35,8 +35,8 @@
        "phpspec/prophecy": "^1.23",
        "phpspec/prophecy-phpunit": "^2",
        "phpstan/extension-installer": "^1.4.3",
        "phpstan/phpstan": "^1.12.27 || ^2.1.34",
        "phpstan/phpstan-phpunit": "^1.4.2 || ^2.0.11",
        "phpstan/phpstan": "^2.1.38",
        "phpstan/phpstan-phpunit": "^2.0.11",
        "phpunit/phpunit": "^11.5.42",
        "symfony/browser-kit": "^7.4",
        "symfony/css-selector": "^7.4",
+5 −5
Original line number Diff line number Diff line
@@ -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": "75a0329d1aef780bc9017da219ae4a6c",
    "content-hash": "9d64589e1b2d6fb7ce93dbfaca1dc248",
    "packages": [
        {
            "name": "asm89/stack-cors",
@@ -7495,11 +7495,11 @@
        },
        {
            "name": "phpstan/phpstan",
            "version": "2.1.34",
            "version": "2.1.38",
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/phpstan/phpstan/zipball/070ba754a949fcade788e16e8dc5a5935b7cf2ee",
                "reference": "070ba754a949fcade788e16e8dc5a5935b7cf2ee",
                "url": "https://api.github.com/repos/phpstan/phpstan/zipball/dfaf1f530e1663aa167bc3e52197adb221582629",
                "reference": "dfaf1f530e1663aa167bc3e52197adb221582629",
                "shasum": ""
            },
            "require": {
@@ -7544,7 +7544,7 @@
                    "type": "github"
                }
            ],
            "time": "2026-01-19T19:52:16+00:00"
            "time": "2026-01-30T17:12:46+00:00"
        },
        {
            "name": "phpstan/phpstan-deprecation-rules",
+2 −2
Original line number Diff line number Diff line
@@ -28,8 +28,8 @@
        "phpspec/prophecy": "^1.23",
        "phpspec/prophecy-phpunit": "^2",
        "phpstan/extension-installer": "^1.4.3",
        "phpstan/phpstan": "^1.12.27 || ^2.1.34",
        "phpstan/phpstan-phpunit": "^1.4.2 || ^2.0.11",
        "phpstan/phpstan": "^2.1.38",
        "phpstan/phpstan-phpunit": "^2.0.11",
        "phpunit/phpunit": "^11.5.42",
        "symfony/browser-kit": "^7.4",
        "symfony/css-selector": "^7.4",
+1 −1
Original line number Diff line number Diff line
@@ -51,7 +51,7 @@
        "phpspec/prophecy-phpunit": "v2.4.0",
        "phpstan/extension-installer": "1.4.3",
        "phpstan/phpdoc-parser": "2.3.0",
        "phpstan/phpstan": "2.1.34",
        "phpstan/phpstan": "2.1.38",
        "phpstan/phpstan-deprecation-rules": "2.0.3",
        "phpstan/phpstan-phpunit": "2.0.11",
        "phpunit/php-code-coverage": "11.0.11",
+53 −5
Original line number Diff line number Diff line
@@ -4237,6 +4237,12 @@
	'count' => 1,
	'path' => __DIR__ . '/lib/Drupal/Core/Entity/ContentEntityConfirmFormBase.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\Core\\\\Entity\\\\ContentEntityConfirmFormBase\\:\\:validateForm\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
	'count' => 1,
	'path' => __DIR__ . '/lib/Drupal/Core/Entity/ContentEntityConfirmFormBase.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\Core\\\\Entity\\\\ContentEntityDeleteForm\\:\\:addDependencyListsToForm\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
@@ -4345,6 +4351,12 @@
	'count' => 1,
	'path' => __DIR__ . '/lib/Drupal/Core/Entity/ContentEntityForm.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\Core\\\\Entity\\\\ContentEntityForm\\:\\:validateForm\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
	'count' => 1,
	'path' => __DIR__ . '/lib/Drupal/Core/Entity/ContentEntityForm.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\Core\\\\Entity\\\\ContentEntityNullStorage\\:\\:delete\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
@@ -5377,6 +5389,24 @@
	'count' => 1,
	'path' => __DIR__ . '/lib/Drupal/Core/Entity/Event/BundleConfigImportValidate.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\Core\\\\Entity\\\\FieldableEntityInterface\\:\\:get\\(\\) return type with generic interface Drupal\\\\Core\\\\Field\\\\FieldItemListInterface does not specify its types\\: T$#',
	'identifier' => 'missingType.generics',
	'count' => 1,
	'path' => __DIR__ . '/lib/Drupal/Core/Entity/FieldableEntityInterface.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\Core\\\\Entity\\\\FieldableEntityInterface\\:\\:getFields\\(\\) return type with generic interface Drupal\\\\Core\\\\Field\\\\FieldItemListInterface does not specify its types\\: T$#',
	'identifier' => 'missingType.generics',
	'count' => 1,
	'path' => __DIR__ . '/lib/Drupal/Core/Entity/FieldableEntityInterface.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\Core\\\\Entity\\\\FieldableEntityInterface\\:\\:getTranslatableFields\\(\\) return type with generic interface Drupal\\\\Core\\\\Field\\\\FieldItemListInterface does not specify its types\\: T$#',
	'identifier' => 'missingType.generics',
	'count' => 1,
	'path' => __DIR__ . '/lib/Drupal/Core/Entity/FieldableEntityInterface.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\Core\\\\Entity\\\\FieldableEntityInterface\\:\\:onChange\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
@@ -10573,6 +10603,12 @@
	'count' => 1,
	'path' => __DIR__ . '/lib/Drupal/Core/TypedData/Plugin/DataType/DurationIso8601.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\Core\\\\TypedData\\\\Plugin\\\\DataType\\\\ItemList\\:\\:getIterator\\(\\) return type with generic class ArrayIterator does not specify its types\\: TKey, TValue$#',
	'identifier' => 'missingType.generics',
	'count' => 1,
	'path' => __DIR__ . '/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\Core\\\\TypedData\\\\Plugin\\\\DataType\\\\ItemList\\:\\:onChange\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
@@ -13785,6 +13821,12 @@
	'count' => 2,
	'path' => __DIR__ . '/modules/contact/src/MessageForm.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\contact\\\\MessageForm\\:\\:validateForm\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
	'count' => 1,
	'path' => __DIR__ . '/modules/contact/src/MessageForm.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\contact\\\\MessageInterface\\:\\:setCopySender\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
@@ -17612,8 +17654,8 @@
	'path' => __DIR__ . '/modules/filter/src/FilterPluginCollection.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\filter\\\\FilterProcessResult\\:\\:createPlaceholder\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
	'message' => '#^\\#lazy_builder value \'string\' at key \'0\' is invalid\\.$#',
	'identifier' => 'renderCallback.invalidKeyValue',
	'count' => 1,
	'path' => __DIR__ . '/modules/filter/src/FilterProcessResult.php',
];
@@ -33935,6 +33977,12 @@
	'count' => 1,
	'path' => __DIR__ . '/modules/taxonomy/src/Plugin/views/argument_default/Tid.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\taxonomy\\\\Plugin\\\\views\\\\argument_default\\\\Tid\\:\\:getCacheTags\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
	'count' => 1,
	'path' => __DIR__ . '/modules/taxonomy/src/Plugin/views/argument_default/Tid.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\taxonomy\\\\Plugin\\\\views\\\\argument_default\\\\Tid\\:\\:submitOptionsForm\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
@@ -34110,9 +34158,9 @@
	'path' => __DIR__ . '/modules/taxonomy/src/TermForm.php',
];
$ignoreErrors[] = [
	'message' => '#^Method Drupal\\\\taxonomy\\\\TermForm\\:\\:validateForm\\(\\) should return Drupal\\\\Core\\\\Entity\\\\ContentEntityInterface but return statement is missing\\.$#',
	'identifier' => 'return.missing',
	'count' => 2,
	'message' => '#^Method Drupal\\\\taxonomy\\\\TermForm\\:\\:validateForm\\(\\) has no return type specified\\.$#',
	'identifier' => 'missingType.return',
	'count' => 1,
	'path' => __DIR__ . '/modules/taxonomy/src/TermForm.php',
];
$ignoreErrors[] = [
Loading