Commit 7508ab92 authored by catch's avatar catch
Browse files

task: #3639196 Bump PHPStan to version 2.3.6 and friends

By: godotislate
By: mondrake
(cherry picked from commit 92e5c3a3)
parent 7d084eaa
Loading
Loading
Loading
Loading
Loading
+1 −1
Changes for composer.json: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -35,7 +35,7 @@
        "phpspec/prophecy": "^1.23",
        "phpspec/prophecy-phpunit": "^2.4",
        "phpstan/extension-installer": "^1.4.3",
        "phpstan/phpstan": "^2.3.4",
        "phpstan/phpstan": "^2.3.6",
        "phpstan/phpstan-phpunit": "^2.1.1",
        "phpunit/phpunit": "^12.5.22",
        "spaze/phpstan-disallowed-calls": "^4.12.0",
+5 −5
Changes for composer.lock: 5 added lines, 5 removed lines.
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": "780aacba0b82238243f638a47bf28e94",
    "content-hash": "7b494f7d0cdee5f6e3ec1902a9b12e7c",
    "packages": [
        {
            "name": "asm89/stack-cors",
@@ -7723,11 +7723,11 @@
        },
        {
            "name": "phpstan/phpstan",
            "version": "2.3.5",
            "version": "2.3.6",
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/phpstan/phpstan/zipball/645a1bd6bead15fc1b8474137467961d0fa30a79",
                "reference": "645a1bd6bead15fc1b8474137467961d0fa30a79",
                "url": "https://api.github.com/repos/phpstan/phpstan/zipball/00cedebb76cc82c1592414fa4f616cefdccda16f",
                "reference": "00cedebb76cc82c1592414fa4f616cefdccda16f",
                "shasum": ""
            },
            "require": {
@@ -7783,7 +7783,7 @@
                    "type": "github"
                }
            ],
            "time": "2026-11-03T12:14:22+00:00"
            "time": "2026-11-15T19:58:26+00:00"
        },
        {
            "name": "phpstan/phpstan-deprecation-rules",
+1 −1
Changes for composer/Metapackage/DevDependencies/composer.json: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@
        "phpspec/prophecy": "^1.23",
        "phpspec/prophecy-phpunit": "^2.4",
        "phpstan/extension-installer": "^1.4.3",
        "phpstan/phpstan": "^2.3.4",
        "phpstan/phpstan": "^2.3.6",
        "phpstan/phpstan-phpunit": "^2.1.1",
        "phpunit/phpunit": "^12.5.22",
        "spaze/phpstan-disallowed-calls": "^4.12.0",
+11 −5
Changes for core/.phpstan-baseline.php: 11 added lines, 5 removed lines.
Original line number Diff line number Diff line
@@ -9154,7 +9154,7 @@
$ignoreErrors[] = [
	'message' => '#^Access to an undefined property Symfony\\\\Component\\\\Validator\\\\Constraint\\:\\:\\$type\\.$#',
	'identifier' => 'property.notFound',
	'count' => 2,
	'count' => 1,
	'path' => __DIR__ . '/lib/Drupal/Core/Extension/Plugin/Validation/Constraint/ExtensionExistsConstraintValidator.php',
];
$ignoreErrors[] = [
@@ -10309,6 +10309,12 @@
	'count' => 1,
	'path' => __DIR__ . '/lib/Drupal/Core/File/MimeType/MimeTypeMap.php',
];
$ignoreErrors[] = [
	'message' => '#^Property Drupal\\\\Core\\\\File\\\\MimeType\\\\MimeTypeMap\\:\\:\\$mapping \\(array\\{mimetypes\\: array\\{int, string\\}, extensions\\: array\\{string, int\\}\\}\\) does not accept array\\{mimetypes\\: array\\{\\}, extensions\\: array\\{string, int\\}\\}\\.$#',
	'identifier' => 'assign.propertyType',
	'count' => 1,
	'path' => __DIR__ . '/lib/Drupal/Core/File/MimeType/MimeTypeMap.php',
];
$ignoreErrors[] = [
	'message' => '#^Property Drupal\\\\Core\\\\File\\\\MimeType\\\\MimeTypeMap\\:\\:\\$mapping \\(array\\{mimetypes\\: array\\{int, string\\}, extensions\\: array\\{string, int\\}\\}\\) does not accept default value of type array\\{mimetypes\\: non\\-empty\\-array\\<int, literal\\-string&non\\-falsy\\-string\\>, extensions\\: non\\-empty\\-array\\<literal\\-string&non\\-falsy\\-string, int\\>\\}\\.$#',
	'identifier' => 'property.defaultValue',
@@ -13406,7 +13412,7 @@
	'path' => __DIR__ . '/lib/Drupal/Core/Routing/UrlMatcher.php',
];
$ignoreErrors[] = [
	'message' => '#^Parameter &\\$sanitized_keys by\\-ref type of method Drupal\\\\Core\\\\Security\\\\RequestSanitizer\\:\\:stripDangerousValues\\(\\) expects array\\<string\\>, array\\<int\\|string\\> given\\.$#',
	'message' => '#^Parameter &\\$sanitized_keys by\\-ref type of method Drupal\\\\Core\\\\Security\\\\RequestSanitizer\\:\\:stripDangerousValues\\(\\) expects array\\<string\\>, array\\<\\(int\\|string\\)\\> given\\.$#',
	'identifier' => 'parameterByRef.type',
	'count' => 1,
	'path' => __DIR__ . '/lib/Drupal/Core/Security/RequestSanitizer.php',
@@ -44974,7 +44980,7 @@
$ignoreErrors[] = [
	'message' => '#^Access to an undefined property Drupal\\\\Core\\\\Entity\\\\EntityInterface\\:\\:\\$weight\\.$#',
	'identifier' => 'property.notFound',
	'count' => 1,
	'count' => 2,
	'path' => __DIR__ . '/modules/user/src/Entity/Role.php',
];
$ignoreErrors[] = [
@@ -47565,7 +47571,7 @@
$ignoreErrors[] = [
	'message' => '#^Access to an undefined property Drupal\\\\views\\\\Plugin\\\\views\\\\ViewsHandlerInterface\\:\\:\\$operator\\.$#',
	'identifier' => 'property.notFound',
	'count' => 4,
	'count' => 3,
	'path' => __DIR__ . '/modules/views/src/ManyToOneHelper.php',
];
$ignoreErrors[] = [
@@ -50943,7 +50949,7 @@
$ignoreErrors[] = [
	'message' => '#^Variable \\$custom_format might not be defined\\.$#',
	'identifier' => 'variable.undefined',
	'count' => 9,
	'count' => 8,
	'path' => __DIR__ . '/modules/views/src/Plugin/views/field/Date.php',
];
$ignoreErrors[] = [
+1 −1
Changes for core/tests/PHPStan/composer.json: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@
    "description": "Tests Drupal core's PHPStan rules",
    "require-dev": {
        "phpunit/phpunit": "^12.5.14",
        "phpstan/phpstan": "^2.3.4"
        "phpstan/phpstan": "^2.3.6"
    },
    "license": "GPL-2.0-or-later",
    "autoload": {