diff --git a/composer.json b/composer.json index e005a1429bb07304928c51e1ecc48ac395f7d348..b56c8cec3e2aa6d050746a103528623e3ccf4538 100644 --- a/composer.json +++ b/composer.json @@ -31,7 +31,7 @@ "php-http/guzzle7-adapter": "^1.0", "phpspec/prophecy-phpunit": "^2", "phpstan/extension-installer": "^1.1", - "phpstan/phpstan": "^1.10.62", + "phpstan/phpstan": "^1.11.0", "phpstan/phpstan-phpunit": "^1.3.16", "phpunit/phpunit": "^10.5.19", "symfony/browser-kit": "^7.1@beta", diff --git a/composer.lock b/composer.lock index b36fe7aafc1fe61e70175c2b9e277c61bba83efa..2271aabbb462a36698275c408cc5b2f9ef64b798 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": "b0fa0790c91445fccac3cf9a4dff8105", + "content-hash": "e94e87d7a9d12cbc3cb32003ef541cf6", "packages": [ { "name": "asm89/stack-cors", @@ -1659,20 +1659,20 @@ }, { "name": "psr/http-factory", - "version": "1.0.2", + "version": "1.1.0", "source": { "type": "git", "url": "https://github.com/php-fig/http-factory.git", - "reference": "e616d01114759c4c489f93b099585439f795fe35" + "reference": "2b4765fddfe3b508ac62f829e852b1501d3f6e8a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/http-factory/zipball/e616d01114759c4c489f93b099585439f795fe35", - "reference": "e616d01114759c4c489f93b099585439f795fe35", + "url": "https://api.github.com/repos/php-fig/http-factory/zipball/2b4765fddfe3b508ac62f829e852b1501d3f6e8a", + "reference": "2b4765fddfe3b508ac62f829e852b1501d3f6e8a", "shasum": "" }, "require": { - "php": ">=7.0.0", + "php": ">=7.1", "psr/http-message": "^1.0 || ^2.0" }, "type": "library", @@ -1696,7 +1696,7 @@ "homepage": "https://www.php-fig.org/" } ], - "description": "Common interfaces for PSR-7 HTTP message factories", + "description": "PSR-17: Common interfaces for PSR-7 HTTP message factories", "keywords": [ "factory", "http", @@ -1708,9 +1708,9 @@ "response" ], "support": { - "source": "https://github.com/php-fig/http-factory/tree/1.0.2" + "source": "https://github.com/php-fig/http-factory" }, - "time": "2023-04-10T20:10:41+00:00" + "time": "2024-04-15T12:06:14+00:00" }, { "name": "psr/http-message", @@ -4260,16 +4260,16 @@ }, { "name": "twig/twig", - "version": "v3.9.3", + "version": "v3.10.2", "source": { "type": "git", "url": "https://github.com/twigphp/Twig.git", - "reference": "a842d75fed59cdbcbd3a3ad7fb9eb768fc350d58" + "reference": "7aaed0b8311a557cc8c4047a71fd03153a00e755" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/twigphp/Twig/zipball/a842d75fed59cdbcbd3a3ad7fb9eb768fc350d58", - "reference": "a842d75fed59cdbcbd3a3ad7fb9eb768fc350d58", + "url": "https://api.github.com/repos/twigphp/Twig/zipball/7aaed0b8311a557cc8c4047a71fd03153a00e755", + "reference": "7aaed0b8311a557cc8c4047a71fd03153a00e755", "shasum": "" }, "require": { @@ -4323,7 +4323,7 @@ ], "support": { "issues": "https://github.com/twigphp/Twig/issues", - "source": "https://github.com/twigphp/Twig/tree/v3.9.3" + "source": "https://github.com/twigphp/Twig/tree/v3.10.2" }, "funding": [ { @@ -4335,7 +4335,7 @@ "type": "tidelift" } ], - "time": "2024-04-18T11:59:33+00:00" + "time": "2024-05-14T06:04:16+00:00" } ], "packages-dev": [ @@ -4703,16 +4703,16 @@ }, { "name": "composer/composer", - "version": "2.7.2", + "version": "2.7.6", "source": { "type": "git", "url": "https://github.com/composer/composer.git", - "reference": "b826edb791571ab1eaf281eb1bd6e181a1192adc" + "reference": "fabd995783b633829fd4280e272284b39b6ae702" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/composer/zipball/b826edb791571ab1eaf281eb1bd6e181a1192adc", - "reference": "b826edb791571ab1eaf281eb1bd6e181a1192adc", + "url": "https://api.github.com/repos/composer/composer/zipball/fabd995783b633829fd4280e272284b39b6ae702", + "reference": "fabd995783b633829fd4280e272284b39b6ae702", "shasum": "" }, "require": { @@ -4797,7 +4797,7 @@ "irc": "ircs://irc.libera.chat:6697/composer", "issues": "https://github.com/composer/composer/issues", "security": "https://github.com/composer/composer/security/policy", - "source": "https://github.com/composer/composer/tree/2.7.2" + "source": "https://github.com/composer/composer/tree/2.7.6" }, "funding": [ { @@ -4813,7 +4813,7 @@ "type": "tidelift" } ], - "time": "2024-03-11T16:12:18+00:00" + "time": "2024-05-04T21:03:15+00:00" }, { "name": "composer/metadata-minifier", @@ -5037,16 +5037,16 @@ }, { "name": "composer/xdebug-handler", - "version": "3.0.4", + "version": "3.0.5", "source": { "type": "git", "url": "https://github.com/composer/xdebug-handler.git", - "reference": "4f988f8fdf580d53bdb2d1278fe93d1ed5462255" + "reference": "6c1925561632e83d60a44492e0b344cf48ab85ef" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/4f988f8fdf580d53bdb2d1278fe93d1ed5462255", - "reference": "4f988f8fdf580d53bdb2d1278fe93d1ed5462255", + "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/6c1925561632e83d60a44492e0b344cf48ab85ef", + "reference": "6c1925561632e83d60a44492e0b344cf48ab85ef", "shasum": "" }, "require": { @@ -5083,7 +5083,7 @@ "support": { "irc": "ircs://irc.libera.chat:6697/composer", "issues": "https://github.com/composer/xdebug-handler/issues", - "source": "https://github.com/composer/xdebug-handler/tree/3.0.4" + "source": "https://github.com/composer/xdebug-handler/tree/3.0.5" }, "funding": [ { @@ -5099,7 +5099,7 @@ "type": "tidelift" } ], - "time": "2024-03-26T18:29:49+00:00" + "time": "2024-05-06T16:37:16+00:00" }, { "name": "dealerdirect/phpcodesniffer-composer-installer", @@ -5534,16 +5534,16 @@ }, { "name": "mglaman/phpstan-drupal", - "version": "1.2.10", + "version": "1.2.11", "source": { "type": "git", "url": "https://github.com/mglaman/phpstan-drupal.git", - "reference": "cdafb3285beeb5fadf25a43e18fee6f80bb14575" + "reference": "e624a4b64de5b91a0c56852635af2115e9a6e08c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/mglaman/phpstan-drupal/zipball/cdafb3285beeb5fadf25a43e18fee6f80bb14575", - "reference": "cdafb3285beeb5fadf25a43e18fee6f80bb14575", + "url": "https://api.github.com/repos/mglaman/phpstan-drupal/zipball/e624a4b64de5b91a0c56852635af2115e9a6e08c", + "reference": "e624a4b64de5b91a0c56852635af2115e9a6e08c", "shasum": "" }, "require": { @@ -5558,10 +5558,10 @@ "behat/mink": "^1.8", "composer/installers": "^1.9", "drupal/core-recommended": "^10", - "drush/drush": "^10.0 || ^11 || ^12", + "drush/drush": "^10.0 || ^11 || ^12 || ^13@beta", "phpstan/extension-installer": "^1.1", "phpstan/phpstan-strict-rules": "^1.0", - "phpunit/phpunit": "^8.5 || ^9", + "phpunit/phpunit": "^8.5 || ^9 || ^10 || ^11", "slevomat/coding-standard": "^7.1", "squizlabs/php_codesniffer": "^3.3", "symfony/phpunit-bridge": "^4.4 || ^5.4 || ^6.0 || ^7.0" @@ -5618,7 +5618,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.2.10" + "source": "https://github.com/mglaman/phpstan-drupal/tree/1.2.11" }, "funding": [ { @@ -5634,7 +5634,7 @@ "type": "tidelift" } ], - "time": "2024-04-02T17:27:29+00:00" + "time": "2024-05-10T17:22:10+00:00" }, { "name": "micheh/phpcs-gitlab", @@ -6196,20 +6196,20 @@ }, { "name": "open-telemetry/sem-conv", - "version": "1.24.0", + "version": "1.25.0", "source": { "type": "git", "url": "https://github.com/opentelemetry-php/sem-conv.git", - "reference": "d03e6501d21c04cd1b1e66e4cbcc7c2dd2e2cfa3" + "reference": "23f457ba390847647a17068e0095d9ffe9a4824c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/opentelemetry-php/sem-conv/zipball/d03e6501d21c04cd1b1e66e4cbcc7c2dd2e2cfa3", - "reference": "d03e6501d21c04cd1b1e66e4cbcc7c2dd2e2cfa3", + "url": "https://api.github.com/repos/opentelemetry-php/sem-conv/zipball/23f457ba390847647a17068e0095d9ffe9a4824c", + "reference": "23f457ba390847647a17068e0095d9ffe9a4824c", "shasum": "" }, "require": { - "php": "^7.4 || ^8.0" + "php": "^8.1" }, "type": "library", "extra": { @@ -6249,7 +6249,7 @@ "issues": "https://github.com/open-telemetry/opentelemetry-php/issues", "source": "https://github.com/open-telemetry/opentelemetry-php" }, - "time": "2024-01-23T21:47:17+00:00" + "time": "2024-04-09T23:31:35+00:00" }, { "name": "phar-io/manifest", @@ -6961,16 +6961,16 @@ }, { "name": "phpstan/phpdoc-parser", - "version": "1.28.0", + "version": "1.29.0", "source": { "type": "git", "url": "https://github.com/phpstan/phpdoc-parser.git", - "reference": "cd06d6b1a1b3c75b0b83f97577869fd85a3cd4fb" + "reference": "536889f2b340489d328f5ffb7b02bb6b183ddedc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/cd06d6b1a1b3c75b0b83f97577869fd85a3cd4fb", - "reference": "cd06d6b1a1b3c75b0b83f97577869fd85a3cd4fb", + "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/536889f2b340489d328f5ffb7b02bb6b183ddedc", + "reference": "536889f2b340489d328f5ffb7b02bb6b183ddedc", "shasum": "" }, "require": { @@ -7002,22 +7002,22 @@ "description": "PHPDoc parser with support for nullable, intersection and generic types", "support": { "issues": "https://github.com/phpstan/phpdoc-parser/issues", - "source": "https://github.com/phpstan/phpdoc-parser/tree/1.28.0" + "source": "https://github.com/phpstan/phpdoc-parser/tree/1.29.0" }, - "time": "2024-04-03T18:51:33+00:00" + "time": "2024-05-06T12:04:23+00:00" }, { "name": "phpstan/phpstan", - "version": "1.10.66", + "version": "1.11.1", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan.git", - "reference": "94779c987e4ebd620025d9e5fdd23323903950bd" + "reference": "e524358f930e41a2b4cca1320e3b04fc26b39e0b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/94779c987e4ebd620025d9e5fdd23323903950bd", - "reference": "94779c987e4ebd620025d9e5fdd23323903950bd", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/e524358f930e41a2b4cca1320e3b04fc26b39e0b", + "reference": "e524358f930e41a2b4cca1320e3b04fc26b39e0b", "shasum": "" }, "require": { @@ -7060,35 +7060,30 @@ { "url": "https://github.com/phpstan", "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/phpstan/phpstan", - "type": "tidelift" } ], - "time": "2024-03-28T16:17:31+00:00" + "time": "2024-05-15T08:00:59+00:00" }, { "name": "phpstan/phpstan-deprecation-rules", - "version": "1.1.4", + "version": "1.2.0", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan-deprecation-rules.git", - "reference": "089d8a8258ed0aeefdc7b68b6c3d25572ebfdbaa" + "reference": "fa8cce7720fa782899a0aa97b6a41225d1bb7b26" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan-deprecation-rules/zipball/089d8a8258ed0aeefdc7b68b6c3d25572ebfdbaa", - "reference": "089d8a8258ed0aeefdc7b68b6c3d25572ebfdbaa", + "url": "https://api.github.com/repos/phpstan/phpstan-deprecation-rules/zipball/fa8cce7720fa782899a0aa97b6a41225d1bb7b26", + "reference": "fa8cce7720fa782899a0aa97b6a41225d1bb7b26", "shasum": "" }, "require": { "php": "^7.2 || ^8.0", - "phpstan/phpstan": "^1.10.3" + "phpstan/phpstan": "^1.11" }, "require-dev": { "php-parallel-lint/php-parallel-lint": "^1.2", - "phpstan/phpstan-php-parser": "^1.1", "phpstan/phpstan-phpunit": "^1.0", "phpunit/phpunit": "^9.5" }, @@ -7112,27 +7107,27 @@ "description": "PHPStan rules for detecting usage of deprecated classes, methods, properties, constants and traits.", "support": { "issues": "https://github.com/phpstan/phpstan-deprecation-rules/issues", - "source": "https://github.com/phpstan/phpstan-deprecation-rules/tree/1.1.4" + "source": "https://github.com/phpstan/phpstan-deprecation-rules/tree/1.2.0" }, - "time": "2023-08-05T09:02:04+00:00" + "time": "2024-04-20T06:39:48+00:00" }, { "name": "phpstan/phpstan-phpunit", - "version": "1.3.16", + "version": "1.4.0", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan-phpunit.git", - "reference": "d5242a59d035e46774f2e634b374bc39ff62cb95" + "reference": "f3ea021866f4263f07ca3636bf22c64be9610c11" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan-phpunit/zipball/d5242a59d035e46774f2e634b374bc39ff62cb95", - "reference": "d5242a59d035e46774f2e634b374bc39ff62cb95", + "url": "https://api.github.com/repos/phpstan/phpstan-phpunit/zipball/f3ea021866f4263f07ca3636bf22c64be9610c11", + "reference": "f3ea021866f4263f07ca3636bf22c64be9610c11", "shasum": "" }, "require": { "php": "^7.2 || ^8.0", - "phpstan/phpstan": "^1.10" + "phpstan/phpstan": "^1.11" }, "conflict": { "phpunit/phpunit": "<7.0" @@ -7164,9 +7159,9 @@ "description": "PHPUnit extensions and rules for PHPStan", "support": { "issues": "https://github.com/phpstan/phpstan-phpunit/issues", - "source": "https://github.com/phpstan/phpstan-phpunit/tree/1.3.16" + "source": "https://github.com/phpstan/phpstan-phpunit/tree/1.4.0" }, - "time": "2024-02-23T09:51:20+00:00" + "time": "2024-04-20T06:39:00+00:00" }, { "name": "phpunit/php-code-coverage", @@ -8687,16 +8682,16 @@ }, { "name": "sirbrillig/phpcs-variable-analysis", - "version": "v2.11.17", + "version": "v2.11.18", "source": { "type": "git", "url": "https://github.com/sirbrillig/phpcs-variable-analysis.git", - "reference": "3b71162a6bf0cde2bff1752e40a1788d8273d049" + "reference": "ca242a0b7309e0f9d1f73b236e04ecf4ca3248d0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sirbrillig/phpcs-variable-analysis/zipball/3b71162a6bf0cde2bff1752e40a1788d8273d049", - "reference": "3b71162a6bf0cde2bff1752e40a1788d8273d049", + "url": "https://api.github.com/repos/sirbrillig/phpcs-variable-analysis/zipball/ca242a0b7309e0f9d1f73b236e04ecf4ca3248d0", + "reference": "ca242a0b7309e0f9d1f73b236e04ecf4ca3248d0", "shasum": "" }, "require": { @@ -8741,7 +8736,7 @@ "source": "https://github.com/sirbrillig/phpcs-variable-analysis", "wiki": "https://github.com/sirbrillig/phpcs-variable-analysis/wiki" }, - "time": "2023-08-05T23:46:11+00:00" + "time": "2024-04-13T16:42:46+00:00" }, { "name": "slevomat/coding-standard", @@ -8810,16 +8805,16 @@ }, { "name": "squizlabs/php_codesniffer", - "version": "3.9.1", + "version": "3.9.2", "source": { "type": "git", "url": "https://github.com/PHPCSStandards/PHP_CodeSniffer.git", - "reference": "267a4405fff1d9c847134db3a3c92f1ab7f77909" + "reference": "aac1f6f347a5c5ac6bc98ad395007df00990f480" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/267a4405fff1d9c847134db3a3c92f1ab7f77909", - "reference": "267a4405fff1d9c847134db3a3c92f1ab7f77909", + "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/aac1f6f347a5c5ac6bc98ad395007df00990f480", + "reference": "aac1f6f347a5c5ac6bc98ad395007df00990f480", "shasum": "" }, "require": { @@ -8886,7 +8881,7 @@ "type": "open_collective" } ], - "time": "2024-03-31T21:03:09+00:00" + "time": "2024-04-23T20:25:34+00:00" }, { "name": "symfony/browser-kit", @@ -9218,30 +9213,31 @@ }, { "name": "webflo/drupal-finder", - "version": "1.2.2", + "version": "1.3.0", "source": { "type": "git", "url": "https://github.com/webflo/drupal-finder.git", - "reference": "c8e5dbe65caef285fec8057a4c718a0d4138d1ee" + "reference": "1fa65484857c7a2e4dcf0d9e0b47198fe0681b8a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/webflo/drupal-finder/zipball/c8e5dbe65caef285fec8057a4c718a0d4138d1ee", - "reference": "c8e5dbe65caef285fec8057a4c718a0d4138d1ee", + "url": "https://api.github.com/repos/webflo/drupal-finder/zipball/1fa65484857c7a2e4dcf0d9e0b47198fe0681b8a", + "reference": "1fa65484857c7a2e4dcf0d9e0b47198fe0681b8a", "shasum": "" }, "require": { - "ext-json": "*" + "composer-runtime-api": "^2.2", + "php": ">=8.1" }, "require-dev": { "mikey179/vfsstream": "^1.6", - "phpunit/phpunit": "^4.8" + "phpunit/phpunit": "^10.4" }, "type": "library", "autoload": { - "classmap": [ - "src/DrupalFinder.php" - ] + "psr-4": { + "DrupalFinder\\": "src/" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -9253,12 +9249,12 @@ "email": "florian@webflo.org" } ], - "description": "Helper class to locate a Drupal installation from a given path.", + "description": "Helper class to locate a Drupal installation.", "support": { "issues": "https://github.com/webflo/drupal-finder/issues", - "source": "https://github.com/webflo/drupal-finder/tree/1.2.2" + "source": "https://github.com/webflo/drupal-finder/tree/1.3.0" }, - "time": "2020-10-27T09:42:17+00:00" + "time": "2024-05-08T21:22:39+00:00" }, { "name": "webmozart/assert", diff --git a/composer/Metapackage/CoreRecommended/composer.json b/composer/Metapackage/CoreRecommended/composer.json index 4d6b754a22317d04b50ec873740abcead1d1bc6a..71257363935f7c29057c12497a99a6b16a9b70c1 100644 --- a/composer/Metapackage/CoreRecommended/composer.json +++ b/composer/Metapackage/CoreRecommended/composer.json @@ -27,7 +27,7 @@ "psr/container": "~2.0.2", "psr/event-dispatcher": "~1.0.0", "psr/http-client": "~1.0.3", - "psr/http-factory": "~1.0.2", + "psr/http-factory": "~1.1.0", "psr/log": "~3.0.0", "ralouphie/getallheaders": "~3.0.3", "sebastian/diff": "~5.1.1", @@ -60,6 +60,6 @@ "symfony/var-dumper": "~v7.1.0-BETA1", "symfony/var-exporter": "~v7.0.7", "symfony/yaml": "~v7.1.0-BETA1", - "twig/twig": "~v3.9.3" + "twig/twig": "~v3.10.2" } } diff --git a/composer/Metapackage/DevDependencies/composer.json b/composer/Metapackage/DevDependencies/composer.json index fa96b90fd792e4fb007da643a9a25a9340570e30..4b062241e7f70a4c2a0550d77066e3424aa732cf 100644 --- a/composer/Metapackage/DevDependencies/composer.json +++ b/composer/Metapackage/DevDependencies/composer.json @@ -23,7 +23,7 @@ "php-http/guzzle7-adapter": "^1.0", "phpspec/prophecy-phpunit": "^2", "phpstan/extension-installer": "^1.1", - "phpstan/phpstan": "^1.10.62", + "phpstan/phpstan": "^1.11.0", "phpstan/phpstan-phpunit": "^1.3.16", "phpunit/phpunit": "^10.5.19", "symfony/browser-kit": "^7.1@beta", diff --git a/composer/Metapackage/PinnedDevDependencies/composer.json b/composer/Metapackage/PinnedDevDependencies/composer.json index 57ee0ccbed85d106186230e48d019f05a5d73a16..5b0d7f21c4ea6f74976db20738f90c559c6902a2 100644 --- a/composer/Metapackage/PinnedDevDependencies/composer.json +++ b/composer/Metapackage/PinnedDevDependencies/composer.json @@ -13,11 +13,11 @@ "colinodell/psr-testlogger": "v1.3.0", "composer/ca-bundle": "1.5.0", "composer/class-map-generator": "1.1.1", - "composer/composer": "2.7.2", + "composer/composer": "2.7.6", "composer/metadata-minifier": "1.0.0", "composer/pcre": "3.1.3", "composer/spdx-licenses": "1.5.8", - "composer/xdebug-handler": "3.0.4", + "composer/xdebug-handler": "3.0.5", "dealerdirect/phpcodesniffer-composer-installer": "v1.0.0", "doctrine/instantiator": "2.0.0", "drupal/coder": "8.3.24", @@ -25,7 +25,7 @@ "justinrainbow/json-schema": "v5.2.13", "lullabot/mink-selenium2-driver": "v1.7.2", "lullabot/php-webdriver": "v2.0.3", - "mglaman/phpstan-drupal": "1.2.10", + "mglaman/phpstan-drupal": "1.2.11", "micheh/phpcs-gitlab": "1.1.0", "mikey179/vfsstream": "v1.6.11", "myclabs/deep-copy": "1.11.1", @@ -35,7 +35,7 @@ "open-telemetry/exporter-otlp": "1.0.4", "open-telemetry/gen-otlp-protobuf": "1.1.0", "open-telemetry/sdk": "1.0.8", - "open-telemetry/sem-conv": "1.24.0", + "open-telemetry/sem-conv": "1.25.0", "phar-io/manifest": "2.0.4", "phar-io/version": "3.2.1", "php-http/discovery": "1.19.4", @@ -48,10 +48,10 @@ "phpspec/prophecy": "v1.19.0", "phpspec/prophecy-phpunit": "v2.2.0", "phpstan/extension-installer": "1.3.1", - "phpstan/phpdoc-parser": "1.28.0", - "phpstan/phpstan": "1.10.66", - "phpstan/phpstan-deprecation-rules": "1.1.4", - "phpstan/phpstan-phpunit": "1.3.16", + "phpstan/phpdoc-parser": "1.29.0", + "phpstan/phpstan": "1.11.1", + "phpstan/phpstan-deprecation-rules": "1.2.0", + "phpstan/phpstan-phpunit": "1.4.0", "phpunit/php-code-coverage": "10.1.14", "phpunit/php-file-iterator": "4.1.0", "phpunit/php-invoker": "4.0.0", @@ -76,15 +76,15 @@ "seld/jsonlint": "1.10.2", "seld/phar-utils": "1.2.1", "seld/signal-handler": "2.0.2", - "sirbrillig/phpcs-variable-analysis": "v2.11.17", + "sirbrillig/phpcs-variable-analysis": "v2.11.18", "slevomat/coding-standard": "8.15.0", - "squizlabs/php_codesniffer": "3.9.1", + "squizlabs/php_codesniffer": "3.9.2", "symfony/browser-kit": "v7.1.0-BETA1", "symfony/css-selector": "v7.1.0-BETA1", "symfony/dom-crawler": "v7.1.0-BETA1", "symfony/lock": "v7.1.0-BETA1", "theseer/tokenizer": "1.2.3", - "webflo/drupal-finder": "1.2.2", + "webflo/drupal-finder": "1.3.0", "webmozart/assert": "1.11.0" } } diff --git a/core/.phpstan-baseline.php b/core/.phpstan-baseline.php index 609ee106deb5b100d42f5e8ddbd105bc84180c44..53e300330b995bcf3e4cf2ee8da806035e7b0bc2 100644 --- a/core/.phpstan-baseline.php +++ b/core/.phpstan-baseline.php @@ -2,466 +2,559 @@ $ignoreErrors = []; $ignoreErrors[] = [ + // identifier: empty.variable 'message' => '#^Variable \\$data_path in empty\\(\\) always exists and is not falsy\\.$#', 'count' => 1, 'path' => __DIR__ . '/../composer/Plugin/Scaffold/Operations/AppendOp.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$app_root might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/assets/scaffold/files/default.settings.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$site_path might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/assets/scaffold/files/default.settings.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$new_set_index might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/includes/form.inc', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Function install_config_download_translations\\(\\) should return string but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/includes/install.core.inc', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Function install_download_translation\\(\\) should return string but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/includes/install.core.inc', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$items might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/includes/theme.inc', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$custom_theme might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/includes/theme.maintenance.inc', ]; $ignoreErrors[] = [ + // identifier: method.notFound 'message' => '#^Call to an undefined method Drupal\\\\Component\\\\Datetime\\\\DateTimePlus\\:\\:getTimeZone\\(\\)\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Component/Datetime/DateTimePlus.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$value might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Component/Datetime/DateTimePlus.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$x0 might not be defined\\.$#', 'count' => 4, 'path' => __DIR__ . '/lib/Drupal/Component/Diff/DiffFormatter.php', ]; $ignoreErrors[] = [ + // identifier: empty.variable 'message' => '#^Variable \\$xi in empty\\(\\) always exists and is not falsy\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Component/Diff/DiffFormatter.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$y0 might not be defined\\.$#', 'count' => 4, 'path' => __DIR__ . '/lib/Drupal/Component/Diff/DiffFormatter.php', ]; $ignoreErrors[] = [ + // identifier: empty.variable 'message' => '#^Variable \\$yi in empty\\(\\) always exists and is not falsy\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Component/Diff/DiffFormatter.php', ]; $ignoreErrors[] = [ + // identifier: constructor.unusedParameter 'message' => '#^Constructor of class Drupal\\\\Component\\\\FileCache\\\\NullFileCache has an unused parameter \\$cache_backend_class\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Component/FileCache/NullFileCache.php', ]; $ignoreErrors[] = [ + // identifier: constructor.unusedParameter 'message' => '#^Constructor of class Drupal\\\\Component\\\\FileCache\\\\NullFileCache has an unused parameter \\$cache_backend_configuration\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Component/FileCache/NullFileCache.php', ]; $ignoreErrors[] = [ + // identifier: constructor.unusedParameter 'message' => '#^Constructor of class Drupal\\\\Component\\\\FileCache\\\\NullFileCache has an unused parameter \\$collection\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Component/FileCache/NullFileCache.php', ]; $ignoreErrors[] = [ + // identifier: constructor.unusedParameter 'message' => '#^Constructor of class Drupal\\\\Component\\\\FileCache\\\\NullFileCache has an unused parameter \\$prefix\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Component/FileCache/NullFileCache.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\Component\\\\Gettext\\\\PoMemoryWriter\\:\\:getHeader\\(\\) should return Drupal\\\\Component\\\\Gettext\\\\PoHeader but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Component/Gettext/PoMemoryWriter.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\Component\\\\Gettext\\\\PoMemoryWriter\\:\\:getLangcode\\(\\) should return string but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Component/Gettext/PoMemoryWriter.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$log_vars might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Component/Gettext/PoStreamReader.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$permission might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Access/AccessResult.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\Core\\\\Access\\\\CsrfRequestHeaderAccessCheck\\:\\:applies\\(\\) should return bool but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Access/CsrfRequestHeaderAccessCheck.php', ]; $ignoreErrors[] = [ + // identifier: arguments.count 'message' => '#^Method Drupal\\\\Core\\\\Executable\\\\ExecutableInterface\\:\\:execute\\(\\) invoked with 1 parameter, 0 required\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Action/ActionBase.php', ]; $ignoreErrors[] = [ + // identifier: class.notFound 'message' => '#^Call to method getDefinitions\\(\\) on an unknown class Drupal\\\\Core\\\\Plugin\\\\CategorizingPluginManagerTrait\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Action/ActionManager.php', ]; $ignoreErrors[] = [ + // identifier: class.notFound 'message' => '#^Call to method getSortedDefinitions\\(\\) on an unknown class Drupal\\\\Core\\\\Plugin\\\\CategorizingPluginManagerTrait\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Action/ActionManager.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\Core\\\\Archiver\\\\ArchiverManager\\:\\:getInstance\\(\\) should return object\\|false but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Archiver/ArchiverManager.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$group_keys might not be defined\\.$#', 'count' => 2, 'path' => __DIR__ . '/lib/Drupal/Core/Asset/CssCollectionGrouper.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$group_keys might not be defined\\.$#', 'count' => 2, 'path' => __DIR__ . '/lib/Drupal/Core/Asset/JsCollectionGrouper.php', ]; $ignoreErrors[] = [ + // identifier: class.notFound 'message' => '#^Call to method getDefinitions\\(\\) on an unknown class Drupal\\\\Core\\\\Plugin\\\\CategorizingPluginManagerTrait\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Block/BlockManager.php', ]; $ignoreErrors[] = [ + // identifier: class.notFound 'message' => '#^Call to method getSortedDefinitions\\(\\) on an unknown class Drupal\\\\Core\\\\Plugin\\\\CategorizingPluginManagerTrait\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Block/BlockManager.php', ]; $ignoreErrors[] = [ + // identifier: constructor.unusedParameter 'message' => '#^Constructor of class Drupal\\\\Core\\\\Cache\\\\NullBackend has an unused parameter \\$bin\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Cache/NullBackend.php', ]; $ignoreErrors[] = [ + // identifier: class.notFound 'message' => '#^Call to method getDefinitions\\(\\) on an unknown class Drupal\\\\Core\\\\Plugin\\\\CategorizingPluginManagerTrait\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Condition/ConditionManager.php', ]; $ignoreErrors[] = [ + // identifier: class.notFound 'message' => '#^Call to method getSortedDefinitions\\(\\) on an unknown class Drupal\\\\Core\\\\Plugin\\\\CategorizingPluginManagerTrait\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Condition/ConditionManager.php', ]; $ignoreErrors[] = [ + // identifier: isset.variable 'message' => '#^Variable \\$value in isset\\(\\) always exists and is not nullable\\.$#', 'count' => 2, 'path' => __DIR__ . '/lib/Drupal/Core/Config/Entity/Query/Condition.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$theme_list might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Config/ExtensionInstallStorage.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$statement might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Database/Connection.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\Core\\\\Database\\\\Query\\\\Delete\\:\\:execute\\(\\) should return int but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Database/Query/Delete.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\Core\\\\Database\\\\Query\\\\Merge\\:\\:__toString\\(\\) should return string but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Database/Query/Merge.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$affected_rows might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Database/Query/Upsert.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\Core\\\\DrupalKernel\\:\\:discoverServiceProviders\\(\\) should return array but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/DrupalKernel.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$container might not be defined\\.$#', 'count' => 2, 'path' => __DIR__ . '/lib/Drupal/Core/DrupalKernel.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$container_definition might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/DrupalKernel.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\Core\\\\Entity\\\\ContentEntityConfirmFormBase\\:\\:save\\(\\) should return int but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Entity/ContentEntityConfirmFormBase.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\Core\\\\Entity\\\\ContentEntityNullStorage\\:\\:doLoadMultiple\\(\\) should return array\\<Drupal\\\\Core\\\\Entity\\\\EntityInterface\\> but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Entity/ContentEntityNullStorage.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\Core\\\\Entity\\\\ContentEntityNullStorage\\:\\:doSave\\(\\) should return bool\\|int but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Entity/ContentEntityNullStorage.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\Core\\\\Entity\\\\ContentEntityNullStorage\\:\\:has\\(\\) should return bool but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Entity/ContentEntityNullStorage.php', ]; $ignoreErrors[] = [ + // identifier: isset.variable 'message' => '#^Variable \\$current_affected in isset\\(\\) always exists and is not nullable\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Entity/ContentEntityStorageBase.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\Core\\\\Entity\\\\Controller\\\\EntityController\\:\\:deleteTitle\\(\\) should return string but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Entity/Controller/EntityController.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$candidate_ids might not be defined\\.$#', 'count' => 2, 'path' => __DIR__ . '/lib/Drupal/Core/Entity/Entity/EntityFormDisplay.php', ]; $ignoreErrors[] = [ + // identifier: isset.variable 'message' => '#^Variable \\$string in isset\\(\\) always exists and is not nullable\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Entity/EntityAutocompleteMatcher.php', ]; $ignoreErrors[] = [ + // identifier: property.notFound 'message' => '#^Access to an undefined property Drupal\\\\Core\\\\Entity\\\\EntityBase\\:\\:\\$id\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Entity/EntityBase.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\Core\\\\Entity\\\\EntityConfirmFormBase\\:\\:save\\(\\) should return int but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Entity/EntityConfirmFormBase.php', ]; $ignoreErrors[] = [ + // identifier: property.notFound 'message' => '#^Access to an undefined property Drupal\\\\Core\\\\Entity\\\\EntityDisplayBase\\:\\:\\$_serializedKeys\\.$#', 'count' => 2, 'path' => __DIR__ . '/lib/Drupal/Core/Entity/EntityDisplayBase.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\Core\\\\Entity\\\\KeyValueStore\\\\KeyValueContentEntityStorage\\:\\:createTranslation\\(\\) should return Drupal\\\\Core\\\\Entity\\\\ContentEntityInterface but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Entity/KeyValueStore/KeyValueContentEntityStorage.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\Core\\\\Entity\\\\KeyValueStore\\\\KeyValueContentEntityStorage\\:\\:createWithSampleValues\\(\\) should return Drupal\\\\Core\\\\Entity\\\\FieldableEntityInterface but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Entity/KeyValueStore/KeyValueContentEntityStorage.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$selected_bundles might not be defined\\.$#', 'count' => 2, 'path' => __DIR__ . '/lib/Drupal/Core/Entity/Plugin/EntityReferenceSelection/DefaultSelection.php', ]; $ignoreErrors[] = [ + // identifier: isset.variable 'message' => '#^Variable \\$value in isset\\(\\) always exists and is not nullable\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/ReferenceAccessConstraintValidator.php', ]; $ignoreErrors[] = [ + // identifier: isset.variable 'message' => '#^Variable \\$value in isset\\(\\) always exists and is not nullable\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/ValidReferenceConstraintValidator.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\Core\\\\Entity\\\\Query\\\\QueryBase\\:\\:getClass\\(\\) should return string but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Entity/Query/QueryBase.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$next_index_prefix might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Entity/Query/Sql/Tables.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$relationship_specifier might not be defined\\.$#', 'count' => 5, 'path' => __DIR__ . '/lib/Drupal/Core/Entity/Query/Sql/Tables.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$revision_query might not be defined\\.$#', 'count' => 2, 'path' => __DIR__ . '/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php', ]; $ignoreErrors[] = [ + // identifier: isset.variable 'message' => '#^Variable \\$transaction in isset\\(\\) always exists and is not nullable\\.$#', 'count' => 2, 'path' => __DIR__ . '/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php', ]; $ignoreErrors[] = [ + // identifier: empty.variable 'message' => '#^Variable \\$initial_storage_value in empty\\(\\) always exists and is not falsy\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$minor_version might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Extension/ExtensionVersion.php', ]; $ignoreErrors[] = [ + // identifier: isset.variable 'message' => '#^Variable \\$callback in isset\\(\\) always exists and is not nullable\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Field/FieldDefinition.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\Core\\\\Field\\\\FieldItemBase\\:\\:generateSampleValue\\(\\) should return array but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Field/FieldItemBase.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\Core\\\\Field\\\\FieldItemBase\\:\\:postSave\\(\\) should return bool but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Field/FieldItemBase.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\Core\\\\Field\\\\FieldItemList\\:\\:defaultValuesForm\\(\\) should return array but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Field/FieldItemList.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$values might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Field/FieldItemList.php', ]; $ignoreErrors[] = [ + // identifier: class.notFound 'message' => '#^Call to method getDefinitions\\(\\) on an unknown class Drupal\\\\Core\\\\Plugin\\\\CategorizingPluginManagerTrait\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Field/FieldTypePluginManager.php', ]; $ignoreErrors[] = [ + // identifier: class.notFound 'message' => '#^Call to method getSortedDefinitions\\(\\) on an unknown class Drupal\\\\Core\\\\Plugin\\\\CategorizingPluginManagerTrait\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Field/FieldTypePluginManager.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\Core\\\\Field\\\\Plugin\\\\Field\\\\FieldType\\\\EntityReferenceItem\\:\\:generateSampleValue\\(\\) should return array but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php', ]; $ignoreErrors[] = [ + // identifier: property.notFound 'message' => '#^Access to an undefined property Drupal\\\\Core\\\\Field\\\\Plugin\\\\Field\\\\FieldType\\\\NumericItemBase\\:\\:\\$value\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Field/Plugin/Field/FieldType/NumericItemBase.php', ]; $ignoreErrors[] = [ + // identifier: property.notFound 'message' => '#^Access to an undefined property Drupal\\\\Core\\\\FileTransfer\\\\FTPExtension\\:\\:\\$connection\\.$#', 'count' => 19, 'path' => __DIR__ . '/lib/Drupal/Core/FileTransfer/FTPExtension.php', ]; $ignoreErrors[] = [ + // identifier: property.notFound 'message' => '#^Access to an undefined property Drupal\\\\Core\\\\FileTransfer\\\\FileTransfer\\:\\:\\$chroot\\.$#', 'count' => 3, 'path' => __DIR__ . '/lib/Drupal/Core/FileTransfer/FileTransfer.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\Core\\\\FileTransfer\\\\FileTransfer\\:\\:__get\\(\\) should return bool\\|string but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/FileTransfer/FileTransfer.php', ]; $ignoreErrors[] = [ + // identifier: property.notFound 'message' => '#^Access to an undefined property Drupal\\\\Core\\\\FileTransfer\\\\SSH\\:\\:\\$connection\\.$#', 'count' => 9, 'path' => __DIR__ . '/lib/Drupal/Core/FileTransfer/SSH.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\Core\\\\Form\\\\FormBuilder\\:\\:setInvalidTokenError\\(\\) should return \\$this\\(Drupal\\\\Core\\\\Form\\\\FormBuilder\\) but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Form/FormBuilder.php', ]; $ignoreErrors[] = [ + // identifier: isset.variable 'message' => '#^Variable \\$form_id in isset\\(\\) always exists and is not nullable\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Form/FormBuilder.php', ]; $ignoreErrors[] = [ + // identifier: isset.variable 'message' => '#^Variable \\$input in isset\\(\\) always exists and is not nullable\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Form/FormBuilder.php', ]; $ignoreErrors[] = [ + // identifier: isset.variable 'message' => '#^Variable \\$form in isset\\(\\) always exists and is not nullable\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Form/FormCache.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\Core\\\\Form\\\\FormValidator\\:\\:setInvalidTokenError\\(\\) should return \\$this\\(Drupal\\\\Core\\\\Form\\\\FormValidator\\) but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Form/FormValidator.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$is_empty_multiple might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Form/FormValidator.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$is_empty_null might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Form/FormValidator.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$is_empty_string might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Form/FormValidator.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\Core\\\\KeyValueStore\\\\NullStorageExpirable\\:\\:setIfNotExists\\(\\) should return bool but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/KeyValueStore/NullStorageExpirable.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\Core\\\\KeyValueStore\\\\NullStorageExpirable\\:\\:setWithExpireIfNotExists\\(\\) should return bool but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/KeyValueStore/NullStorageExpirable.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\Core\\\\Lock\\\\NullLockBackend\\:\\:wait\\(\\) should return bool but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Lock/NullLockBackend.php', ]; $ignoreErrors[] = [ + // identifier: isset.variable 'message' => '#^Variable \\$parent in isset\\(\\) always exists and is not nullable\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Menu/Form/MenuLinkDefaultForm.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\Core\\\\Menu\\\\MenuLinkManager\\:\\:getInstance\\(\\) should return object\\|false but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Menu/MenuLinkManager.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\Core\\\\Menu\\\\MenuLinkManager\\:\\:menuNameInUse\\(\\) should return bool but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Menu/MenuLinkManager.php', @@ -472,6 +565,7 @@ 'path' => __DIR__ . '/lib/Drupal/Core/Menu/MenuLinkManager.php', ]; $ignoreErrors[] = [ + // identifier: isset.variable 'message' => '#^Variable \\$transaction in isset\\(\\) always exists and is not nullable\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Menu/MenuTreeStorage.php', @@ -482,576 +576,691 @@ 'path' => __DIR__ . '/lib/Drupal/Core/Plugin/DefaultPluginManager.php', ]; $ignoreErrors[] = [ + // identifier: constructor.unusedParameter 'message' => '#^Constructor of class Drupal\\\\Core\\\\Queue\\\\Memory has an unused parameter \\$name\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Queue/Memory.php', ]; $ignoreErrors[] = [ + // identifier: isset.variable 'message' => '#^Variable \\$sort in isset\\(\\) always exists and is not nullable\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Render/Element/RenderElementBase.php', ]; $ignoreErrors[] = [ + // identifier: empty.variable 'message' => '#^Variable \\$output in empty\\(\\) always exists and is not falsy\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Render/MainContent/AjaxRenderer.php', ]; $ignoreErrors[] = [ + // identifier: empty.variable 'message' => '#^Variable \\$page_bottom in empty\\(\\) always exists and is always falsy\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php', ]; $ignoreErrors[] = [ + // identifier: empty.variable 'message' => '#^Variable \\$page_top in empty\\(\\) always exists and is always falsy\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php', ]; $ignoreErrors[] = [ + // identifier: isset.variable 'message' => '#^Variable \\$elements in isset\\(\\) always exists and is not nullable\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Render/Renderer.php', ]; $ignoreErrors[] = [ + // identifier: isset.variable 'message' => '#^Variable \\$transaction in isset\\(\\) always exists and is not nullable\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Routing/MatcherDumper.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$current might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Site/SettingsEditor.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$index might not be defined\\.$#', 'count' => 3, 'path' => __DIR__ . '/lib/Drupal/Core/Site/SettingsEditor.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\Core\\\\Template\\\\AttributeValueBase\\:\\:render\\(\\) should return string but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Template/AttributeValueBase.php', ]; $ignoreErrors[] = [ + // identifier: constructor.unusedParameter 'message' => '#^Constructor of class Drupal\\\\Core\\\\Template\\\\TwigEnvironment has an unused parameter \\$root\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Template/TwigEnvironment.php', ]; $ignoreErrors[] = [ + // identifier: constructor.unusedParameter 'message' => '#^Constructor of class Drupal\\\\Core\\\\Test\\\\TestRunnerKernel has an unused parameter \\$allow_dumping\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Test/TestRunnerKernel.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\Core\\\\Theme\\\\ThemeInitialization\\:\\:resolveStyleSheetPlaceholders\\(\\) should return string but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Theme/ThemeInitialization.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$candidate might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Theme/ThemeManager.php', ]; $ignoreErrors[] = [ + // identifier: isset.variable 'message' => '#^Variable \\$theme_engine in isset\\(\\) always exists and is not nullable\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Theme/ThemeManager.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\Core\\\\TypedData\\\\ListDataDefinition\\:\\:setDataType\\(\\) should return static\\(Drupal\\\\Core\\\\TypedData\\\\ListDataDefinition\\) but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/TypedData/ListDataDefinition.php', ]; $ignoreErrors[] = [ + // identifier: property.notFound 'message' => '#^Access to an undefined property Drupal\\\\Core\\\\TypedData\\\\TypedData\\:\\:\\$value\\.$#', 'count' => 2, 'path' => __DIR__ . '/lib/Drupal/Core/TypedData/TypedData.php', ]; $ignoreErrors[] = [ + // identifier: isset.variable 'message' => '#^Variable \\$cache_key in isset\\(\\) always exists and is not nullable\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/TypedData/Validation/RecursiveContextualValidator.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\Core\\\\Update\\\\UpdateKernel\\:\\:discoverServiceProviders\\(\\) should return array but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Update/UpdateKernel.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\Core\\\\Updater\\\\Module\\:\\:postUpdateTasks\\(\\) should return array but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Core/Updater/Module.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$position might not be defined\\.$#', 'count' => 4, 'path' => __DIR__ . '/modules/block/tests/src/Functional/BlockRenderOrderTest.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$edit might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/block/tests/src/Functional/BlockUiTest.php', ]; $ignoreErrors[] = [ + // identifier: empty.variable 'message' => '#^Variable \\$dependency in empty\\(\\) always exists and is not falsy\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/block_content/src/BlockContentAccessControlHandler.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\block_content\\\\BlockContentForm\\:\\:save\\(\\) should return int but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/block_content/src/BlockContentForm.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\block_content\\\\BlockContentTypeForm\\:\\:save\\(\\) should return int but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/block_content/src/BlockContentTypeForm.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$loaded might not be defined\\.$#', 'count' => 9, 'path' => __DIR__ . '/modules/block_content/tests/src/Functional/BlockContentRevisionsTest.php', ]; $ignoreErrors[] = [ + // identifier: empty.variable 'message' => '#^Variable \\$ghs_config_classes in empty\\(\\) always exists and is always falsy\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/ckeditor5/src/Plugin/Validation/Constraint/StyleSensibleElementConstraintValidator.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\comment\\\\CommentForm\\:\\:save\\(\\) should return int but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/comment/src/CommentForm.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\comment\\\\CommentTypeForm\\:\\:save\\(\\) should return int but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/comment/src/CommentTypeForm.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$state might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/comment/src/Plugin/migrate/destination/EntityComment.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\comment\\\\Plugin\\\\views\\\\field\\\\NodeNewComments\\:\\:render\\(\\) should return Drupal\\\\Component\\\\Render\\\\MarkupInterface\\|string but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/comment/src/Plugin/views/field/NodeNewComments.php', ]; $ignoreErrors[] = [ + // identifier: empty.variable 'message' => '#^Variable \\$comment in empty\\(\\) always exists and is not falsy\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/comment/src/Plugin/views/row/Rss.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$position might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/comment/tests/src/Functional/CommentBlockTest.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$comment_values might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/comment/tests/src/Functional/CommentLanguageTest.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$mode_text might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/comment/tests/src/Functional/CommentTestBase.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$data might not be defined\\.$#', 'count' => 2, 'path' => __DIR__ . '/modules/config/src/Form/ConfigSingleImportForm.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\contact\\\\ContactFormEditForm\\:\\:save\\(\\) should return int but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/contact/src/ContactFormEditForm.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\contact\\\\Entity\\\\Message\\:\\:getPersonalRecipient\\(\\) should return Drupal\\\\user\\\\UserInterface but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/contact/src/Entity/Message.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\contact\\\\MessageForm\\:\\:save\\(\\) should return int but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/contact/src/MessageForm.php', ]; $ignoreErrors[] = [ + // identifier: isset.variable 'message' => '#^Variable \\$state in isset\\(\\) always exists and is not nullable\\.$#', 'count' => 3, 'path' => __DIR__ . '/modules/content_moderation/src/Form/ContentModerationStateForm.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\content_moderation\\\\ModerationInformation\\:\\:getAffectedRevisionTranslation\\(\\) should return Drupal\\\\Core\\\\Entity\\\\ContentEntityInterface but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/content_moderation/src/ModerationInformation.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\content_moderation\\\\ModerationInformation\\:\\:getDefaultRevisionId\\(\\) should return int but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/content_moderation/src/ModerationInformation.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$checkbox_id might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/content_translation/content_translation.admin.inc', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$locked_languages might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/content_translation/content_translation.admin.inc', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$locked_languages might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/content_translation/content_translation.module', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$source_name might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/content_translation/src/Controller/ContentTranslationController.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$unrestricted_tab_count might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/contextual/tests/src/FunctionalJavascript/EditModeTest.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\datetime\\\\Plugin\\\\Field\\\\FieldType\\\\DateTimeFieldItemList\\:\\:defaultValuesForm\\(\\) should return array but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/datetime/src/Plugin/Field/FieldType/DateTimeFieldItemList.php', ]; $ignoreErrors[] = [ + // identifier: property.notFound 'message' => '#^Access to an undefined property Drupal\\\\datetime\\\\Plugin\\\\Field\\\\FieldType\\\\DateTimeItem\\:\\:\\$date\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/datetime/src/Plugin/Field/FieldType/DateTimeItem.php', ]; $ignoreErrors[] = [ + // identifier: isset.variable 'message' => '#^Variable \\$item in isset\\(\\) always exists and is not nullable\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/datetime/src/Plugin/Validation/Constraint/DateTimeFormatConstraintValidator.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\datetime_range\\\\Plugin\\\\Field\\\\FieldType\\\\DateRangeFieldItemList\\:\\:defaultValuesForm\\(\\) should return array but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/datetime_range/src/Plugin/Field/FieldType/DateRangeFieldItemList.php', ]; $ignoreErrors[] = [ + // identifier: property.notFound 'message' => '#^Access to an undefined property Drupal\\\\datetime_range\\\\Plugin\\\\Field\\\\FieldType\\\\DateRangeItem\\:\\:\\$end_date\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/datetime_range/src/Plugin/Field/FieldType/DateRangeItem.php', ]; $ignoreErrors[] = [ + // identifier: property.notFound 'message' => '#^Access to an undefined property Drupal\\\\datetime_range\\\\Plugin\\\\Field\\\\FieldType\\\\DateRangeItem\\:\\:\\$start_date\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/datetime_range/src/Plugin/Field/FieldType/DateRangeItem.php', ]; $ignoreErrors[] = [ + // identifier: isset.variable 'message' => '#^Variable \\$view in isset\\(\\) always exists and is not nullable\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/dblog/dblog.module', ]; $ignoreErrors[] = [ + // identifier: empty.variable 'message' => '#^Variable \\$items in empty\\(\\) always exists and is not falsy\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/field/tests/modules/field_test/src/Plugin/Field/FieldFormatter/TestFieldEmptySettingFormatter.php', ]; $ignoreErrors[] = [ + // identifier: empty.variable 'message' => '#^Variable \\$items in empty\\(\\) always exists and is not falsy\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/field/tests/modules/field_test/src/Plugin/Field/FieldFormatter/TestFieldMultipleFormatter.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$values might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/field/tests/src/Kernel/FieldAttachStorageTest.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$entity_display might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/field_ui/src/Access/FormModeAccessCheck.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$entity_display might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/field_ui/src/Access/ViewModeAccessCheck.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\field_ui\\\\FieldUI\\:\\:getOverviewRouteInfo\\(\\) should return Drupal\\\\Core\\\\Url but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/field_ui/src/FieldUI.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\field_ui\\\\Form\\\\EntityDisplayModeFormBase\\:\\:save\\(\\) should return int but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/field_ui/src/Form/EntityDisplayModeFormBase.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\field_ui\\\\Form\\\\FieldConfigEditForm\\:\\:save\\(\\) should return int but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/field_ui/src/Form/FieldConfigEditForm.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\field_ui\\\\Form\\\\FieldStorageConfigEditForm\\:\\:save\\(\\) should return int but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/field_ui/src/Form/FieldStorageConfigEditForm.php', ]; $ignoreErrors[] = [ + // identifier: empty.variable 'message' => '#^Variable \\$file_upload in empty\\(\\) always exists and is not falsy\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/file/file.module', ]; $ignoreErrors[] = [ + // identifier: empty.variable 'message' => '#^Variable \\$rows in empty\\(\\) always exists and is not falsy\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/file/src/Plugin/Field/FieldFormatter/TableFormatter.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\file\\\\Plugin\\\\Field\\\\FieldType\\\\FileFieldItemList\\:\\:defaultValuesForm\\(\\) should return array but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/file/src/Plugin/Field/FieldType/FileFieldItemList.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\file\\\\Plugin\\\\Field\\\\FieldType\\\\FileFieldItemList\\:\\:postSave\\(\\) should return bool but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/file/src/Plugin/Field/FieldType/FileFieldItemList.php', ]; $ignoreErrors[] = [ + // identifier: empty.variable 'message' => '#^Variable \\$unexpected in empty\\(\\) always exists and is not falsy\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/file/tests/src/Functional/FileManagedTestBase.php', ]; $ignoreErrors[] = [ + // identifier: method.notFound 'message' => '#^Call to an undefined method Drupal\\\\Tests\\\\file\\\\Functional\\\\FileUploadJsonBasicAuthTest\\:\\:getExpectedUnauthorizedEntityAccessCacheability\\(\\)\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/file/tests/src/Functional/FileUploadJsonBasicAuthTest.php', ]; $ignoreErrors[] = [ + // identifier: method.notFound 'message' => '#^Call to an undefined method Drupal\\\\Tests\\\\file\\\\Functional\\\\FileUploadJsonCookieTest\\:\\:getExpectedUnauthorizedEntityAccessCacheability\\(\\)\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/file/tests/src/Functional/FileUploadJsonCookieTest.php', ]; $ignoreErrors[] = [ + // identifier: empty.variable 'message' => '#^Variable \\$unexpected in empty\\(\\) always exists and is not falsy\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/file/tests/src/Kernel/FileManagedUnitTestBase.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$rows might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/filter/src/Plugin/Filter/FilterHtml.php', ]; $ignoreErrors[] = [ + // identifier: method.deprecated 'message' => '#^Call to deprecated method getMockForAbstractClass\\(\\) of class PHPUnit\\\\Framework\\\\TestCase\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/help/tests/src/Unit/HelpTopicTwigTest.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\history\\\\Plugin\\\\views\\\\field\\\\HistoryUserTimestamp\\:\\:render\\(\\) should return Drupal\\\\Component\\\\Render\\\\MarkupInterface\\|string but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/history/src/Plugin/views/field/HistoryUserTimestamp.php', ]; $ignoreErrors[] = [ + // identifier: empty.variable 'message' => '#^Variable \\$image_style in empty\\(\\) always exists and is not falsy\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/image/src/Controller/ImageStyleDownloadController.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$lock_name might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/image/src/Controller/ImageStyleDownloadController.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\image\\\\Form\\\\ImageStyleEditForm\\:\\:save\\(\\) should return int but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/image/src/Form/ImageStyleEditForm.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\image\\\\Form\\\\ImageStyleFormBase\\:\\:save\\(\\) should return int but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/image/src/Form/ImageStyleFormBase.php', ]; $ignoreErrors[] = [ + // identifier: property.notFound 'message' => '#^Access to an undefined property Drupal\\\\image\\\\Plugin\\\\Field\\\\FieldType\\\\ImageItem\\:\\:\\$height\\.$#', 'count' => 2, 'path' => __DIR__ . '/modules/image/src/Plugin/Field/FieldType/ImageItem.php', ]; $ignoreErrors[] = [ + // identifier: property.notFound 'message' => '#^Access to an undefined property Drupal\\\\image\\\\Plugin\\\\Field\\\\FieldType\\\\ImageItem\\:\\:\\$width\\.$#', 'count' => 2, 'path' => __DIR__ . '/modules/image/src/Plugin/Field/FieldType/ImageItem.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$image_that_is_too_small_file might not be defined\\.$#', 'count' => 2, 'path' => __DIR__ . '/modules/image/tests/src/Functional/ImageFieldValidateTest.php', ]; $ignoreErrors[] = [ + // identifier: empty.variable 'message' => '#^Variable \\$edit in empty\\(\\) always exists and is not falsy\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/image/tests/src/Functional/ImageStyleFlushTest.php', ]; $ignoreErrors[] = [ + // identifier: empty.variable 'message' => '#^Variable \\$reason in empty\\(\\) always exists and is not falsy\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/jsonapi/src/Context/FieldResolver.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\jsonapi\\\\JsonApiResource\\\\ResourceIdentifier\\:\\:getDataReferencePropertyName\\(\\) should return string but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/jsonapi/src/JsonApiResource/ResourceIdentifier.php', ]; $ignoreErrors[] = [ + // identifier: isset.variable 'message' => '#^Variable \\$entity in isset\\(\\) always exists and is not nullable\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/jsonapi/src/Normalizer/EntityAccessDeniedHttpExceptionNormalizer.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\jsonapi\\\\Revisions\\\\VersionNegotiator\\:\\:getRevision\\(\\) should return Drupal\\\\Core\\\\Entity\\\\EntityInterface but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/jsonapi/src/Revisions/VersionNegotiator.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$created_entity might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/ResourceTestBase.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$dynamic_cache might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/ResourceTestBase.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$parseable_invalid_request_body might not be defined\\.$#', 'count' => 2, 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/ResourceTestBase.php', ]; $ignoreErrors[] = [ + // identifier: empty.variable 'message' => '#^Variable \\$reason in empty\\(\\) always exists and is not falsy\\.$#', 'count' => 2, 'path' => __DIR__ . '/modules/jsonapi/tests/src/Functional/ResourceTestBase.php', ]; $ignoreErrors[] = [ + // identifier: isset.variable 'message' => '#^Variable \\$id in isset\\(\\) always exists and is not nullable\\.$#', 'count' => 2, 'path' => __DIR__ . '/modules/jsonapi/tests/src/Unit/Normalizer/JsonApiDocumentTopLevelNormalizerTest.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\language\\\\Form\\\\LanguageAddForm\\:\\:save\\(\\) should return int but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/language/src/Form/LanguageAddForm.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\language\\\\Form\\\\LanguageEditForm\\:\\:save\\(\\) should return int but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/language/src/Form/LanguageEditForm.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$key might not be defined\\.$#', 'count' => 2, 'path' => __DIR__ . '/modules/language/src/Form/NegotiationBrowserForm.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$method_id might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/language/src/LanguageNegotiator.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$langcode might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/language/src/Plugin/LanguageNegotiation/LanguageNegotiationContentEntity.php', ]; $ignoreErrors[] = [ + // identifier: constructor.unusedParameter 'message' => '#^Constructor of class Drupal\\\\link\\\\Plugin\\\\migrate\\\\process\\\\FieldLink has an unused parameter \\$migration\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/link/src/Plugin/migrate/process/FieldLink.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Function locale_config_batch_update_components\\(\\) should return array but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/locale/locale.bulk.inc', ]; $ignoreErrors[] = [ + // identifier: empty.variable 'message' => '#^Variable \\$item in empty\\(\\) always exists and is not falsy\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/locale/src/Form/ExportForm.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\locale\\\\LocaleDefaultConfigStorage\\:\\:read\\(\\) should return array but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/locale/src/LocaleDefaultConfigStorage.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\locale\\\\LocaleProjectStorage\\:\\:deleteAll\\(\\) should return array but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/locale/src/LocaleProjectStorage.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\locale\\\\PoDatabaseReader\\:\\:readItem\\(\\) should return Drupal\\\\Component\\\\Gettext\\\\PoItem but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/locale/src/PoDatabaseReader.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\locale\\\\PoDatabaseWriter\\:\\:importString\\(\\) should return int but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/locale/src/PoDatabaseWriter.php', ]; $ignoreErrors[] = [ + // identifier: isset.variable 'message' => '#^Variable \\$plural in isset\\(\\) always exists and is not nullable\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/locale/src/PoDatabaseWriter.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\locale\\\\StringDatabaseStorage\\:\\:dbStringTable\\(\\) should return string but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/locale/src/StringDatabaseStorage.php', ]; $ignoreErrors[] = [ + // identifier: empty.variable 'message' => '#^Variable \\$error in empty\\(\\) always exists and is not falsy\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/media/media.install', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\media\\\\MediaTypeForm\\:\\:save\\(\\) should return int but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/media/src/MediaTypeForm.php', ]; $ignoreErrors[] = [ + // identifier: empty.variable 'message' => '#^Variable \\$source in empty\\(\\) always exists and is not falsy\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/media/src/MediaTypeForm.php', ]; $ignoreErrors[] = [ + // identifier: nullCoalesce.variable 'message' => '#^Variable \\$resource_url on left side of \\?\\? always exists and is not nullable\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/media/src/OEmbed/UrlResolver.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$jpg_image might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/media_library/tests/src/FunctionalJavascript/EmbeddedFormWidgetTest.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\menu_link_content\\\\Form\\\\MenuLinkContentForm\\:\\:save\\(\\) should return int but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/menu_link_content/src/Form/MenuLinkContentForm.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$uuid might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/menu_link_content/src/Plugin/Menu/MenuLinkContent.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\menu_ui\\\\MenuForm\\:\\:save\\(\\) should return int but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/menu_ui/src/MenuForm.php', ]; $ignoreErrors[] = [ + // identifier: constructor.unusedParameter 'message' => '#^Constructor of class Drupal\\\\migrate\\\\MigrateException has an unused parameter \\$code\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/migrate/src/MigrateException.php', ]; $ignoreErrors[] = [ + // identifier: constructor.unusedParameter 'message' => '#^Constructor of class Drupal\\\\migrate\\\\MigrateException has an unused parameter \\$previous\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/migrate/src/MigrateException.php', @@ -1067,56 +1276,67 @@ 'path' => __DIR__ . '/modules/migrate/src/Plugin/MigrateSourcePluginManager.php', ]; $ignoreErrors[] = [ + // identifier: constructor.unusedParameter 'message' => '#^Constructor of class Drupal\\\\migrate\\\\Plugin\\\\MigrationPluginManager has an unused parameter \\$language_manager\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/migrate/src/Plugin/MigrationPluginManager.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\migrate\\\\Plugin\\\\migrate\\\\destination\\\\ComponentEntityDisplayBase\\:\\:fields\\(\\) should return array but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/migrate/src/Plugin/migrate/destination/ComponentEntityDisplayBase.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\migrate\\\\Plugin\\\\migrate\\\\destination\\\\Config\\:\\:fields\\(\\) should return array but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/migrate/src/Plugin/migrate/destination/Config.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\migrate\\\\Plugin\\\\migrate\\\\destination\\\\Entity\\:\\:fields\\(\\) should return array but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/migrate/src/Plugin/migrate/destination/Entity.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$config might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/migrate/src/Plugin/migrate/destination/EntityConfigBase.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\migrate\\\\Plugin\\\\migrate\\\\destination\\\\NullDestination\\:\\:import\\(\\) should return array\\|bool but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/migrate/src/Plugin/migrate/destination/NullDestination.php', ]; $ignoreErrors[] = [ + // identifier: phpunit.dataProviderMethod 'message' => '#^@dataProvider providerSource related method not found\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/migrate/tests/src/Kernel/MigrateSourceTestBase.php', ]; $ignoreErrors[] = [ + // identifier: phpunit.dataProviderMethod 'message' => '#^@dataProvider providerSource related method not found\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/migrate/tests/src/Kernel/MigrateSqlSourceTestBase.php', ]; $ignoreErrors[] = [ + // identifier: staticMethod.notFound 'message' => '#^Call to an undefined static method Drupal\\\\Tests\\\\migrate\\\\Kernel\\\\MigrateTestBase\\:\\:migrateDumpAlter\\(\\)\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/migrate/tests/src/Kernel/MigrateTestBase.php', ]; $ignoreErrors[] = [ + // identifier: method.deprecated 'message' => '#^Call to deprecated method getMockForAbstractClass\\(\\) of class PHPUnit\\\\Framework\\\\MockObject\\\\MockBuilder\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/migrate/tests/src/Unit/MigrateExecutableTest.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$sub_process_plugins might not be defined\\.$#', 'count' => 2, 'path' => __DIR__ . '/modules/migrate/tests/src/Unit/process/SubProcessTest.php', @@ -1127,31 +1347,37 @@ 'path' => __DIR__ . '/modules/migrate_drupal/src/MigrationPluginManager.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$patterns might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/migrate_drupal/src/NodeMigrateType.php', ]; $ignoreErrors[] = [ + // identifier: constructor.unusedParameter 'message' => '#^Constructor of class Drupal\\\\migrate_drupal\\\\Plugin\\\\migrate\\\\EntityReferenceTranslationDeriver has an unused parameter \\$base_plugin_id\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/migrate_drupal/src/Plugin/migrate/EntityReferenceTranslationDeriver.php', ]; $ignoreErrors[] = [ + // identifier: constructor.unusedParameter 'message' => '#^Constructor of class Drupal\\\\migrate_drupal\\\\Plugin\\\\migrate\\\\source\\\\ContentEntityDeriver has an unused parameter \\$base_plugin_id\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/migrate_drupal/src/Plugin/migrate/source/ContentEntityDeriver.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$patterns might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/migrate_drupal/tests/src/Kernel/StateFileExistsTest.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$patterns might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/migrate_drupal/tests/src/Kernel/d6/ValidateMigrationStateTest.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$patterns might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/migrate_drupal/tests/src/Kernel/d7/ValidateMigrationStateTest.php', @@ -1162,291 +1388,349 @@ 'path' => __DIR__ . '/modules/migrate_drupal/tests/src/Unit/MigrateFieldPluginManagerTest.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$patterns might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/migrate_drupal/tests/src/Unit/MigrationConfigurationTraitTest.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$statement might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/migrate_drupal/tests/src/Unit/MigrationConfigurationTraitTest.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$version might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/migrate_drupal_ui/src/Form/CredentialForm.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$patterns might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/migrate_drupal_ui/src/Form/MigrateUpgradeFormBase.php', ]; $ignoreErrors[] = [ + // identifier: method.notFound 'message' => '#^Call to an undefined method Drupal\\\\Tests\\\\migrate_drupal_ui\\\\Functional\\\\CredentialFormTest\\:\\:installEntitySchema\\(\\)\\.$#', 'count' => 8, 'path' => __DIR__ . '/modules/migrate_drupal_ui/tests/src/Functional/CredentialFormTest.php', ]; $ignoreErrors[] = [ + // identifier: method.notFound 'message' => '#^Call to an undefined method Drupal\\\\Tests\\\\migrate_drupal_ui\\\\Functional\\\\MigrateUpgradeExecuteTestBase\\:\\:installEntitySchema\\(\\)\\.$#', 'count' => 8, 'path' => __DIR__ . '/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeExecuteTestBase.php', ]; $ignoreErrors[] = [ + // identifier: method.notFound 'message' => '#^Call to an undefined method Drupal\\\\Tests\\\\migrate_drupal_ui\\\\Functional\\\\MigrateUpgradeFormStepsTest\\:\\:installEntitySchema\\(\\)\\.$#', 'count' => 8, 'path' => __DIR__ . '/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeFormStepsTest.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$patterns might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeFormStepsTest.php', ]; $ignoreErrors[] = [ + // identifier: method.notFound 'message' => '#^Call to an undefined method Drupal\\\\Tests\\\\migrate_drupal_ui\\\\Functional\\\\MigrateUpgradeTestBase\\:\\:getManagedFiles\\(\\)\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeTestBase.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$patterns might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeTestBase.php', ]; $ignoreErrors[] = [ + // identifier: method.notFound 'message' => '#^Call to an undefined method Drupal\\\\Tests\\\\migrate_drupal_ui\\\\Functional\\\\MultilingualReviewPageTestBase\\:\\:installEntitySchema\\(\\)\\.$#', 'count' => 8, 'path' => __DIR__ . '/modules/migrate_drupal_ui/tests/src/Functional/MultilingualReviewPageTestBase.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$last_insert_id might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/mysql/src/Driver/Database/mysql/Insert.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$string_ascii_check might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/mysql/tests/src/Kernel/mysql/SchemaTest.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$string_check might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/mysql/tests/src/Kernel/mysql/SchemaTest.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\node\\\\ConfigTranslation\\\\NodeTypeMapper\\:\\:setEntity\\(\\) should return bool but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/node/src/ConfigTranslation/NodeTypeMapper.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\node\\\\NodeForm\\:\\:save\\(\\) should return int but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/node/src/NodeForm.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\node\\\\NodeGrantDatabaseStorage\\:\\:alterQuery\\(\\) should return int but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/node/src/NodeGrantDatabaseStorage.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\node\\\\NodeTypeForm\\:\\:save\\(\\) should return int but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/node/src/NodeTypeForm.php', ]; $ignoreErrors[] = [ + // identifier: empty.variable 'message' => '#^Variable \\$node in empty\\(\\) always exists and is not falsy\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/node/src/Plugin/views/row/Rss.php', ]; $ignoreErrors[] = [ + // identifier: isset.variable 'message' => '#^Variable \\$changed in isset\\(\\) always exists and is not nullable\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeTest.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\options\\\\Plugin\\\\Field\\\\FieldType\\\\ListFloatItem\\:\\:validateAllowedValue\\(\\) should return string but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/options/src/Plugin/Field/FieldType/ListFloatItem.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\options\\\\Plugin\\\\Field\\\\FieldType\\\\ListIntegerItem\\:\\:validateAllowedValue\\(\\) should return string but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/options/src/Plugin/Field/FieldType/ListIntegerItem.php', ]; $ignoreErrors[] = [ + // identifier: property.notFound 'message' => '#^Access to an undefined property Drupal\\\\options\\\\Plugin\\\\Field\\\\FieldType\\\\ListItemBase\\:\\:\\$value\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/options/src/Plugin/Field/FieldType/ListItemBase.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\options\\\\Plugin\\\\Field\\\\FieldType\\\\ListItemBase\\:\\:validateAllowedValue\\(\\) should return string but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/options/src/Plugin/Field/FieldType/ListItemBase.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\options\\\\Plugin\\\\Field\\\\FieldType\\\\ListStringItem\\:\\:validateAllowedValue\\(\\) should return string but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/options/src/Plugin/Field/FieldType/ListStringItem.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\path\\\\PathAliasForm\\:\\:save\\(\\) should return int but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/path/src/PathAliasForm.php', ]; $ignoreErrors[] = [ + // identifier: property.notFound 'message' => '#^Access to an undefined property Drupal\\\\path\\\\Plugin\\\\Field\\\\FieldType\\\\PathItem\\:\\:\\$alias\\.$#', 'count' => 3, 'path' => __DIR__ . '/modules/path/src/Plugin/Field/FieldType/PathItem.php', ]; $ignoreErrors[] = [ + // identifier: property.notFound 'message' => '#^Access to an undefined property Drupal\\\\path\\\\Plugin\\\\Field\\\\FieldType\\\\PathItem\\:\\:\\$langcode\\.$#', 'count' => 2, 'path' => __DIR__ . '/modules/path/src/Plugin/Field/FieldType/PathItem.php', ]; $ignoreErrors[] = [ + // identifier: property.notFound 'message' => '#^Access to an undefined property Drupal\\\\path\\\\Plugin\\\\Field\\\\FieldType\\\\PathItem\\:\\:\\$pid\\.$#', 'count' => 5, 'path' => __DIR__ . '/modules/path/src/Plugin/Field/FieldType/PathItem.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\path\\\\Plugin\\\\Field\\\\FieldType\\\\PathItem\\:\\:postSave\\(\\) should return bool but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/path/src/Plugin/Field/FieldType/PathItem.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$table_field might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/pgsql/src/Driver/Database/pgsql/Select.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\pgsql\\\\Driver\\\\Database\\\\pgsql\\\\Upsert\\:\\:execute\\(\\) should return int but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/pgsql/src/Driver/Database/pgsql/Upsert.php', ]; $ignoreErrors[] = [ + // identifier: empty.variable 'message' => '#^Variable \\$responsive_image_styles in empty\\(\\) always exists and is not falsy\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/responsive_image/src/Plugin/Field/FieldFormatter/ResponsiveImageFormatter.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\responsive_image\\\\ResponsiveImageStyleForm\\:\\:save\\(\\) should return int but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/responsive_image/src/ResponsiveImageStyleForm.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$created_entity might not be defined\\.$#', 'count' => 4, 'path' => __DIR__ . '/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$working_to might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/search/search.module', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\search\\\\Form\\\\SearchPageAddForm\\:\\:save\\(\\) should return int but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/search/src/Form/SearchPageAddForm.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\search\\\\Form\\\\SearchPageEditForm\\:\\:save\\(\\) should return int but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/search/src/Form/SearchPageEditForm.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\search\\\\Form\\\\SearchPageFormBase\\:\\:save\\(\\) should return int but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/search/src/Form/SearchPageFormBase.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\search\\\\SearchPageRepository\\:\\:setDefaultSearchPage\\(\\) should return static\\(Drupal\\\\search\\\\SearchPageRepository\\) but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/search/src/SearchPageRepository.php', ]; $ignoreErrors[] = [ + // identifier: method.notFound 'message' => '#^Call to an undefined method Drupal\\\\serialization\\\\Normalizer\\\\EntityNormalizer\\:\\:getCustomSerializedPropertyNames\\(\\)\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/serialization/src/Normalizer/EntityNormalizer.php', ]; $ignoreErrors[] = [ + // identifier: method.deprecated 'message' => '#^Call to deprecated method getMockForAbstractClass\\(\\) of class PHPUnit\\\\Framework\\\\TestCase\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/serialization/tests/src/Unit/Normalizer/NormalizerBaseTest.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\shortcut\\\\Form\\\\SetCustomize\\:\\:save\\(\\) should return int but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/shortcut/src/Form/SetCustomize.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\shortcut\\\\ShortcutForm\\:\\:save\\(\\) should return int but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/shortcut/src/ShortcutForm.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\shortcut\\\\ShortcutSetForm\\:\\:save\\(\\) should return int but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/shortcut/src/ShortcutSetForm.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$args might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/sqlite/src/Driver/Database/sqlite/Connection.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$statement might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/sqlite/src/Driver/Database/sqlite/Connection.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\system\\\\Controller\\\\BatchController\\:\\:batchPage\\(\\) should return array\\|Symfony\\\\Component\\\\HttpFoundation\\\\Response but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/system/src/Controller/BatchController.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\system\\\\Form\\\\DateFormatFormBase\\:\\:save\\(\\) should return int but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/system/src/Form/DateFormatFormBase.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\system\\\\Form\\\\ModulesListNonStableConfirmForm\\:\\:getQuestion\\(\\) should return Drupal\\\\Core\\\\StringTranslation\\\\TranslatableMarkup but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/system/src/Form/ModulesListNonStableConfirmForm.php', ]; $ignoreErrors[] = [ + // identifier: isset.variable 'message' => '#^Variable \\$default_theme in isset\\(\\) always exists and is not nullable\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/system/src/Form/ThemeSettingsForm.php', ]; $ignoreErrors[] = [ + // identifier: isset.variable 'message' => '#^Variable \\$theme_settings in isset\\(\\) always exists and is not nullable\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/system/src/Plugin/migrate/destination/d7/ThemeSettings.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$violation_messages might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/system/src/SecurityAdvisories/SecurityAdvisory.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$directories might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/system/system.install', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$pdo_message might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/system/system.install', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$site_path might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/system/system.install', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$messages might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/system/tests/modules/batch_test/batch_test.callbacks.inc', ]; $ignoreErrors[] = [ + // identifier: function.deprecated 'message' => '#^Call to deprecated function deprecation_test_function\\(\\)\\: in drupal\\:8\\.4\\.0 and is removed from drupal\\:9\\.0\\.0\\. This is the deprecation message for deprecated_test_function\\(\\)\\.$#', @@ -1454,11 +1738,13 @@ 'path' => __DIR__ . '/modules/system/tests/modules/deprecation_test/src/DeprecatedController.php', ]; $ignoreErrors[] = [ + // identifier: constructor.unusedParameter 'message' => '#^Constructor of class Drupal\\\\lazy_route_provider_install_test\\\\PluginManager has an unused parameter \\$cache_backend\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/system/tests/modules/lazy_route_provider_install_test/src/PluginManager.php', ]; $ignoreErrors[] = [ + // identifier: constructor.unusedParameter 'message' => '#^Constructor of class Drupal\\\\lazy_route_provider_install_test\\\\PluginManager has an unused parameter \\$url_generator\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/system/tests/modules/lazy_route_provider_install_test/src/PluginManager.php', @@ -1489,657 +1775,788 @@ 'path' => __DIR__ . '/modules/system/tests/modules/plugin_test/src/Plugin/TestPluginManager.php', ]; $ignoreErrors[] = [ + // identifier: property.notFound 'message' => '#^Access to an undefined property Drupal\\\\Tests\\\\system\\\\Functional\\\\FileTransfer\\\\TestFileTransfer\\:\\:\\$connection\\.$#', 'count' => 5, 'path' => __DIR__ . '/modules/system/tests/src/Functional/FileTransfer/TestFileTransfer.php', ]; $ignoreErrors[] = [ + // identifier: empty.variable 'message' => '#^Variable \\$form_output in empty\\(\\) always exists and is not falsy\\.$#', 'count' => 2, 'path' => __DIR__ . '/modules/system/tests/src/Functional/Form/FormTest.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$parent might not be defined\\.$#', 'count' => 3, 'path' => __DIR__ . '/modules/system/tests/src/Functional/Menu/BreadcrumbTest.php', ]; $ignoreErrors[] = [ + // identifier: empty.variable 'message' => '#^Variable \\$test_meta in empty\\(\\) always exists and is not falsy\\.$#', 'count' => 2, 'path' => __DIR__ . '/modules/system/tests/src/Functional/Render/HtmlResponseAttachmentsTest.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$expected_required_list_items might not be defined\\.$#', 'count' => 2, 'path' => __DIR__ . '/modules/system/tests/src/Functional/Theme/ThemeUiTest.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\taxonomy\\\\Plugin\\\\migrate\\\\source\\\\d7\\\\TermTranslation\\:\\:prepareRow\\(\\) should return bool but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/taxonomy/src/Plugin/migrate/source/d7/TermTranslation.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$inner_count might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/taxonomy/src/Plugin/views/argument/IndexTidDepth.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$inner_count might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/taxonomy/src/Plugin/views/filter/TaxonomyIndexTidDepth.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\taxonomy\\\\TermForm\\:\\:save\\(\\) should return int but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/taxonomy/src/TermForm.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\taxonomy\\\\TermForm\\:\\:validateForm\\(\\) should return Drupal\\\\Core\\\\Entity\\\\ContentEntityInterface but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/taxonomy/src/TermForm.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\taxonomy\\\\VocabularyForm\\:\\:save\\(\\) should return int but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/taxonomy/src/VocabularyForm.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$violation_messages might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/update/src/ProjectRelease.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$users might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/user/src/Controller/UserAuthenticationController.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$route_object might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/user/src/Plugin/LanguageNegotiation/LanguageNegotiationUserAdmin.php', ]; $ignoreErrors[] = [ + // identifier: isset.variable 'message' => '#^Variable \\$account in isset\\(\\) always exists and is not nullable\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/user/src/Plugin/Validation/Constraint/ProtectedUserFieldConstraintValidator.php', ]; $ignoreErrors[] = [ + // identifier: isset.variable 'message' => '#^Variable \\$account in isset\\(\\) always exists and is not nullable\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/user/src/Plugin/Validation/Constraint/UserMailRequiredValidator.php', ]; $ignoreErrors[] = [ + // identifier: isset.variable 'message' => '#^Variable \\$items in isset\\(\\) always exists and is not nullable\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/user/src/Plugin/Validation/Constraint/UserMailRequiredValidator.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\user\\\\Plugin\\\\views\\\\field\\\\UserData\\:\\:render\\(\\) should return Drupal\\\\Component\\\\Render\\\\MarkupInterface\\|string but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/user/src/Plugin/views/field/UserData.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\user\\\\ProfileForm\\:\\:save\\(\\) should return int but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/user/src/ProfileForm.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\user\\\\RegisterForm\\:\\:save\\(\\) should return int but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/user/src/RegisterForm.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\user\\\\RoleForm\\:\\:save\\(\\) should return int but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/user/src/RoleForm.php', ]; $ignoreErrors[] = [ + // identifier: isset.variable 'message' => '#^Variable \\$name in isset\\(\\) always exists and is not nullable\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/user/tests/src/Functional/UserLoginHttpTest.php', ]; $ignoreErrors[] = [ + // identifier: isset.variable 'message' => '#^Variable \\$pass in isset\\(\\) always exists and is not nullable\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/user/tests/src/Functional/UserLoginHttpTest.php', ]; $ignoreErrors[] = [ + // identifier: method.notFound 'message' => '#^Call to an undefined method Drupal\\\\Tests\\\\user\\\\Functional\\\\UserRegistrationRestTest\\:\\:getExpectedUnauthorizedEntityAccessCacheability\\(\\)\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/user/tests/src/Functional/UserRegistrationRestTest.php', ]; $ignoreErrors[] = [ + // identifier: isset.variable 'message' => '#^Variable \\$result in isset\\(\\) always exists and is not nullable\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/user/tests/src/Unit/UserAccessControlHandlerTest.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\views\\\\Form\\\\ViewsFormMainForm\\:\\:getFormId\\(\\) should return string but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/src/Form/ViewsFormMainForm.php', ]; $ignoreErrors[] = [ + // identifier: isset.variable 'message' => '#^Variable \\$display in isset\\(\\) always exists and is not nullable\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/src/Plugin/Derivative/ViewsBlock.php', ]; $ignoreErrors[] = [ + // identifier: method.notFound 'message' => '#^Call to an undefined method \\$this\\(Drupal\\\\views\\\\Plugin\\\\views\\\\HandlerBase\\)\\:\\:getFormula\\(\\)\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/src/Plugin/views/HandlerBase.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\views\\\\Plugin\\\\views\\\\HandlerBase\\:\\:getTableJoin\\(\\) should return Drupal\\\\views\\\\Plugin\\\\views\\\\join\\\\JoinPluginBase but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/src/Plugin/views/HandlerBase.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$group_types might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/src/Plugin/views/HandlerBase.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$items might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/src/Plugin/views/area/Broken.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\views\\\\Plugin\\\\views\\\\area\\\\HTTPStatusCode\\:\\:render\\(\\) should return array but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/src/Plugin/views/area/HTTPStatusCode.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$validate_types might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$items might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/src/Plugin/views/argument/Broken.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\views\\\\Plugin\\\\views\\\\cache\\\\CachePluginBase\\:\\:cacheGet\\(\\) should return bool but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/src/Plugin/views/cache/CachePluginBase.php', ]; $ignoreErrors[] = [ + // identifier: constructor.unusedParameter 'message' => '#^Constructor of class Drupal\\\\views\\\\Plugin\\\\views\\\\display\\\\DisplayPluginBase has an unused parameter \\$configuration\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/src/Plugin/views/display/DisplayPluginBase.php', ]; $ignoreErrors[] = [ + // identifier: isset.variable 'message' => '#^Variable \\$pager in isset\\(\\) always exists and is not nullable\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/src/Plugin/views/display/DisplayPluginBase.php', ]; $ignoreErrors[] = [ + // identifier: empty.variable 'message' => '#^Variable \\$style in empty\\(\\) always exists and is not falsy\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/src/Plugin/views/display/DisplayPluginBase.php', ]; $ignoreErrors[] = [ + // identifier: isset.variable 'message' => '#^Variable \\$access_plugin in isset\\(\\) always exists and is not nullable\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/src/Plugin/views/display/PathPluginBase.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$options might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/src/Plugin/views/field/Boolean.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$items might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/src/Plugin/views/field/Broken.php', ]; $ignoreErrors[] = [ + // identifier: empty.variable 'message' => '#^Variable \\$entity in empty\\(\\) always exists and is not falsy\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/src/Plugin/views/field/BulkForm.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\views\\\\Plugin\\\\views\\\\field\\\\Date\\:\\:render\\(\\) should return Drupal\\\\Component\\\\Render\\\\MarkupInterface\\|string but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/src/Plugin/views/field/Date.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$custom_format might not be defined\\.$#', 'count' => 9, 'path' => __DIR__ . '/modules/views/src/Plugin/views/field/Date.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\views\\\\Plugin\\\\views\\\\field\\\\EntityField\\:\\:renderItems\\(\\) should return string but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/src/Plugin/views/field/EntityField.php', ]; $ignoreErrors[] = [ + // identifier: isset.variable 'message' => '#^Variable \\$field_item_list in isset\\(\\) always exists and is not nullable\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/src/Plugin/views/field/EntityField.php', ]; $ignoreErrors[] = [ + // identifier: empty.variable 'message' => '#^Variable \\$options in empty\\(\\) always exists and is not falsy\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/src/Plugin/views/field/FieldPluginBase.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$raw_items might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/src/Plugin/views/field/FieldPluginBase.php', ]; $ignoreErrors[] = [ + // identifier: isset.variable 'message' => '#^Variable \\$style in isset\\(\\) always exists and is not nullable\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/src/Plugin/views/field/FieldPluginBase.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\views\\\\Plugin\\\\views\\\\field\\\\Markup\\:\\:render\\(\\) should return Drupal\\\\Component\\\\Render\\\\MarkupInterface\\|string but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/src/Plugin/views/field/Markup.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\views\\\\Plugin\\\\views\\\\field\\\\PrerenderList\\:\\:renderItems\\(\\) should return string but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/src/Plugin/views/field/PrerenderList.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$items might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/src/Plugin/views/filter/Broken.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$groups might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/src/Plugin/views/filter/FilterPluginBase.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$source might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/src/Plugin/views/filter/InOperator.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$source might not be defined\\.$#', 'count' => 2, 'path' => __DIR__ . '/modules/views/src/Plugin/views/filter/NumericFilter.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$source might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/src/Plugin/views/filter/StringFilter.php', ]; $ignoreErrors[] = [ + // identifier: isset.variable 'message' => '#^Variable \\$left in isset\\(\\) always exists and is not nullable\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/src/Plugin/views/join/JoinPluginBase.php', ]; $ignoreErrors[] = [ + // identifier: empty.variable 'message' => '#^Variable \\$join in empty\\(\\) always exists and is not falsy\\.$#', 'count' => 2, 'path' => __DIR__ . '/modules/views/src/Plugin/views/query/Sql.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$items might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/src/Plugin/views/relationship/Broken.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$sort_field might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/src/Plugin/views/relationship/GroupwiseMax.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$sort_table might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/src/Plugin/views/relationship/GroupwiseMax.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$items might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/src/Plugin/views/sort/Broken.php', ]; $ignoreErrors[] = [ + // identifier: empty.variable 'message' => '#^Variable \\$plugin in empty\\(\\) always exists and is not falsy\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/src/Plugin/views/style/StylePluginBase.php', ]; $ignoreErrors[] = [ + // identifier: isset.variable 'message' => '#^Variable \\$created_column in isset\\(\\) always exists and is not nullable\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/src/Plugin/views/wizard/WizardPluginBase.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$default_field might not be defined\\.$#', 'count' => 6, 'path' => __DIR__ . '/modules/views/src/Plugin/views/wizard/WizardPluginBase.php', ]; $ignoreErrors[] = [ + // identifier: empty.variable 'message' => '#^Variable \\$sorts in empty\\(\\) always exists and is not falsy\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/src/Plugin/views/wizard/WizardPluginBase.php', ]; $ignoreErrors[] = [ + // identifier: isset.variable 'message' => '#^Variable \\$style_plugin in isset\\(\\) always exists and is not nullable\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/src/Plugin/views/wizard/WizardPluginBase.php', ]; $ignoreErrors[] = [ + // identifier: empty.variable 'message' => '#^Variable \\$view in empty\\(\\) always exists and is not falsy\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/src/Plugin/views/wizard/WizardPluginBase.php', ]; $ignoreErrors[] = [ + // identifier: isset.variable 'message' => '#^Variable \\$view in isset\\(\\) always exists and is not nullable\\.$#', 'count' => 2, 'path' => __DIR__ . '/modules/views/tests/modules/views_test_data/views_test_data.views_execution.inc', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$link might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/tests/src/Functional/TaxonomyGlossaryTest.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$rand1 might not be defined\\.$#', 'count' => 2, 'path' => __DIR__ . '/modules/views/tests/src/Kernel/Plugin/StyleTest.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$rand2 might not be defined\\.$#', 'count' => 2, 'path' => __DIR__ . '/modules/views/tests/src/Kernel/Plugin/StyleTest.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$rand3 might not be defined\\.$#', 'count' => 2, 'path' => __DIR__ . '/modules/views/tests/src/Kernel/Plugin/StyleTest.php', ]; $ignoreErrors[] = [ + // identifier: method.deprecated 'message' => '#^Call to deprecated method getMockForAbstractClass\\(\\) of class PHPUnit\\\\Framework\\\\MockObject\\\\MockBuilder\\.$#', 'count' => 5, 'path' => __DIR__ . '/modules/views/tests/src/Unit/Plugin/Derivative/ViewsLocalTaskTest.php', ]; $ignoreErrors[] = [ + // identifier: method.deprecated 'message' => '#^Call to deprecated method getMockForAbstractClass\\(\\) of class PHPUnit\\\\Framework\\\\TestCase\\.$#', 'count' => 2, 'path' => __DIR__ . '/modules/views/tests/src/Unit/Plugin/argument_validator/EntityTest.php', ]; $ignoreErrors[] = [ + // identifier: method.deprecated 'message' => '#^Call to deprecated method getMockForAbstractClass\\(\\) of class PHPUnit\\\\Framework\\\\MockObject\\\\MockBuilder\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/tests/src/Unit/Plugin/display/PathPluginBaseTest.php', ]; $ignoreErrors[] = [ + // identifier: method.deprecated 'message' => '#^Call to deprecated method getMockForAbstractClass\\(\\) of class PHPUnit\\\\Framework\\\\MockObject\\\\MockBuilder\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/tests/src/Unit/Plugin/pager/PagerPluginBaseTest.php', ]; $ignoreErrors[] = [ + // identifier: method.deprecated 'message' => '#^Call to deprecated method getMockForAbstractClass\\(\\) of class PHPUnit\\\\Framework\\\\MockObject\\\\MockBuilder\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/tests/src/Unit/Plugin/pager/SqlBaseTest.php', ]; $ignoreErrors[] = [ + // identifier: method.deprecated 'message' => '#^Call to deprecated method getMockForAbstractClass\\(\\) of class PHPUnit\\\\Framework\\\\MockObject\\\\MockBuilder\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views/tests/src/Unit/Plugin/views/field/EntityOperationsUnitTest.php', ]; $ignoreErrors[] = [ + // identifier: empty.variable 'message' => '#^Variable \\$relationship_handler in empty\\(\\) always exists and is not falsy\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views_ui/src/Form/Ajax/ConfigHandler.php', ]; $ignoreErrors[] = [ + // identifier: unset.offset 'message' => '#^Cannot unset offset \'\\#title\' on array\\{\\#theme_wrappers\\: array\\{\'container\'\\}, \\#attributes\\: array\\{class\\: array\\{\'scroll\'\\}, data\\-drupal\\-views\\-scroll\\: true\\}\\}\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views_ui/src/Form/Ajax/Display.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\views_ui\\\\ViewEditForm\\:\\:save\\(\\) should return int but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views_ui/src/ViewEditForm.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$group_info might not be defined\\.$#', 'count' => 2, 'path' => __DIR__ . '/modules/views_ui/src/ViewEditForm.php', ]; $ignoreErrors[] = [ + // identifier: empty.variable 'message' => '#^Variable \\$display_plugin in empty\\(\\) always exists and is not falsy\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views_ui/src/ViewFormBase.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\views_ui\\\\ViewUI\\:\\:getTypedData\\(\\) should return Drupal\\\\Core\\\\TypedData\\\\ComplexDataInterface but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views_ui/src/ViewUI.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\views_ui\\\\ViewUI\\:\\:set\\(\\) should return \\$this\\(Drupal\\\\views_ui\\\\ViewUI\\) but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views_ui/src/ViewUI.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\views_ui\\\\ViewUI\\:\\:setSyncing\\(\\) should return \\$this\\(Drupal\\\\views_ui\\\\ViewUI\\) but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views_ui/src/ViewUI.php', ]; $ignoreErrors[] = [ + // identifier: isset.variable 'message' => '#^Variable \\$message in isset\\(\\) always exists and is not nullable\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/views_ui/tests/src/FunctionalJavascript/PreviewTest.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\workflows\\\\Form\\\\WorkflowEditForm\\:\\:save\\(\\) should return int but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/workflows/src/Form/WorkflowEditForm.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\workflows\\\\Form\\\\WorkflowStateAddForm\\:\\:save\\(\\) should return int but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/workflows/src/Form/WorkflowStateAddForm.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\workflows\\\\Form\\\\WorkflowStateEditForm\\:\\:save\\(\\) should return int but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/workflows/src/Form/WorkflowStateEditForm.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\workflows\\\\Form\\\\WorkflowTransitionAddForm\\:\\:save\\(\\) should return int but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/workflows/src/Form/WorkflowTransitionAddForm.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\workflows\\\\Form\\\\WorkflowTransitionEditForm\\:\\:save\\(\\) should return int but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/workflows/src/Form/WorkflowTransitionEditForm.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\workspaces\\\\EntityTypeInfo\\:\\:entityBaseFieldInfo\\(\\) should return array\\<Drupal\\\\Core\\\\Field\\\\FieldDefinitionInterface\\> but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/workspaces/src/EntityTypeInfo.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\workspaces\\\\Form\\\\WorkspaceForm\\:\\:save\\(\\) should return int but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/workspaces/src/Form/WorkspaceForm.php', ]; $ignoreErrors[] = [ + // identifier: isset.variable 'message' => '#^Variable \\$value in isset\\(\\) always exists and is not nullable\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/workspaces/src/Plugin/Validation/Constraint/DeletedWorkspaceConstraintValidator.php', ]; $ignoreErrors[] = [ + // identifier: isset.variable 'message' => '#^Variable \\$entity in isset\\(\\) always exists and is not nullable\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/workspaces/src/Plugin/Validation/Constraint/EntityWorkspaceConflictConstraintValidator.php', ]; $ignoreErrors[] = [ + // identifier: isset.variable 'message' => '#^Variable \\$transaction in isset\\(\\) always exists and is not nullable\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/workspaces/src/WorkspaceAssociation.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\workspaces\\\\WorkspaceMerger\\:\\:checkConflictsOnTarget\\(\\) should return array but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/workspaces/src/WorkspaceMerger.php', ]; $ignoreErrors[] = [ + // identifier: isset.variable 'message' => '#^Variable \\$transaction in isset\\(\\) always exists and is not nullable\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/workspaces/src/WorkspaceMerger.php', ]; $ignoreErrors[] = [ + // identifier: return.missing 'message' => '#^Method Drupal\\\\workspaces\\\\WorkspacePublisher\\:\\:checkConflictsOnTarget\\(\\) should return array but return statement is missing\\.$#', 'count' => 1, 'path' => __DIR__ . '/modules/workspaces/src/WorkspacePublisher.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$keyed_content might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/profiles/demo_umami/modules/demo_umami_content/src/InstallHelper.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$structured_content might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/profiles/demo_umami/modules/demo_umami_content/src/InstallHelper.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$project_stabilities might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/BuildTests/Composer/Template/ComposerProjectTemplatesTest.php', ]; $ignoreErrors[] = [ + // identifier: method.deprecated 'message' => '#^Call to deprecated method getMockForAbstractClass\\(\\) of class PHPUnit\\\\Framework\\\\MockObject\\\\MockBuilder\\.$#', 'count' => 2, 'path' => __DIR__ . '/tests/Drupal/BuildTests/Framework/Tests/BuildTestTest.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$found might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Cache/ApcuBackendTest.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$expected_driver might not be defined\\.$#', 'count' => 2, 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Database/DriverSpecificKernelTestBase.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$title might not be defined\\.$#', 'count' => 2, 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Entity/CreateSampleEntityTest.php', ]; $ignoreErrors[] = [ + // identifier: isset.variable 'message' => '#^Variable \\$previous_untranslatable_field_value in isset\\(\\) always exists and is not nullable\\.$#', 'count' => 2, 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Entity/EntityDecoupledTranslationRevisionsTest.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$e might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Entity/FieldableEntityDefinitionUpdateTest.php', ]; $ignoreErrors[] = [ + // identifier: variable.undefined 'message' => '#^Variable \\$new_field_schema_data might not be defined\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Entity/FieldableEntityDefinitionUpdateTest.php', ]; $ignoreErrors[] = [ + // identifier: method.deprecated 'message' => '#^Call to deprecated method getMockForAbstractClass\\(\\) of class PHPUnit\\\\Framework\\\\MockObject\\\\MockBuilder\\.$#', 'count' => 2, 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Installer/InstallerRedirectTraitTest.php', ]; $ignoreErrors[] = [ + // identifier: method.deprecated 'message' => '#^Call to deprecated method getMockForAbstractClass\\(\\) of class PHPUnit\\\\Framework\\\\TestCase\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/KernelTests/Core/Installer/InstallerRedirectTraitTest.php', ]; $ignoreErrors[] = [ + // identifier: isset.variable 'message' => '#^Variable \\$value in isset\\(\\) always exists and is not nullable\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/KernelTests/KernelTestBase.php', ]; $ignoreErrors[] = [ + // identifier: method.notFound 'message' => '#^Call to an undefined method Drupal\\\\TestSite\\\\Commands\\\\TestSiteInstallCommand\\:\\:assertTrue\\(\\)\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/TestSite/Commands/TestSiteInstallCommand.php', ]; $ignoreErrors[] = [ + // identifier: method.notFound 'message' => '#^Call to an undefined method Drupal\\\\TestSite\\\\Commands\\\\TestSiteInstallCommand\\:\\:fail\\(\\)\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/TestSite/Commands/TestSiteInstallCommand.php', ]; $ignoreErrors[] = [ + // identifier: method.deprecated 'message' => '#^Call to deprecated method getConfig\\(\\) of class GuzzleHttp\\\\Client\\: Client\\:\\:getConfig will be removed in guzzlehttp/guzzle\\:8\\.0\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/BrowserTestBase.php', ]; $ignoreErrors[] = [ + // identifier: constructor.unusedParameter 'message' => '#^Constructor of class Symfony\\\\Component\\\\ExpressionLanguage\\\\Expression has an unused parameter \\$expression\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumperTest.php', ]; $ignoreErrors[] = [ + // identifier: constructor.unusedParameter 'message' => '#^Constructor of class Drupal\\\\Tests\\\\Component\\\\Plugin\\\\Factory\\\\ArgumentsAllNull has an unused parameter \\$charismatic\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Plugin/Factory/ReflectionFactoryTest.php', ]; $ignoreErrors[] = [ + // identifier: constructor.unusedParameter 'message' => '#^Constructor of class Drupal\\\\Tests\\\\Component\\\\Plugin\\\\Factory\\\\ArgumentsAllNull has an unused parameter \\$delightful\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Plugin/Factory/ReflectionFactoryTest.php', ]; $ignoreErrors[] = [ + // identifier: constructor.unusedParameter 'message' => '#^Constructor of class Drupal\\\\Tests\\\\Component\\\\Plugin\\\\Factory\\\\ArgumentsAllNull has an unused parameter \\$demure\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Plugin/Factory/ReflectionFactoryTest.php', ]; $ignoreErrors[] = [ + // identifier: constructor.unusedParameter 'message' => '#^Constructor of class Drupal\\\\Tests\\\\Component\\\\Plugin\\\\Factory\\\\ArgumentsAllNull has an unused parameter \\$electrostatic\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Plugin/Factory/ReflectionFactoryTest.php', ]; $ignoreErrors[] = [ + // identifier: constructor.unusedParameter 'message' => '#^Constructor of class Drupal\\\\Tests\\\\Component\\\\Plugin\\\\Factory\\\\ArgumentsConfigArrayKey has an unused parameter \\$config_name\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Plugin/Factory/ReflectionFactoryTest.php', ]; $ignoreErrors[] = [ + // identifier: constructor.unusedParameter 'message' => '#^Constructor of class Drupal\\\\Tests\\\\Component\\\\Plugin\\\\Factory\\\\ArgumentsMany has an unused parameter \\$configuration\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Plugin/Factory/ReflectionFactoryTest.php', ]; $ignoreErrors[] = [ + // identifier: constructor.unusedParameter 'message' => '#^Constructor of class Drupal\\\\Tests\\\\Component\\\\Plugin\\\\Factory\\\\ArgumentsMany has an unused parameter \\$foo\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Plugin/Factory/ReflectionFactoryTest.php', ]; $ignoreErrors[] = [ + // identifier: constructor.unusedParameter 'message' => '#^Constructor of class Drupal\\\\Tests\\\\Component\\\\Plugin\\\\Factory\\\\ArgumentsMany has an unused parameter \\$plugin_definition\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Plugin/Factory/ReflectionFactoryTest.php', ]; $ignoreErrors[] = [ + // identifier: constructor.unusedParameter 'message' => '#^Constructor of class Drupal\\\\Tests\\\\Component\\\\Plugin\\\\Factory\\\\ArgumentsMany has an unused parameter \\$plugin_id\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Plugin/Factory/ReflectionFactoryTest.php', ]; $ignoreErrors[] = [ + // identifier: constructor.unusedParameter 'message' => '#^Constructor of class Drupal\\\\Tests\\\\Component\\\\Plugin\\\\Factory\\\\ArgumentsMany has an unused parameter \\$what_am_i_doing_here\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Plugin/Factory/ReflectionFactoryTest.php', ]; $ignoreErrors[] = [ + // identifier: constructor.unusedParameter 'message' => '#^Constructor of class Drupal\\\\Tests\\\\Component\\\\Plugin\\\\Factory\\\\ArgumentsPluginId has an unused parameter \\$plugin_id\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Plugin/Factory/ReflectionFactoryTest.php', ]; $ignoreErrors[] = [ + // identifier: method.deprecated 'message' => '#^Call to deprecated method getMockForAbstractClass\\(\\) of class PHPUnit\\\\Framework\\\\TestCase\\.$#', 'count' => 4, 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Plugin/PluginBaseTest.php', ]; $ignoreErrors[] = [ + // identifier: method.deprecated 'message' => '#^Call to deprecated method getMockForAbstractClass\\(\\) of class PHPUnit\\\\Framework\\\\MockObject\\\\MockBuilder\\.$#', 'count' => 2, 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Plugin/PluginManagerBaseTest.php', @@ -2150,92 +2567,110 @@ 'path' => __DIR__ . '/tests/Drupal/Tests/Component/Plugin/StubPluginManagerBaseWithMapper.php', ]; $ignoreErrors[] = [ + // identifier: staticMethod.void 'message' => '#^Result of static method Drupal\\\\Composer\\\\Composer\\:\\:ensureComposerVersion\\(\\) \\(void\\) is used\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Composer/ComposerTest.php', ]; $ignoreErrors[] = [ + // identifier: method.deprecated 'message' => '#^Call to deprecated method getMockForAbstractClass\\(\\) of class PHPUnit\\\\Framework\\\\TestCase\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityStorageTest.php', ]; $ignoreErrors[] = [ + // identifier: method.deprecated 'message' => '#^Call to deprecated method getMockForAbstractClass\\(\\) of class PHPUnit\\\\Framework\\\\TestCase\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Controller/ControllerBaseTest.php', ]; $ignoreErrors[] = [ + // identifier: method.deprecated 'message' => '#^Call to deprecated method getMockForAbstractClass\\(\\) of class PHPUnit\\\\Framework\\\\MockObject\\\\MockBuilder\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Entity/ContentEntityBaseUnitTest.php', ]; $ignoreErrors[] = [ + // identifier: method.deprecated 'message' => '#^Call to deprecated method getMockForAbstractClass\\(\\) of class PHPUnit\\\\Framework\\\\TestCase\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Entity/EntityFormTest.php', ]; $ignoreErrors[] = [ + // identifier: method.deprecated 'message' => '#^Call to deprecated method getMockForAbstractClass\\(\\) of class PHPUnit\\\\Framework\\\\TestCase\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Entity/EntityLinkTest.php', ]; $ignoreErrors[] = [ + // identifier: method.deprecated 'message' => '#^Call to deprecated method getMockForAbstractClass\\(\\) of class PHPUnit\\\\Framework\\\\MockObject\\\\MockBuilder\\.$#', 'count' => 2, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Entity/EntityStorageBaseTest.php', ]; $ignoreErrors[] = [ + // identifier: method.deprecated 'message' => '#^Call to deprecated method getMockForAbstractClass\\(\\) of class PHPUnit\\\\Framework\\\\TestCase\\.$#', 'count' => 2, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Entity/EntityTypeManagerTest.php', ]; $ignoreErrors[] = [ + // identifier: method.deprecated 'message' => '#^Call to deprecated method getMockForAbstractClass\\(\\) of class PHPUnit\\\\Framework\\\\TestCase\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php', ]; $ignoreErrors[] = [ + // identifier: method.deprecated 'message' => '#^Call to deprecated method getMockForAbstractClass\\(\\) of class PHPUnit\\\\Framework\\\\MockObject\\\\MockBuilder\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Entity/EntityUrlTest.php', ]; $ignoreErrors[] = [ + // identifier: phpunit.mockMethod 'message' => '#^Trying to mock an undefined method getRevisionId\\(\\) on class Drupal\\\\Tests\\\\Core\\\\Entity\\\\UrlTestEntity\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Entity/EntityUrlTest.php', ]; $ignoreErrors[] = [ + // identifier: phpunit.mockMethod 'message' => '#^Trying to mock an undefined method isDefaultRevision\\(\\) on class Drupal\\\\Tests\\\\Core\\\\Entity\\\\UrlTestEntity\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Entity/EntityUrlTest.php', ]; $ignoreErrors[] = [ + // identifier: method.deprecated 'message' => '#^Call to deprecated method getMockForAbstractClass\\(\\) of class PHPUnit\\\\Framework\\\\TestCase\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Entity/KeyValueStore/KeyValueEntityStorageTest.php', ]; $ignoreErrors[] = [ + // identifier: method.deprecated 'message' => '#^Call to deprecated method getMockForAbstractClass\\(\\) of class PHPUnit\\\\Framework\\\\MockObject\\\\MockBuilder\\.$#', 'count' => 3, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageTest.php', ]; $ignoreErrors[] = [ + // identifier: method.deprecated 'message' => '#^Call to deprecated method getConfig\\(\\) of class GuzzleHttp\\\\Client\\: Client\\:\\:getConfig will be removed in guzzlehttp/guzzle\\:8\\.0\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Http/ClientFactoryTest.php', ]; $ignoreErrors[] = [ + // identifier: method.deprecated 'message' => '#^Call to deprecated method getMockForAbstractClass\\(\\) of class PHPUnit\\\\Framework\\\\TestCase\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Lock/LockBackendAbstractTest.php', ]; $ignoreErrors[] = [ + // identifier: class.notFound 'message' => '#^Call to method getDefinitions\\(\\) on an unknown class Drupal\\\\Core\\\\Plugin\\\\CategorizingPluginManagerTrait\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Plugin/CategorizingPluginManagerTraitTest.php', ]; $ignoreErrors[] = [ + // identifier: class.notFound 'message' => '#^Call to method getSortedDefinitions\\(\\) on an unknown class Drupal\\\\Core\\\\Plugin\\\\CategorizingPluginManagerTrait\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Plugin/CategorizingPluginManagerTraitTest.php', @@ -2246,6 +2681,7 @@ 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Plugin/CategorizingPluginManagerTraitTest.php', ]; $ignoreErrors[] = [ + // identifier: constructor.unusedParameter 'message' => '#^Constructor of class Drupal\\\\Tests\\\\Core\\\\Plugin\\\\Discovery\\\\TestContainerDerivativeDiscovery has an unused parameter \\$example_service\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Plugin/Discovery/TestContainerDerivativeDiscovery.php', @@ -2256,6 +2692,7 @@ 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Plugin/FilteredPluginManagerTraitTest.php', ]; $ignoreErrors[] = [ + // identifier: constructor.unusedParameter 'message' => '#^Constructor of class Drupal\\\\Tests\\\\Core\\\\Plugin\\\\TestPluginManager has an unused parameter \\$namespaces\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Plugin/TestPluginManager.php', @@ -2266,12 +2703,14 @@ 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Plugin/TestPluginManager.php', ]; $ignoreErrors[] = [ + // identifier: isset.variable 'message' => '#^Variable \\$value in isset\\(\\) always exists and is not nullable\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/Core/Test/AssertContentTraitTest.php', ]; $ignoreErrors[] = [ - 'message' => '#^Call to deprecated method getConfig\\(\\) of class GuzzleHttp\\\\ClientInterface\\: + // identifier: method.deprecated + 'message' => '#^Call to deprecated method getConfig\\(\\) of interface GuzzleHttp\\\\ClientInterface\\: ClientInterface\\:\\:getConfig will be removed in guzzlehttp/guzzle\\:8\\.0\\.$#', 'count' => 1, 'path' => __DIR__ . '/tests/Drupal/Tests/DrupalTestBrowser.php', diff --git a/core/tests/PHPStan/composer.json b/core/tests/PHPStan/composer.json index f59e19499771b4a104c61fc80431f484af18151c..61b2d3b5cb9beda214ec8217c1d553e72b480e49 100644 --- a/core/tests/PHPStan/composer.json +++ b/core/tests/PHPStan/composer.json @@ -3,7 +3,7 @@ "description": "Tests Drupal core's PHPStan rules", "require-dev": { "phpunit/phpunit": "^9", - "phpstan/phpstan": "1.10.66" + "phpstan/phpstan": "1.11.1" }, "license": "GPL-2.0-or-later", "autoload": {