From 6a3bddd0be484d6c637547eb89671bd75cfdb5f9 Mon Sep 17 00:00:00 2001 From: catch <catch@35733.no-reply.drupal.org> Date: Fri, 25 Aug 2023 15:59:54 +0100 Subject: [PATCH] Issue #3383279 by Spokje, bbrala: Bump mglaman/phpstan-drupal to latest to make daily "updated deps" QA run pass again --- composer.json | 2 +- composer.lock | 64 +- .../Metapackage/DevDependencies/composer.json | 2 +- .../PinnedDevDependencies/composer.json | 3 +- core/phpstan-baseline.neon | 1150 +++++++++++++++++ 5 files changed, 1210 insertions(+), 11 deletions(-) diff --git a/composer.json b/composer.json index 992fa1d61888..86b6c85e0462 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,7 @@ "drupal/coder": "^8.3.10", "instaclick/php-webdriver": "^1.4.1", "justinrainbow/json-schema": "^5.2", - "mglaman/phpstan-drupal": "^1.1.36", + "mglaman/phpstan-drupal": "^1.2", "mikey179/vfsstream": "^1.6.11", "open-telemetry/exporter-otlp": "@beta", "open-telemetry/sdk": "@beta", diff --git a/composer.lock b/composer.lock index c9538ca822c2..fffd58081c5f 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": "d5d9a4f206c270584532c37f9ec140fc", + "content-hash": "1023c262eb294df10ca4ff80c6d3ceb6", "packages": [ { "name": "asm89/stack-cors", @@ -5419,21 +5419,22 @@ }, { "name": "mglaman/phpstan-drupal", - "version": "1.1.36", + "version": "1.2.0", "source": { "type": "git", "url": "https://github.com/mglaman/phpstan-drupal.git", - "reference": "345f7babd0cfd1ef73bb856673a1cee5a0dbd6e5" + "reference": "d721420086f146640acecebb7a678661a66e97d5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/mglaman/phpstan-drupal/zipball/345f7babd0cfd1ef73bb856673a1cee5a0dbd6e5", - "reference": "345f7babd0cfd1ef73bb856673a1cee5a0dbd6e5", + "url": "https://api.github.com/repos/mglaman/phpstan-drupal/zipball/d721420086f146640acecebb7a678661a66e97d5", + "reference": "d721420086f146640acecebb7a678661a66e97d5", "shasum": "" }, "require": { "php": "^7.4 || ^8.0", "phpstan/phpstan": "^1.10.1", + "phpstan/phpstan-deprecation-rules": "^1.1.4", "symfony/finder": "~3.4.5 ||^4.2 || ^5.0 || ^6.0", "symfony/yaml": "~3.4.5 || ^4.2|| ^5.0 || ^6.0", "webflo/drupal-finder": "^1.2" @@ -5444,7 +5445,6 @@ "drupal/core-recommended": "^8.8@alpha || ^9.0", "drush/drush": "^9.6 || ^10.0 || ^11", "phpstan/extension-installer": "^1.1", - "phpstan/phpstan-deprecation-rules": "^1.0", "phpstan/phpstan-strict-rules": "^1.0", "phpunit/phpunit": "^6.5 || ^7.5 || ^8.0 || ^9", "slevomat/coding-standard": "^7.1", @@ -5503,7 +5503,7 @@ "description": "Drupal extension and rules for PHPStan", "support": { "issues": "https://github.com/mglaman/phpstan-drupal/issues", - "source": "https://github.com/mglaman/phpstan-drupal/tree/1.1.36" + "source": "https://github.com/mglaman/phpstan-drupal/tree/1.2.0" }, "funding": [ { @@ -5519,7 +5519,7 @@ "type": "tidelift" } ], - "time": "2023-06-28T20:24:39+00:00" + "time": "2023-08-24T20:32:56+00:00" }, { "name": "mikey179/vfsstream", @@ -6838,6 +6838,54 @@ ], "time": "2023-07-05T12:32:13+00:00" }, + { + "name": "phpstan/phpstan-deprecation-rules", + "version": "1.1.4", + "source": { + "type": "git", + "url": "https://github.com/phpstan/phpstan-deprecation-rules.git", + "reference": "089d8a8258ed0aeefdc7b68b6c3d25572ebfdbaa" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpstan/phpstan-deprecation-rules/zipball/089d8a8258ed0aeefdc7b68b6c3d25572ebfdbaa", + "reference": "089d8a8258ed0aeefdc7b68b6c3d25572ebfdbaa", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0", + "phpstan/phpstan": "^1.10.3" + }, + "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" + }, + "type": "phpstan-extension", + "extra": { + "phpstan": { + "includes": [ + "rules.neon" + ] + } + }, + "autoload": { + "psr-4": { + "PHPStan\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "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" + }, + "time": "2023-08-05T09:02:04+00:00" + }, { "name": "phpstan/phpstan-phpunit", "version": "1.3.13", diff --git a/composer/Metapackage/DevDependencies/composer.json b/composer/Metapackage/DevDependencies/composer.json index f23b210a4187..ba2d6b5de98b 100644 --- a/composer/Metapackage/DevDependencies/composer.json +++ b/composer/Metapackage/DevDependencies/composer.json @@ -15,7 +15,7 @@ "drupal/coder": "^8.3.10", "instaclick/php-webdriver": "^1.4.1", "justinrainbow/json-schema": "^5.2", - "mglaman/phpstan-drupal": "^1.1.36", + "mglaman/phpstan-drupal": "^1.2", "mikey179/vfsstream": "^1.6.11", "open-telemetry/exporter-otlp": "@beta", "open-telemetry/sdk": "@beta", diff --git a/composer/Metapackage/PinnedDevDependencies/composer.json b/composer/Metapackage/PinnedDevDependencies/composer.json index 4c1f9f4f2c8f..e2b9a4dbfff2 100644 --- a/composer/Metapackage/PinnedDevDependencies/composer.json +++ b/composer/Metapackage/PinnedDevDependencies/composer.json @@ -25,7 +25,7 @@ "google/protobuf": "v3.23.3", "instaclick/php-webdriver": "1.4.16", "justinrainbow/json-schema": "5.2.12", - "mglaman/phpstan-drupal": "1.1.36", + "mglaman/phpstan-drupal": "1.2.0", "mikey179/vfsstream": "v1.6.11", "myclabs/deep-copy": "1.11.1", "nikic/php-parser": "v4.15.5", @@ -49,6 +49,7 @@ "phpstan/extension-installer": "1.3.1", "phpstan/phpdoc-parser": "1.20.4", "phpstan/phpstan": "1.10.24", + "phpstan/phpstan-deprecation-rules": "1.1.4", "phpstan/phpstan-phpunit": "1.3.13", "phpunit/php-code-coverage": "9.2.26", "phpunit/php-file-iterator": "3.0.6", diff --git a/core/phpstan-baseline.neon b/core/phpstan-baseline.neon index a3b1a5677908..d862eeca20fc 100644 --- a/core/phpstan-baseline.neon +++ b/core/phpstan-baseline.neon @@ -1,5 +1,13 @@ parameters: ignoreErrors: + - + message: """ + #^Call to deprecated method getComposer\\(\\) of class Composer\\\\Command\\\\BaseCommand\\: + since Composer 2\\.3\\.0 use requireComposer or tryComposer depending on whether you have \\$required set to true or false$# + """ + count: 1 + path: ../composer/Plugin/Scaffold/ComposerScaffoldCommand.php + - message: "#^Variable \\$data_path in empty\\(\\) always exists and is not falsy\\.$#" count: 1 @@ -20,6 +28,15 @@ parameters: count: 1 path: includes/form.inc + - + message: """ + #^Call to deprecated method getFromDriverName\\(\\) of class Drupal\\\\Core\\\\Extension\\\\DatabaseDriverList\\: + in drupal\\:10\\.2\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + DatabaseDriverList\\:\\:get\\(\\) instead, passing a database driver namespace\\.$# + """ + count: 1 + path: includes/install.core.inc + - message: "#^Function install_config_download_translations\\(\\) should return string but return statement is missing\\.$#" count: 1 @@ -40,6 +57,15 @@ parameters: count: 1 path: includes/theme.maintenance.inc + - + message: """ + #^Call to deprecated method registerLoader\\(\\) of class Doctrine\\\\Common\\\\Annotations\\\\AnnotationRegistry\\: + This method is deprecated and will be removed in + doctrine/annotations 2\\.0\\. Annotations will be autoloaded in 2\\.0\\.$# + """ + count: 1 + path: lib/Drupal/Component/Annotation/Plugin/Discovery/AnnotatedClassDiscovery.php + - message: "#^Call to an undefined method Drupal\\\\Component\\\\Datetime\\\\DateTimePlus\\:\\:getTimeZone\\(\\)\\.$#" count: 1 @@ -55,6 +81,15 @@ parameters: count: 1 path: lib/Drupal/Component/Datetime/Time.php + - + message: """ + #^Usage of deprecated trait Drupal\\\\Component\\\\DependencyInjection\\\\ServiceIdHashTrait in class Drupal\\\\Component\\\\DependencyInjection\\\\Container\\: + in drupal\\:9\\.5\\.1 and is removed from drupal\\:11\\.0\\.0\\. Use the + 'Drupal\\\\Component\\\\DependencyInjection\\\\ReverseContainer' service instead\\.$# + """ + count: 1 + path: lib/Drupal/Component/DependencyInjection/Container.php + - message: "#^Variable \\$x0 might not be defined\\.$#" count: 4 @@ -255,6 +290,15 @@ parameters: count: 1 path: lib/Drupal/Core/Condition/ConditionManager.php + - + message: """ + #^Fetching deprecated class constant RETURN_AFFECTED of class Drupal\\\\Core\\\\Database\\\\Database\\: + in drupal\\:9\\.4\\.0 and is removed from drupal\\:11\\.0\\.0\\. There is no + replacement\\.$# + """ + count: 4 + path: lib/Drupal/Core/Config/DatabaseStorage.php + - message: "#^Variable \\$value in isset\\(\\) always exists and is not nullable\\.$#" count: 2 @@ -270,21 +314,136 @@ parameters: count: 1 path: lib/Drupal/Core/Config/TypedConfigManager.php + - + message: """ + #^Class Drupal\\\\Core\\\\Controller\\\\ArgumentResolver\\\\Psr7RequestValueResolver implements deprecated interface Symfony\\\\Component\\\\HttpKernel\\\\Controller\\\\ArgumentValueResolverInterface\\: + since Symfony 6\\.2, implement ValueResolverInterface instead$# + """ + count: 1 + path: lib/Drupal/Core/Controller/ArgumentResolver/Psr7RequestValueResolver.php + + - + message: """ + #^Class Drupal\\\\Core\\\\Controller\\\\ArgumentResolver\\\\RouteMatchValueResolver implements deprecated interface Symfony\\\\Component\\\\HttpKernel\\\\Controller\\\\ArgumentValueResolverInterface\\: + since Symfony 6\\.2, implement ValueResolverInterface instead$# + """ + count: 1 + path: lib/Drupal/Core/Controller/ArgumentResolver/RouteMatchValueResolver.php + + - + message: """ + #^Fetching deprecated class constant RETURN_AFFECTED of class Drupal\\\\Core\\\\Database\\\\Database\\: + in drupal\\:9\\.4\\.0 and is removed from drupal\\:11\\.0\\.0\\. There is no + replacement\\.$# + """ + count: 1 + path: lib/Drupal/Core/Database/Connection.php + + - + message: """ + #^Fetching deprecated class constant RETURN_INSERT_ID of class Drupal\\\\Core\\\\Database\\\\Database\\: + in drupal\\:9\\.4\\.0 and is removed from drupal\\:11\\.0\\.0\\. There is no + replacement\\.$# + """ + count: 1 + path: lib/Drupal/Core/Database/Connection.php + + - + message: """ + #^Fetching deprecated class constant RETURN_NULL of class Drupal\\\\Core\\\\Database\\\\Database\\: + in drupal\\:9\\.4\\.0 and is removed from drupal\\:11\\.0\\.0\\. There is no + replacement\\.$# + """ + count: 1 + path: lib/Drupal/Core/Database/Connection.php + + - + message: """ + #^Fetching deprecated class constant RETURN_STATEMENT of class Drupal\\\\Core\\\\Database\\\\Database\\: + in drupal\\:9\\.4\\.0 and is removed from drupal\\:11\\.0\\.0\\. There is no + replacement\\.$# + """ + count: 2 + path: lib/Drupal/Core/Database/Connection.php + - message: "#^Variable \\$statement might not be defined\\.$#" count: 1 path: lib/Drupal/Core/Database/Connection.php + - + message: """ + #^Fetching deprecated class constant RETURN_AFFECTED of class Drupal\\\\Core\\\\Database\\\\Database\\: + in drupal\\:9\\.4\\.0 and is removed from drupal\\:11\\.0\\.0\\. There is no + replacement\\.$# + """ + count: 1 + path: lib/Drupal/Core/Database/Query/Delete.php + - message: "#^Method Drupal\\\\Core\\\\Database\\\\Query\\\\Delete\\:\\:execute\\(\\) should return int but return statement is missing\\.$#" count: 1 path: lib/Drupal/Core/Database/Query/Delete.php + - + message: """ + #^Fetching deprecated class constant RETURN_INSERT_ID of class Drupal\\\\Core\\\\Database\\\\Database\\: + in drupal\\:9\\.4\\.0 and is removed from drupal\\:11\\.0\\.0\\. There is no + replacement\\.$# + """ + count: 1 + path: lib/Drupal/Core/Database/Query/Insert.php + + - + message: """ + #^Fetching deprecated class constant RETURN_AFFECTED of class Drupal\\\\Core\\\\Database\\\\Database\\: + in drupal\\:9\\.4\\.0 and is removed from drupal\\:11\\.0\\.0\\. There is no + replacement\\.$# + """ + count: 1 + path: lib/Drupal/Core/Database/Query/Merge.php + - message: "#^Method Drupal\\\\Core\\\\Database\\\\Query\\\\Merge\\:\\:__toString\\(\\) should return string but return statement is missing\\.$#" count: 1 path: lib/Drupal/Core/Database/Query/Merge.php + - + message: """ + #^Fetching deprecated class constant RETURN_STATEMENT of class Drupal\\\\Core\\\\Database\\\\Database\\: + in drupal\\:9\\.4\\.0 and is removed from drupal\\:11\\.0\\.0\\. There is no + replacement\\.$# + """ + count: 1 + path: lib/Drupal/Core/Database/Query/Select.php + + - + message: """ + #^Fetching deprecated class constant RETURN_AFFECTED of class Drupal\\\\Core\\\\Database\\\\Database\\: + in drupal\\:9\\.4\\.0 and is removed from drupal\\:11\\.0\\.0\\. There is no + replacement\\.$# + """ + count: 1 + path: lib/Drupal/Core/Database/Query/Truncate.php + + - + message: """ + #^Fetching deprecated class constant RETURN_AFFECTED of class Drupal\\\\Core\\\\Database\\\\Database\\: + in drupal\\:9\\.4\\.0 and is removed from drupal\\:11\\.0\\.0\\. There is no + replacement\\.$# + """ + count: 1 + path: lib/Drupal/Core/Database/Query/Update.php + + - + message: """ + #^Fetching deprecated class constant RETURN_AFFECTED of class Drupal\\\\Core\\\\Database\\\\Database\\: + in drupal\\:9\\.4\\.0 and is removed from drupal\\:11\\.0\\.0\\. There is no + replacement\\.$# + """ + count: 1 + path: lib/Drupal/Core/Database/Query/Upsert.php + - message: "#^Variable \\$affected_rows might not be defined\\.$#" count: 1 @@ -295,6 +454,33 @@ parameters: count: 2 path: lib/Drupal/Core/Datetime/DateHelper.php + - + message: """ + #^Usage of deprecated trait Drupal\\\\Component\\\\DependencyInjection\\\\ServiceIdHashTrait in class Drupal\\\\Core\\\\DependencyInjection\\\\ContainerBuilder\\: + in drupal\\:9\\.5\\.1 and is removed from drupal\\:11\\.0\\.0\\. Use the + 'Drupal\\\\Component\\\\DependencyInjection\\\\ReverseContainer' service instead\\.$# + """ + count: 1 + path: lib/Drupal/Core/DependencyInjection/ContainerBuilder.php + + - + message: """ + #^Call to deprecated method closing\\(\\) of class Drupal\\\\Component\\\\Diff\\\\WordLevelDiff\\: + in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. There is no + replacement\\.$# + """ + count: 1 + path: lib/Drupal/Core/Diff/DiffFormatter.php + + - + message: """ + #^Call to deprecated method orig\\(\\) of class Drupal\\\\Component\\\\Diff\\\\WordLevelDiff\\: + in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. There is no + replacement\\.$# + """ + count: 1 + path: lib/Drupal/Core/Diff/DiffFormatter.php + - message: "#^Method Drupal\\\\Core\\\\DrupalKernel\\:\\:discoverServiceProviders\\(\\) should return array but return statement is missing\\.$#" count: 1 @@ -370,6 +556,15 @@ parameters: count: 2 path: lib/Drupal/Core/Entity/EntityDisplayBase.php + - + message: """ + #^Call to deprecated method deleteRevision\\(\\) of class Drupal\\\\Core\\\\Entity\\\\EntityStorageInterface\\: + in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + \\\\Drupal\\\\Core\\\\Entity\\\\RevisionableStorageInterface\\:\\:deleteRevision instead\\.$# + """ + count: 1 + path: lib/Drupal/Core/Entity/Form/RevisionDeleteForm.php + - message: "#^Method Drupal\\\\Core\\\\Entity\\\\KeyValueStore\\\\KeyValueContentEntityStorage\\:\\:createTranslation\\(\\) should return Drupal\\\\Core\\\\Entity\\\\ContentEntityInterface but return statement is missing\\.$#" count: 1 @@ -385,6 +580,15 @@ parameters: count: 2 path: lib/Drupal/Core/Entity/Plugin/EntityReferenceSelection/DefaultSelection.php + - + message: """ + #^Call to deprecated method loadRevision\\(\\) of class Drupal\\\\Core\\\\Entity\\\\EntityStorageInterface\\: + in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + \\\\Drupal\\\\Core\\\\Entity\\\\RevisionableStorageInterface\\:\\:loadRevision instead\\.$# + """ + count: 1 + path: lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityUntranslatableFieldsConstraintValidator.php + - message: "#^Variable \\$value in isset\\(\\) always exists and is not nullable\\.$#" count: 1 @@ -410,6 +614,15 @@ parameters: count: 5 path: lib/Drupal/Core/Entity/Query/Sql/Tables.php + - + message: """ + #^Fetching deprecated class constant RETURN_INSERT_ID of class Drupal\\\\Core\\\\Database\\\\Database\\: + in drupal\\:9\\.4\\.0 and is removed from drupal\\:11\\.0\\.0\\. There is no + replacement\\.$# + """ + count: 2 + path: lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php + - message: "#^Variable \\$revision_query might not be defined\\.$#" count: 2 @@ -440,6 +653,15 @@ parameters: count: 2 path: lib/Drupal/Core/EventSubscriber/FinishResponseSubscriber.php + - + message: """ + #^Call to deprecated method getFromDriverName\\(\\) of class Drupal\\\\Core\\\\Extension\\\\DatabaseDriverList\\: + in drupal\\:10\\.2\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + DatabaseDriverList\\:\\:get\\(\\) instead, passing a database driver namespace\\.$# + """ + count: 1 + path: lib/Drupal/Core/Extension/DatabaseDriverList.php + - message: "#^Variable \\$minor_version might not be defined\\.$#" count: 1 @@ -565,6 +787,14 @@ parameters: count: 1 path: lib/Drupal/Core/Form/FormValidator.php + - + message: """ + #^Call to deprecated function GuzzleHttp\\\\default_user_agent\\(\\)\\: + default_user_agent will be removed in guzzlehttp/guzzle\\:8\\.0\\. Use Utils\\:\\:defaultUserAgent instead\\.$# + """ + count: 1 + path: lib/Drupal/Core/Http/ClientFactory.php + - message: "#^Call to deprecated constant REQUEST_TIME\\: Deprecated in drupal\\:8\\.3\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use \\\\Drupal\\:\\:time\\(\\)\\-\\>getRequestTime\\(\\); $#" count: 4 @@ -605,11 +835,29 @@ parameters: count: 1 path: lib/Drupal/Core/Menu/MenuLinkManager.php + - + message: """ + #^Fetching deprecated class constant RETURN_INSERT_ID of class Drupal\\\\Core\\\\Database\\\\Database\\: + in drupal\\:9\\.4\\.0 and is removed from drupal\\:11\\.0\\.0\\. There is no + replacement\\.$# + """ + count: 1 + path: lib/Drupal/Core/Menu/MenuTreeStorage.php + - message: "#^Variable \\$transaction in isset\\(\\) always exists and is not nullable\\.$#" count: 1 path: lib/Drupal/Core/Menu/MenuTreeStorage.php + - + message: """ + #^Call to deprecated method loadRevision\\(\\) of class Drupal\\\\Core\\\\Entity\\\\EntityStorageInterface\\: + in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + \\\\Drupal\\\\Core\\\\Entity\\\\RevisionableStorageInterface\\:\\:loadRevision instead\\.$# + """ + count: 1 + path: lib/Drupal/Core/ParamConverter/EntityRevisionParamConverter.php + - message: "#^Constructor of class Drupal\\\\Core\\\\Queue\\\\Memory has an unused parameter \\$name\\.$#" count: 1 @@ -925,11 +1173,29 @@ parameters: count: 1 path: modules/contact/src/MessageForm.php + - + message: """ + #^Call to deprecated method loadRevision\\(\\) of class Drupal\\\\Core\\\\Entity\\\\EntityStorageInterface\\: + in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + \\\\Drupal\\\\Core\\\\Entity\\\\RevisionableStorageInterface\\:\\:loadRevision instead\\.$# + """ + count: 1 + path: modules/content_moderation/src/Entity/ContentModerationState.php + - message: "#^Variable \\$state in isset\\(\\) always exists and is not nullable\\.$#" count: 3 path: modules/content_moderation/src/Form/ContentModerationStateForm.php + - + message: """ + #^Call to deprecated method loadRevision\\(\\) of class Drupal\\\\Core\\\\Entity\\\\EntityStorageInterface\\: + in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + \\\\Drupal\\\\Core\\\\Entity\\\\RevisionableStorageInterface\\:\\:loadRevision instead\\.$# + """ + count: 3 + path: modules/content_moderation/src/ModerationInformation.php + - message: "#^Method Drupal\\\\content_moderation\\\\ModerationInformation\\:\\:getAffectedRevisionTranslation\\(\\) should return Drupal\\\\Core\\\\Entity\\\\ContentEntityInterface but return statement is missing\\.$#" count: 1 @@ -940,6 +1206,51 @@ parameters: count: 1 path: modules/content_moderation/src/ModerationInformation.php + - + message: """ + #^Call to deprecated method loadRevision\\(\\) of class Drupal\\\\Core\\\\Entity\\\\EntityStorageInterface\\: + in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + \\\\Drupal\\\\Core\\\\Entity\\\\RevisionableStorageInterface\\:\\:loadRevision instead\\.$# + """ + count: 1 + path: modules/content_moderation/src/Plugin/Field/FieldWidget/ModerationStateWidget.php + + - + message: """ + #^Call to deprecated method loadRevision\\(\\) of class Drupal\\\\Core\\\\Entity\\\\EntityStorageInterface\\: + in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + \\\\Drupal\\\\Core\\\\Entity\\\\RevisionableStorageInterface\\:\\:loadRevision instead\\.$# + """ + count: 2 + path: modules/content_moderation/tests/src/Functional/ModerationLocaleTest.php + + - + message: """ + #^Call to deprecated method deleteRevision\\(\\) of class Drupal\\\\Core\\\\Entity\\\\EntityStorageInterface\\: + in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + \\\\Drupal\\\\Core\\\\Entity\\\\RevisionableStorageInterface\\:\\:deleteRevision instead\\.$# + """ + count: 3 + path: modules/content_moderation/tests/src/Kernel/ContentModerationStateTest.php + + - + message: """ + #^Call to deprecated method loadRevision\\(\\) of class Drupal\\\\Core\\\\Entity\\\\EntityStorageInterface\\: + in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + \\\\Drupal\\\\Core\\\\Entity\\\\RevisionableStorageInterface\\:\\:loadRevision instead\\.$# + """ + count: 2 + path: modules/content_moderation/tests/src/Kernel/ContentModerationStateTest.php + + - + message: """ + #^Call to deprecated method loadRevision\\(\\) of class Drupal\\\\Core\\\\Entity\\\\EntityStorageInterface\\: + in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + \\\\Drupal\\\\Core\\\\Entity\\\\RevisionableStorageInterface\\:\\:loadRevision instead\\.$# + """ + count: 3 + path: modules/content_moderation/tests/src/Kernel/ContentModerationSyncingTest.php + - message: "#^Variable \\$checkbox_id might not be defined\\.$#" count: 1 @@ -955,6 +1266,15 @@ parameters: count: 1 path: modules/content_translation/content_translation.module + - + message: """ + #^Call to deprecated method loadRevision\\(\\) of class Drupal\\\\Core\\\\Entity\\\\EntityStorageInterface\\: + in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + \\\\Drupal\\\\Core\\\\Entity\\\\RevisionableStorageInterface\\:\\:loadRevision instead\\.$# + """ + count: 1 + path: modules/content_translation/src/Access/ContentTranslationDeleteAccess.php + - message: "#^Call to deprecated constant REQUEST_TIME\\: Deprecated in drupal\\:8\\.3\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use \\\\Drupal\\:\\:time\\(\\)\\-\\>getRequestTime\\(\\); $#" count: 5 @@ -965,16 +1285,61 @@ parameters: count: 1 path: modules/content_translation/src/Controller/ContentTranslationController.php + - + message: """ + #^Call to deprecated method loadRevision\\(\\) of class Drupal\\\\Core\\\\Entity\\\\EntityStorageInterface\\: + in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + \\\\Drupal\\\\Core\\\\Entity\\\\RevisionableStorageInterface\\:\\:loadRevision instead\\.$# + """ + count: 2 + path: modules/content_translation/src/Controller/ContentTranslationController.php + - message: "#^Variable \\$source_name might not be defined\\.$#" count: 1 path: modules/content_translation/src/Controller/ContentTranslationController.php + - + message: """ + #^Call to deprecated method loadRevision\\(\\) of class Drupal\\\\Core\\\\Entity\\\\EntityStorageInterface\\: + in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + \\\\Drupal\\\\Core\\\\Entity\\\\RevisionableStorageInterface\\:\\:loadRevision instead\\.$# + """ + count: 1 + path: modules/content_translation/src/FieldTranslationSynchronizer.php + + - + message: """ + #^Call to deprecated method loadRevision\\(\\) of class Drupal\\\\Core\\\\Entity\\\\EntityStorageInterface\\: + in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + \\\\Drupal\\\\Core\\\\Entity\\\\RevisionableStorageInterface\\:\\:loadRevision instead\\.$# + """ + count: 1 + path: modules/content_translation/src/Plugin/Validation/Constraint/ContentTranslationSynchronizedFieldsConstraintValidator.php + + - + message: """ + #^Call to deprecated method loadRevision\\(\\) of class Drupal\\\\Core\\\\Entity\\\\EntityStorageInterface\\: + in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + \\\\Drupal\\\\Core\\\\Entity\\\\RevisionableStorageInterface\\:\\:loadRevision instead\\.$# + """ + count: 1 + path: modules/content_translation/tests/src/Functional/ContentTranslationPendingRevisionTestBase.php + - message: "#^Call to deprecated constant REQUEST_TIME\\: Deprecated in drupal\\:8\\.3\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use \\\\Drupal\\:\\:time\\(\\)\\-\\>getRequestTime\\(\\); $#" count: 1 path: modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php + - + message: """ + #^Call to deprecated method loadRevision\\(\\) of class Drupal\\\\Core\\\\Entity\\\\EntityStorageInterface\\: + in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + \\\\Drupal\\\\Core\\\\Entity\\\\RevisionableStorageInterface\\:\\:loadRevision instead\\.$# + """ + count: 2 + path: modules/content_translation/tests/src/Kernel/ContentTranslationFieldSyncRevisionTest.php + - message: "#^Variable \\$unrestricted_tab_count might not be defined\\.$#" count: 1 @@ -1060,16 +1425,70 @@ parameters: count: 1 path: modules/field/tests/modules/field_test/src/Plugin/Field/FieldFormatter/TestFieldMultipleFormatter.php + - + message: """ + #^Call to deprecated method loadRevision\\(\\) of class Drupal\\\\Core\\\\Entity\\\\EntityStorageInterface\\: + in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + \\\\Drupal\\\\Core\\\\Entity\\\\RevisionableStorageInterface\\:\\:loadRevision instead\\.$# + """ + count: 1 + path: modules/field/tests/src/Functional/FormTest.php + - message: "#^Call to deprecated constant REQUEST_TIME\\: Deprecated in drupal\\:8\\.3\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use \\\\Drupal\\:\\:time\\(\\)\\-\\>getRequestTime\\(\\); $#" count: 2 path: modules/field/tests/src/Functional/NestedFormTest.php + - + message: """ + #^Call to deprecated method loadRevision\\(\\) of class Drupal\\\\Core\\\\Entity\\\\EntityStorageInterface\\: + in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + \\\\Drupal\\\\Core\\\\Entity\\\\RevisionableStorageInterface\\:\\:loadRevision instead\\.$# + """ + count: 1 + path: modules/field/tests/src/Functional/TranslationWebTest.php + + - + message: """ + #^Call to deprecated method deleteRevision\\(\\) of class Drupal\\\\Core\\\\Entity\\\\EntityStorageInterface\\: + in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + \\\\Drupal\\\\Core\\\\Entity\\\\RevisionableStorageInterface\\:\\:deleteRevision instead\\.$# + """ + count: 1 + path: modules/field/tests/src/Kernel/FieldAttachStorageTest.php + + - + message: """ + #^Call to deprecated method loadRevision\\(\\) of class Drupal\\\\Core\\\\Entity\\\\EntityStorageInterface\\: + in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + \\\\Drupal\\\\Core\\\\Entity\\\\RevisionableStorageInterface\\:\\:loadRevision instead\\.$# + """ + count: 4 + path: modules/field/tests/src/Kernel/FieldAttachStorageTest.php + - message: "#^Variable \\$values might not be defined\\.$#" count: 1 path: modules/field/tests/src/Kernel/FieldAttachStorageTest.php + - + message: """ + #^Call to deprecated method loadRevision\\(\\) of class Drupal\\\\Core\\\\Entity\\\\EntityStorageInterface\\: + in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + \\\\Drupal\\\\Core\\\\Entity\\\\RevisionableStorageInterface\\:\\:loadRevision instead\\.$# + """ + count: 1 + path: modules/field/tests/src/Kernel/FieldDataCountTest.php + + - + message: """ + #^Call to deprecated method loadRevision\\(\\) of class Drupal\\\\Core\\\\Entity\\\\EntityStorageInterface\\: + in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + \\\\Drupal\\\\Core\\\\Entity\\\\RevisionableStorageInterface\\:\\:loadRevision instead\\.$# + """ + count: 1 + path: modules/field/tests/src/Kernel/KernelString/StringFormatterTest.php + - message: "#^Call to deprecated constant REQUEST_TIME\\: Deprecated in drupal\\:8\\.3\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use \\\\Drupal\\:\\:time\\(\\)\\-\\>getRequestTime\\(\\); $#" count: 1 @@ -1255,6 +1674,11 @@ parameters: count: 1 path: modules/image/tests/src/Functional/ImageStyleFlushTest.php + - + message: "#^Call to deprecated method withConsecutive\\(\\) of class PHPUnit\\\\Framework\\\\MockObject\\\\Builder\\\\InvocationMocker\\.$#" + count: 2 + path: modules/inline_form_errors/tests/src/Unit/FormErrorHandlerTest.php + - message: "#^Variable \\$reason in empty\\(\\) always exists and is not falsy\\.$#" count: 1 @@ -1275,11 +1699,29 @@ parameters: count: 5 path: modules/jsonapi/src/Query/Filter.php + - + message: """ + #^Call to deprecated method loadRevision\\(\\) of class Drupal\\\\Core\\\\Entity\\\\EntityStorageInterface\\: + in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + \\\\Drupal\\\\Core\\\\Entity\\\\RevisionableStorageInterface\\:\\:loadRevision instead\\.$# + """ + count: 1 + path: modules/jsonapi/src/Revisions/NegotiatorBase.php + - message: "#^Method Drupal\\\\jsonapi\\\\Revisions\\\\VersionNegotiator\\:\\:getRevision\\(\\) should return Drupal\\\\Core\\\\Entity\\\\EntityInterface but return statement is missing\\.$#" count: 1 path: modules/jsonapi/src/Revisions/VersionNegotiator.php + - + message: """ + #^Call to deprecated method loadRevision\\(\\) of class Drupal\\\\Core\\\\Entity\\\\EntityStorageInterface\\: + in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + \\\\Drupal\\\\Core\\\\Entity\\\\RevisionableStorageInterface\\:\\:loadRevision instead\\.$# + """ + count: 2 + path: modules/jsonapi/tests/src/Functional/ResourceTestBase.php + - message: "#^Variable \\$created_entity might not be defined\\.$#" count: 1 @@ -1430,6 +1872,24 @@ parameters: count: 1 path: modules/media/src/OEmbed/UrlResolver.php + - + message: """ + #^Call to method create\\(\\) of deprecated class Drupal\\\\media\\\\Form\\\\EditorMediaDialog\\: + in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. There is no + replacement\\.$# + """ + count: 1 + path: modules/media/tests/src/Kernel/EditorMediaDialogTest.php + + - + message: """ + #^Call to deprecated method loadRevision\\(\\) of class Drupal\\\\Core\\\\Entity\\\\EntityStorageInterface\\: + in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + \\\\Drupal\\\\Core\\\\Entity\\\\RevisionableStorageInterface\\:\\:loadRevision instead\\.$# + """ + count: 1 + path: modules/media_library/src/MediaLibraryFieldWidgetOpener.php + - message: "#^Variable \\$jpg_image might not be defined\\.$#" count: 1 @@ -1465,6 +1925,15 @@ parameters: count: 1 path: modules/migrate/src/MigrateException.php + - + message: """ + #^Call to deprecated method registerLoader\\(\\) of class Doctrine\\\\Common\\\\Annotations\\\\AnnotationRegistry\\: + This method is deprecated and will be removed in + doctrine/annotations 2\\.0\\. Annotations will be autoloaded in 2\\.0\\.$# + """ + count: 1 + path: modules/migrate/src/Plugin/Discovery/AnnotatedClassDiscoveryAutomatedProviders.php + - message: "#^Constructor of class Drupal\\\\migrate\\\\Plugin\\\\MigrationPluginManager has an unused parameter \\$language_manager\\.$#" count: 1 @@ -1490,6 +1959,24 @@ parameters: count: 1 path: modules/migrate/src/Plugin/migrate/destination/EntityConfigBase.php + - + message: """ + #^Call to deprecated method loadRevision\\(\\) of class Drupal\\\\Core\\\\Entity\\\\EntityStorageInterface\\: + in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + \\\\Drupal\\\\Core\\\\Entity\\\\RevisionableStorageInterface\\:\\:loadRevision instead\\.$# + """ + count: 1 + path: modules/migrate/src/Plugin/migrate/destination/EntityContentComplete.php + + - + message: """ + #^Call to deprecated method loadRevision\\(\\) of class Drupal\\\\Core\\\\Entity\\\\EntityStorageInterface\\: + in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + \\\\Drupal\\\\Core\\\\Entity\\\\RevisionableStorageInterface\\:\\:loadRevision instead\\.$# + """ + count: 1 + path: modules/migrate/src/Plugin/migrate/destination/EntityRevision.php + - message: "#^Method Drupal\\\\migrate\\\\Plugin\\\\migrate\\\\destination\\\\NullDestination\\:\\:import\\(\\) should return array\\|bool but return statement is missing\\.$#" count: 1 @@ -1500,6 +1987,20 @@ parameters: count: 1 path: modules/migrate/tests/src/Kernel/MigrateTestBase.php + - + message: "#^Call to deprecated method withConsecutive\\(\\) of class PHPUnit\\\\Framework\\\\MockObject\\\\Builder\\\\InvocationMocker\\.$#" + count: 2 + path: modules/migrate/tests/src/Unit/MigrateSqlIdMapEnsureTablesTest.php + + - + message: """ + #^Call to deprecated method loadRevision\\(\\) of class Drupal\\\\Core\\\\Entity\\\\EntityStorageInterface\\: + in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + \\\\Drupal\\\\Core\\\\Entity\\\\RevisionableStorageInterface\\:\\:loadRevision instead\\.$# + """ + count: 2 + path: modules/migrate/tests/src/Unit/destination/EntityRevisionTest.php + - message: "#^Variable \\$sub_process_plugins might not be defined\\.$#" count: 2 @@ -1605,6 +2106,15 @@ parameters: count: 8 path: modules/migrate_drupal_ui/tests/src/Functional/MultilingualReviewPageTestBase.php + - + message: """ + #^Access to deprecated property \\$needsCleanup of class Drupal\\\\mysql\\\\Driver\\\\Database\\\\mysql\\\\Connection\\: + in drupal\\:10\\.2\\.0 and is removed from drupal\\:11\\.0\\.0\\. There's no + replacement\\.$# + """ + count: 1 + path: modules/mysql/src/Driver/Database/mysql/Connection.php + - message: "#^Variable \\$last_insert_id might not be defined\\.$#" count: 1 @@ -1635,6 +2145,15 @@ parameters: count: 1 path: modules/node/src/ConfigTranslation/NodeTypeMapper.php + - + message: """ + #^Call to deprecated method deleteRevision\\(\\) of class Drupal\\\\Core\\\\Entity\\\\EntityStorageInterface\\: + in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + \\\\Drupal\\\\Core\\\\Entity\\\\RevisionableStorageInterface\\:\\:deleteRevision instead\\.$# + """ + count: 1 + path: modules/node/src/Form/NodeRevisionDeleteForm.php + - message: "#^Method Drupal\\\\node\\\\NodeForm\\:\\:save\\(\\) should return int but return statement is missing\\.$#" count: 1 @@ -1695,6 +2214,42 @@ parameters: count: 5 path: modules/node/tests/src/Functional/Views/Wizard/NodeRevisionWizardTest.php + - + message: """ + #^Call to deprecated method loadRevision\\(\\) of class Drupal\\\\Core\\\\Entity\\\\EntityStorageInterface\\: + in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + \\\\Drupal\\\\Core\\\\Entity\\\\RevisionableStorageInterface\\:\\:loadRevision instead\\.$# + """ + count: 2 + path: modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeCompleteTest.php + + - + message: """ + #^Call to deprecated method loadRevision\\(\\) of class Drupal\\\\Core\\\\Entity\\\\EntityStorageInterface\\: + in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + \\\\Drupal\\\\Core\\\\Entity\\\\RevisionableStorageInterface\\:\\:loadRevision instead\\.$# + """ + count: 2 + path: modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeRevisionTest.php + + - + message: """ + #^Call to deprecated method loadRevision\\(\\) of class Drupal\\\\Core\\\\Entity\\\\EntityStorageInterface\\: + in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + \\\\Drupal\\\\Core\\\\Entity\\\\RevisionableStorageInterface\\:\\:loadRevision instead\\.$# + """ + count: 3 + path: modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeCompleteTest.php + + - + message: """ + #^Call to deprecated method loadRevision\\(\\) of class Drupal\\\\Core\\\\Entity\\\\EntityStorageInterface\\: + in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + \\\\Drupal\\\\Core\\\\Entity\\\\RevisionableStorageInterface\\:\\:loadRevision instead\\.$# + """ + count: 3 + path: modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeRevisionTest.php + - message: "#^Variable \\$changed in isset\\(\\) always exists and is not nullable\\.$#" count: 1 @@ -1755,6 +2310,15 @@ parameters: count: 1 path: modules/path_alias/src/AliasManager.php + - + message: """ + #^Call to deprecated method makeSequenceName\\(\\) of class Drupal\\\\Core\\\\Database\\\\Connection\\: + in drupal\\:10\\.2\\.0 and is removed from drupal\\:11\\.0\\.0\\. There is + no replacement\\.$# + """ + count: 1 + path: modules/pgsql/src/Driver/Database/pgsql/Schema.php + - message: "#^Variable \\$table_field might not be defined\\.$#" count: 1 @@ -1765,6 +2329,20 @@ parameters: count: 1 path: modules/pgsql/src/Driver/Database/pgsql/Upsert.php + - + message: """ + #^Call to deprecated method makeSequenceName\\(\\) of class Drupal\\\\Core\\\\Database\\\\Connection\\: + in drupal\\:10\\.2\\.0 and is removed from drupal\\:11\\.0\\.0\\. There is + no replacement\\.$# + """ + count: 1 + path: modules/pgsql/src/Update10101.php + + - + message: "#^Call to deprecated method withConsecutive\\(\\) of class PHPUnit\\\\Framework\\\\MockObject\\\\Builder\\\\InvocationMocker\\.$#" + count: 1 + path: modules/pgsql/tests/src/Unit/SchemaTest.php + - message: "#^Variable \\$responsive_image_styles in empty\\(\\) always exists and is not falsy\\.$#" count: 1 @@ -1830,6 +2408,11 @@ parameters: count: 1 path: modules/serialization/src/Normalizer/EntityNormalizer.php + - + message: "#^Call to deprecated method withConsecutive\\(\\) of class PHPUnit\\\\Framework\\\\MockObject\\\\Builder\\\\InvocationMocker\\.$#" + count: 3 + path: modules/serialization/tests/src/Unit/Normalizer/EntityNormalizerTest.php + - message: "#^Method Drupal\\\\shortcut\\\\Form\\\\SetCustomize\\:\\:save\\(\\) should return int but return statement is missing\\.$#" count: 1 @@ -1920,6 +2503,15 @@ parameters: count: 1 path: modules/system/tests/modules/batch_test/batch_test.callbacks.inc + - + 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\\(\\)\\.$# + """ + count: 1 + path: modules/system/tests/modules/deprecation_test/src/DeprecatedController.php + - message: "#^Call to deprecated constant REQUEST_TIME\\: Deprecated in drupal\\:8\\.3\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use \\\\Drupal\\:\\:time\\(\\)\\-\\>getRequestTime\\(\\); $#" count: 1 @@ -1960,6 +2552,11 @@ parameters: count: 2 path: modules/system/tests/src/Functional/Theme/ThemeUiTest.php + - + message: "#^Call to deprecated method withConsecutive\\(\\) of class PHPUnit\\\\Framework\\\\MockObject\\\\Builder\\\\InvocationMocker\\.$#" + count: 2 + path: modules/system/tests/src/Kernel/System/CronQueueTest.php + - message: "#^Call to deprecated constant REQUEST_TIME\\: Deprecated in drupal\\:8\\.3\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use \\\\Drupal\\:\\:time\\(\\)\\-\\>getRequestTime\\(\\); $#" count: 1 @@ -2130,6 +2727,22 @@ parameters: count: 1 path: modules/user/tests/src/Functional/Views/UserChangedTest.php + - + message: """ + #^Call to deprecated method expectWarning\\(\\) of class PHPUnit\\\\Framework\\\\TestCase\\: + https\\://github\\.com/sebastianbergmann/phpunit/issues/5062$# + """ + count: 1 + path: modules/user/tests/src/Kernel/Views/HandlerFilterRolesTest.php + + - + message: """ + #^Call to deprecated method expectWarningMessage\\(\\) of class PHPUnit\\\\Framework\\\\TestCase\\: + https\\://github\\.com/sebastianbergmann/phpunit/issues/5062$# + """ + count: 1 + path: modules/user/tests/src/Kernel/Views/HandlerFilterRolesTest.php + - message: "#^Variable \\$result in isset\\(\\) always exists and is not nullable\\.$#" count: 1 @@ -2245,6 +2858,15 @@ parameters: count: 1 path: modules/views/src/Plugin/views/field/Broken.php + - + message: """ + #^Call to deprecated method loadRevision\\(\\) of class Drupal\\\\Core\\\\Entity\\\\EntityStorageInterface\\: + in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + \\\\Drupal\\\\Core\\\\Entity\\\\RevisionableStorageInterface\\:\\:loadRevision instead\\.$# + """ + count: 1 + path: modules/views/src/Plugin/views/field/BulkForm.php + - message: "#^Variable \\$entity in empty\\(\\) always exists and is not falsy\\.$#" count: 1 @@ -2345,6 +2967,15 @@ parameters: count: 1 path: modules/views/src/Plugin/views/join/JoinPluginBase.php + - + message: """ + #^Call to deprecated method loadRevision\\(\\) of class Drupal\\\\Core\\\\Entity\\\\EntityStorageInterface\\: + in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + \\\\Drupal\\\\Core\\\\Entity\\\\RevisionableStorageInterface\\:\\:loadRevision instead\\.$# + """ + count: 1 + path: modules/views/src/Plugin/views/query/Sql.php + - message: "#^Variable \\$join in empty\\(\\) always exists and is not falsy\\.$#" count: 2 @@ -2485,6 +3116,11 @@ parameters: count: 2 path: modules/views/tests/src/Kernel/RenderCacheIntegrationTest.php + - + message: "#^Call to deprecated method withConsecutive\\(\\) of class PHPUnit\\\\Framework\\\\MockObject\\\\Builder\\\\InvocationMocker\\.$#" + count: 10 + path: modules/views/tests/src/Unit/ViewsDataTest.php + - message: "#^Variable \\$relationship_handler in empty\\(\\) always exists and is not falsy\\.$#" count: 1 @@ -2570,6 +3206,15 @@ parameters: count: 1 path: modules/workspaces/src/Plugin/Validation/Constraint/DeletedWorkspaceConstraintValidator.php + - + message: """ + #^Call to deprecated method loadRevision\\(\\) of class Drupal\\\\Core\\\\Entity\\\\EntityStorageInterface\\: + in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + \\\\Drupal\\\\Core\\\\Entity\\\\RevisionableStorageInterface\\:\\:loadRevision instead\\.$# + """ + count: 1 + path: modules/workspaces/src/Plugin/Validation/Constraint/EntityWorkspaceConflictConstraintValidator.php + - message: "#^Variable \\$entity in isset\\(\\) always exists and is not nullable\\.$#" count: 1 @@ -2580,6 +3225,15 @@ parameters: count: 1 path: modules/workspaces/src/WorkspaceAssociation.php + - + message: """ + #^Call to deprecated method deleteRevision\\(\\) of class Drupal\\\\Core\\\\Entity\\\\EntityStorageInterface\\: + in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + \\\\Drupal\\\\Core\\\\Entity\\\\RevisionableStorageInterface\\:\\:deleteRevision instead\\.$# + """ + count: 1 + path: modules/workspaces/src/WorkspaceManager.php + - message: "#^Method Drupal\\\\workspaces\\\\WorkspaceMerger\\:\\:checkConflictsOnTarget\\(\\) should return array but return statement is missing\\.$#" count: 1 @@ -2610,6 +3264,42 @@ parameters: count: 1 path: tests/Drupal/BuildTests/Composer/Template/ComposerProjectTemplatesTest.php + - + message: """ + #^Usage of deprecated trait Drupal\\\\BuildTests\\\\Framework\\\\ExternalCommandRequirementsTrait in class Drupal\\\\BuildTests\\\\Framework\\\\Tests\\\\ClassRequiresAvailable\\: + in drupal\\:10\\.2\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + Drupal\\\\\\\\TestTools\\\\\\\\Extension\\\\\\\\RequiresComposerTrait instead\\.$# + """ + count: 1 + path: tests/Drupal/BuildTests/Framework/Tests/ExternalCommandRequirementTest.php + + - + message: """ + #^Usage of deprecated trait Drupal\\\\BuildTests\\\\Framework\\\\ExternalCommandRequirementsTrait in class Drupal\\\\BuildTests\\\\Framework\\\\Tests\\\\ClassRequiresUnavailable\\: + in drupal\\:10\\.2\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + Drupal\\\\\\\\TestTools\\\\\\\\Extension\\\\\\\\RequiresComposerTrait instead\\.$# + """ + count: 1 + path: tests/Drupal/BuildTests/Framework/Tests/ExternalCommandRequirementTest.php + + - + message: """ + #^Usage of deprecated trait Drupal\\\\BuildTests\\\\Framework\\\\ExternalCommandRequirementsTrait in class Drupal\\\\BuildTests\\\\Framework\\\\Tests\\\\MethodRequires\\: + in drupal\\:10\\.2\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + Drupal\\\\\\\\TestTools\\\\\\\\Extension\\\\\\\\RequiresComposerTrait instead\\.$# + """ + count: 1 + path: tests/Drupal/BuildTests/Framework/Tests/ExternalCommandRequirementTest.php + + - + message: """ + #^Usage of deprecated trait Drupal\\\\BuildTests\\\\Framework\\\\ExternalCommandRequirementsTrait in class Drupal\\\\BuildTests\\\\Framework\\\\Tests\\\\UsesCommandRequirements\\: + in drupal\\:10\\.2\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + Drupal\\\\\\\\TestTools\\\\\\\\Extension\\\\\\\\RequiresComposerTrait instead\\.$# + """ + count: 1 + path: tests/Drupal/BuildTests/Framework/Tests/ExternalCommandRequirementTest.php + - message: "#^Variable \\$machine_name_1_value in empty\\(\\) always exists and is not falsy\\.$#" count: 1 @@ -2620,6 +3310,51 @@ parameters: count: 1 path: tests/Drupal/FunctionalJavascriptTests/WebDriverCurlService.php + - + message: """ + #^Call to deprecated method loadRevision\\(\\) of class Drupal\\\\Core\\\\Entity\\\\EntityStorageInterface\\: + in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + \\\\Drupal\\\\Core\\\\Entity\\\\RevisionableStorageInterface\\:\\:loadRevision instead\\.$# + """ + count: 6 + path: tests/Drupal/FunctionalTests/Entity/RevisionDeleteFormTest.php + + - + message: """ + #^Call to deprecated method loadRevision\\(\\) of class Drupal\\\\Core\\\\Entity\\\\EntityStorageInterface\\: + in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + \\\\Drupal\\\\Core\\\\Entity\\\\RevisionableStorageInterface\\:\\:loadRevision instead\\.$# + """ + count: 4 + path: tests/Drupal/FunctionalTests/Entity/RevisionRevertFormTest.php + + - + message: """ + #^Call to deprecated method loadRevision\\(\\) of class Drupal\\\\Core\\\\Entity\\\\EntityStorageInterface\\: + in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + \\\\Drupal\\\\Core\\\\Entity\\\\RevisionableStorageInterface\\:\\:loadRevision instead\\.$# + """ + count: 1 + path: tests/Drupal/FunctionalTests/Entity/RevisionRouteProviderTest.php + + - + message: """ + #^Call to deprecated method loadRevision\\(\\) of class Drupal\\\\Core\\\\Entity\\\\EntityStorageInterface\\: + in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + \\\\Drupal\\\\Core\\\\Entity\\\\RevisionableStorageInterface\\:\\:loadRevision instead\\.$# + """ + count: 1 + path: tests/Drupal/FunctionalTests/Entity/RevisionVersionHistoryTest.php + + - + message: """ + #^Call to deprecated method loadRevision\\(\\) of class Drupal\\\\Core\\\\Entity\\\\EntityStorageInterface\\: + in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + \\\\Drupal\\\\Core\\\\Entity\\\\RevisionableStorageInterface\\:\\:loadRevision instead\\.$# + """ + count: 1 + path: tests/Drupal/FunctionalTests/Entity/RevisionViewTest.php + - message: "#^Variable \\$found might not be defined\\.$#" count: 1 @@ -2630,16 +3365,65 @@ parameters: count: 12 path: tests/Drupal/KernelTests/Core/Cache/GenericCacheBackendUnitTestBase.php + - + message: """ + #^Call to deprecated method expectWarning\\(\\) of class PHPUnit\\\\Framework\\\\TestCase\\: + https\\://github\\.com/sebastianbergmann/phpunit/issues/5062$# + """ + count: 1 + path: tests/Drupal/KernelTests/Core/Config/ConfigInstallTest.php + + - + message: """ + #^Call to deprecated method expectWarningMessage\\(\\) of class PHPUnit\\\\Framework\\\\TestCase\\: + https\\://github\\.com/sebastianbergmann/phpunit/issues/5062$# + """ + count: 1 + path: tests/Drupal/KernelTests/Core/Config/ConfigInstallTest.php + + - + message: """ + #^Call to deprecated method expectError\\(\\) of class PHPUnit\\\\Framework\\\\TestCase\\: + https\\://github\\.com/sebastianbergmann/phpunit/issues/5062$# + """ + count: 2 + path: tests/Drupal/KernelTests/Core/Database/ConnectionTest.php + - message: "#^Variable \\$expected_driver might not be defined\\.$#" count: 2 path: tests/Drupal/KernelTests/Core/Database/DriverSpecificKernelTestBase.php + - + message: """ + #^Call to deprecated method expectError\\(\\) of class PHPUnit\\\\Framework\\\\TestCase\\: + https\\://github\\.com/sebastianbergmann/phpunit/issues/5062$# + """ + count: 3 + path: tests/Drupal/KernelTests/Core/Database/StatementTest.php + + - + message: """ + #^Call to deprecated method expectErrorMessage\\(\\) of class PHPUnit\\\\Framework\\\\TestCase\\: + https\\://github\\.com/sebastianbergmann/phpunit/issues/5062$# + """ + count: 3 + path: tests/Drupal/KernelTests/Core/Database/StatementTest.php + - message: "#^Call to deprecated constant REQUEST_TIME\\: Deprecated in drupal\\:8\\.3\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use \\\\Drupal\\:\\:time\\(\\)\\-\\>getRequestTime\\(\\); $#" count: 4 path: tests/Drupal/KernelTests/Core/Entity/ContentEntityChangedTest.php + - + message: """ + #^Call to deprecated method loadRevision\\(\\) of class Drupal\\\\Core\\\\Entity\\\\EntityStorageInterface\\: + in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + \\\\Drupal\\\\Core\\\\Entity\\\\RevisionableStorageInterface\\:\\:loadRevision instead\\.$# + """ + count: 1 + path: tests/Drupal/KernelTests/Core/Entity/ContentEntityHasChangesTest.php + - message: "#^Variable \\$title might not be defined\\.$#" count: 2 @@ -2650,11 +3434,56 @@ parameters: count: 9 path: tests/Drupal/KernelTests/Core/Entity/EntityCrudHookTest.php + - + message: """ + #^Call to deprecated method loadRevision\\(\\) of class Drupal\\\\Core\\\\Entity\\\\EntityStorageInterface\\: + in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + \\\\Drupal\\\\Core\\\\Entity\\\\RevisionableStorageInterface\\:\\:loadRevision instead\\.$# + """ + count: 4 + path: tests/Drupal/KernelTests/Core/Entity/EntityDecoupledTranslationRevisionsTest.php + - message: "#^Variable \\$previous_untranslatable_field_value in isset\\(\\) always exists and is not nullable\\.$#" count: 2 path: tests/Drupal/KernelTests/Core/Entity/EntityDecoupledTranslationRevisionsTest.php + - + message: """ + #^Call to deprecated method loadRevision\\(\\) of class Drupal\\\\Core\\\\Entity\\\\EntityStorageInterface\\: + in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + \\\\Drupal\\\\Core\\\\Entity\\\\RevisionableStorageInterface\\:\\:loadRevision instead\\.$# + """ + count: 1 + path: tests/Drupal/KernelTests/Core/Entity/EntityDuplicateTest.php + + - + message: """ + #^Call to deprecated method loadRevision\\(\\) of class Drupal\\\\Core\\\\Entity\\\\EntityStorageInterface\\: + in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + \\\\Drupal\\\\Core\\\\Entity\\\\RevisionableStorageInterface\\:\\:loadRevision instead\\.$# + """ + count: 2 + path: tests/Drupal/KernelTests/Core/Entity/EntityFieldTest.php + + - + message: """ + #^Call to deprecated method loadRevision\\(\\) of class Drupal\\\\Core\\\\Entity\\\\EntityStorageInterface\\: + in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + \\\\Drupal\\\\Core\\\\Entity\\\\RevisionableStorageInterface\\:\\:loadRevision instead\\.$# + """ + count: 3 + path: tests/Drupal/KernelTests/Core/Entity/EntityRevisionTranslationTest.php + + - + message: """ + #^Call to deprecated method loadRevision\\(\\) of class Drupal\\\\Core\\\\Entity\\\\EntityStorageInterface\\: + in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + \\\\Drupal\\\\Core\\\\Entity\\\\RevisionableStorageInterface\\:\\:loadRevision instead\\.$# + """ + count: 1 + path: tests/Drupal/KernelTests/Core/Entity/EntityRevisionsTest.php + - message: "#^Variable \\$field might not be defined\\.$#" count: 9 @@ -2665,6 +3494,15 @@ parameters: count: 1 path: tests/Drupal/KernelTests/Core/Entity/EntityTypeConstraintsTest.php + - + message: """ + #^Call to deprecated method loadRevision\\(\\) of class Drupal\\\\Core\\\\Entity\\\\EntityStorageInterface\\: + in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + \\\\Drupal\\\\Core\\\\Entity\\\\RevisionableStorageInterface\\:\\:loadRevision instead\\.$# + """ + count: 1 + path: tests/Drupal/KernelTests/Core/Entity/FieldSqlStorageTest.php + - message: "#^Variable \\$e might not be defined\\.$#" count: 1 @@ -2680,6 +3518,33 @@ parameters: count: 1 path: tests/Drupal/KernelTests/Core/Entity/FieldableEntityDefinitionUpdateTest.php + - + message: """ + #^Call to deprecated method loadRevision\\(\\) of class Drupal\\\\Core\\\\Entity\\\\EntityStorageInterface\\: + in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + \\\\Drupal\\\\Core\\\\Entity\\\\RevisionableStorageInterface\\:\\:loadRevision instead\\.$# + """ + count: 2 + path: tests/Drupal/KernelTests/Core/Entity/RevisionRouteProviderTest.php + + - + message: """ + #^Call to deprecated method deleteRevision\\(\\) of class Drupal\\\\Core\\\\Entity\\\\EntityStorageInterface\\: + in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + \\\\Drupal\\\\Core\\\\Entity\\\\RevisionableStorageInterface\\:\\:deleteRevision instead\\.$# + """ + count: 1 + path: tests/Drupal/KernelTests/Core/Entity/RevisionableContentEntityBaseTest.php + + - + message: """ + #^Call to deprecated method loadRevision\\(\\) of class Drupal\\\\Core\\\\Entity\\\\EntityStorageInterface\\: + in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + \\\\Drupal\\\\Core\\\\Entity\\\\RevisionableStorageInterface\\:\\:loadRevision instead\\.$# + """ + count: 2 + path: tests/Drupal/KernelTests/Core/Entity/RevisionableContentEntityBaseTest.php + - message: "#^Variable \\$x might not be defined\\.$#" count: 1 @@ -2695,6 +3560,14 @@ parameters: count: 1 path: tests/Drupal/KernelTests/Core/KeyValueStore/GarbageCollectionTest.php + - + message: """ + #^Call to deprecated method expectErrorMessage\\(\\) of class PHPUnit\\\\Framework\\\\TestCase\\: + https\\://github\\.com/sebastianbergmann/phpunit/issues/5062$# + """ + count: 1 + path: tests/Drupal/KernelTests/Core/Render/Element/MachineNameTest.php + - message: "#^Call to deprecated constant REQUEST_TIME\\: Deprecated in drupal\\:8\\.3\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use \\\\Drupal\\:\\:time\\(\\)\\-\\>getRequestTime\\(\\); $#" count: 1 @@ -2730,11 +3603,44 @@ parameters: count: 1 path: tests/Drupal/Tests/BrowserTestBase.php + - + message: """ + #^Call to deprecated method getConfig\\(\\) of class GuzzleHttp\\\\Client\\: + Client\\:\\:getConfig will be removed in guzzlehttp/guzzle\\:8\\.0\\.$# + """ + count: 1 + path: tests/Drupal/Tests/BrowserTestBase.php + + - + message: """ + #^Call to deprecated method registerAutoloadNamespace\\(\\) of class Doctrine\\\\Common\\\\Annotations\\\\AnnotationRegistry\\: + This method is deprecated and will be removed in + doctrine/annotations 2\\.0\\. Annotations will be autoloaded in 2\\.0\\.$# + """ + count: 1 + path: tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php + - message: "#^Constructor of class Symfony\\\\Component\\\\ExpressionLanguage\\\\Expression has an unused parameter \\$expression\\.$#" count: 1 path: tests/Drupal/Tests/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumperTest.php + - + message: """ + #^Call to deprecated method expectWarning\\(\\) of class PHPUnit\\\\Framework\\\\TestCase\\: + https\\://github\\.com/sebastianbergmann/phpunit/issues/5062$# + """ + count: 1 + path: tests/Drupal/Tests/Component/PhpStorage/FileStorageTest.php + + - + message: """ + #^Call to deprecated method expectWarningMessage\\(\\) of class PHPUnit\\\\Framework\\\\TestCase\\: + https\\://github\\.com/sebastianbergmann/phpunit/issues/5062$# + """ + count: 1 + path: tests/Drupal/Tests/Component/PhpStorage/FileStorageTest.php + - message: "#^Constructor of class Drupal\\\\Tests\\\\Component\\\\Plugin\\\\Factory\\\\ArgumentsAllNull has an unused parameter \\$charismatic\\.$#" count: 1 @@ -2795,6 +3701,55 @@ parameters: count: 1 path: tests/Drupal/Tests/Composer/ComposerTest.php + - + message: "#^Call to deprecated method withConsecutive\\(\\) of class PHPUnit\\\\Framework\\\\MockObject\\\\Builder\\\\InvocationMocker\\.$#" + count: 1 + path: tests/Drupal/Tests/Core/Cache/CacheCollectorTest.php + + - + message: """ + #^Call to deprecated method expectError\\(\\) of class PHPUnit\\\\Framework\\\\TestCase\\: + https\\://github\\.com/sebastianbergmann/phpunit/issues/5062$# + """ + count: 1 + path: tests/Drupal/Tests/Core/Config/ConfigTest.php + + - + message: "#^Call to deprecated method withConsecutive\\(\\) of class PHPUnit\\\\Framework\\\\MockObject\\\\Builder\\\\InvocationMocker\\.$#" + count: 3 + path: tests/Drupal/Tests/Core/Cron/CronSuspendQueueDelayTest.php + + - + message: """ + #^Call to deprecated method expectError\\(\\) of class PHPUnit\\\\Framework\\\\TestCase\\: + https\\://github\\.com/sebastianbergmann/phpunit/issues/5062$# + """ + count: 1 + path: tests/Drupal/Tests/Core/Database/ConditionTest.php + + - + message: """ + #^Call to deprecated method findCaller\\(\\) of class Drupal\\\\Core\\\\Database\\\\Log\\: + in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + Connection\\:\\:findCallerFromDebugBacktrace\\(\\)\\.$# + """ + count: 1 + path: tests/Drupal/Tests/Core/Database/Stub/StubConnection.php + + - + message: """ + #^Fetching class constant class of deprecated class Drupal\\\\Core\\\\Database\\\\StatementWrapper\\: + in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use + \\\\Drupal\\\\Core\\\\Database\\\\StatementWrapperIterator instead\\.$# + """ + count: 1 + path: tests/Drupal/Tests/Core/Database/Stub/StubConnection.php + + - + message: "#^Call to deprecated method withConsecutive\\(\\) of class PHPUnit\\\\Framework\\\\MockObject\\\\Builder\\\\InvocationMocker\\.$#" + count: 2 + path: tests/Drupal/Tests/Core/Entity/EntityUnitTest.php + - message: "#^Trying to mock an undefined method getRevisionId\\(\\) on class Drupal\\\\Tests\\\\Core\\\\Entity\\\\UrlTestEntity\\.$#" count: 1 @@ -2805,6 +3760,83 @@ parameters: count: 1 path: tests/Drupal/Tests/Core/Entity/EntityUrlTest.php + - + message: "#^Call to deprecated method withConsecutive\\(\\) of class PHPUnit\\\\Framework\\\\MockObject\\\\Builder\\\\InvocationMocker\\.$#" + count: 6 + path: tests/Drupal/Tests/Core/Entity/KeyValueStore/KeyValueEntityStorageTest.php + + - + message: "#^Call to deprecated method withConsecutive\\(\\) of class PHPUnit\\\\Framework\\\\MockObject\\\\Builder\\\\InvocationMocker\\.$#" + count: 1 + path: tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageSchemaTest.php + + - + message: """ + #^Call to deprecated method expectError\\(\\) of class PHPUnit\\\\Framework\\\\TestCase\\: + https\\://github\\.com/sebastianbergmann/phpunit/issues/5062$# + """ + count: 2 + path: tests/Drupal/Tests/Core/EventSubscriber/RedirectResponseSubscriberTest.php + + - + message: """ + #^Call to deprecated method expectWarning\\(\\) of class PHPUnit\\\\Framework\\\\TestCase\\: + https\\://github\\.com/sebastianbergmann/phpunit/issues/5062$# + """ + count: 1 + path: tests/Drupal/Tests/Core/EventSubscriber/SpecialAttributesRouteSubscriberTest.php + + - + message: """ + #^Call to deprecated method expectWarningMessage\\(\\) of class PHPUnit\\\\Framework\\\\TestCase\\: + https\\://github\\.com/sebastianbergmann/phpunit/issues/5062$# + """ + count: 1 + path: tests/Drupal/Tests/Core/EventSubscriber/SpecialAttributesRouteSubscriberTest.php + + - + message: "#^Call to deprecated method withConsecutive\\(\\) of class PHPUnit\\\\Framework\\\\MockObject\\\\Builder\\\\InvocationMocker\\.$#" + count: 1 + path: tests/Drupal/Tests/Core/Extension/ModuleHandlerTest.php + + - + message: "#^Call to deprecated method withConsecutive\\(\\) of class PHPUnit\\\\Framework\\\\MockObject\\\\Builder\\\\InvocationMocker\\.$#" + count: 1 + path: tests/Drupal/Tests/Core/Form/FormCacheTest.php + + - + message: "#^Call to deprecated method withConsecutive\\(\\) of class PHPUnit\\\\Framework\\\\MockObject\\\\Builder\\\\InvocationMocker\\.$#" + count: 1 + path: tests/Drupal/Tests/Core/Form/FormErrorHandlerTest.php + + - + message: """ + #^Call to deprecated method getConfig\\(\\) of class GuzzleHttp\\\\Client\\: + Client\\:\\:getConfig will be removed in guzzlehttp/guzzle\\:8\\.0\\.$# + """ + count: 1 + path: tests/Drupal/Tests/Core/Http/ClientFactoryTest.php + + - + message: "#^Call to deprecated method withConsecutive\\(\\) of class PHPUnit\\\\Framework\\\\MockObject\\\\Builder\\\\InvocationMocker\\.$#" + count: 1 + path: tests/Drupal/Tests/Core/Menu/ContextualLinkManagerTest.php + + - + message: "#^Call to deprecated method withConsecutive\\(\\) of class PHPUnit\\\\Framework\\\\MockObject\\\\Builder\\\\InvocationMocker\\.$#" + count: 1 + path: tests/Drupal/Tests/Core/Menu/DefaultMenuLinkTreeManipulatorsTest.php + + - + message: "#^Call to deprecated method withConsecutive\\(\\) of class PHPUnit\\\\Framework\\\\MockObject\\\\Builder\\\\InvocationMocker\\.$#" + count: 2 + path: tests/Drupal/Tests/Core/Menu/LocalTaskManagerTest.php + + - + message: "#^Call to deprecated method withConsecutive\\(\\) of class PHPUnit\\\\Framework\\\\MockObject\\\\Builder\\\\InvocationMocker\\.$#" + count: 1 + path: tests/Drupal/Tests/Core/Menu/StaticMenuLinkOverridesTest.php + - message: "#^Call to method getDefinitions\\(\\) on an unknown class Drupal\\\\Core\\\\Plugin\\\\CategorizingPluginManagerTrait\\.$#" count: 1 @@ -2815,6 +3847,11 @@ parameters: count: 1 path: tests/Drupal/Tests/Core/Plugin/CategorizingPluginManagerTraitTest.php + - + message: "#^Call to deprecated method withConsecutive\\(\\) of class PHPUnit\\\\Framework\\\\MockObject\\\\Builder\\\\InvocationMocker\\.$#" + count: 1 + path: tests/Drupal/Tests/Core/Plugin/Discovery/DerivativeDiscoveryDecoratorTest.php + - message: "#^Constructor of class Drupal\\\\Tests\\\\Core\\\\Plugin\\\\Discovery\\\\TestContainerDerivativeDiscovery has an unused parameter \\$example_service\\.$#" count: 1 @@ -2825,7 +3862,120 @@ parameters: count: 1 path: tests/Drupal/Tests/Core/Plugin/TestPluginManager.php + - + message: """ + #^Call to deprecated method expectError\\(\\) of class PHPUnit\\\\Framework\\\\TestCase\\: + https\\://github\\.com/sebastianbergmann/phpunit/issues/5062$# + """ + count: 1 + path: tests/Drupal/Tests/Core/Render/ElementTest.php + + - + message: """ + #^Call to deprecated method expectErrorMessage\\(\\) of class PHPUnit\\\\Framework\\\\TestCase\\: + https\\://github\\.com/sebastianbergmann/phpunit/issues/5062$# + """ + count: 1 + path: tests/Drupal/Tests/Core/Render/ElementTest.php + + - + message: "#^Call to deprecated method withConsecutive\\(\\) of class PHPUnit\\\\Framework\\\\MockObject\\\\Builder\\\\InvocationMocker\\.$#" + count: 3 + path: tests/Drupal/Tests/Core/Routing/RouteBuilderTest.php + + - + message: """ + #^Call to deprecated method expectWarning\\(\\) of class PHPUnit\\\\Framework\\\\TestCase\\: + https\\://github\\.com/sebastianbergmann/phpunit/issues/5062$# + """ + count: 1 + path: tests/Drupal/Tests/Core/Security/DoTrustedCallbackTraitTest.php + + - + message: """ + #^Call to deprecated method expectWarningMessage\\(\\) of class PHPUnit\\\\Framework\\\\TestCase\\: + https\\://github\\.com/sebastianbergmann/phpunit/issues/5062$# + """ + count: 1 + path: tests/Drupal/Tests/Core/Security/DoTrustedCallbackTraitTest.php + + - + message: """ + #^Call to deprecated method assertObjectHasAttribute\\(\\) of class PHPUnit\\\\Framework\\\\Assert\\: + https\\://github\\.com/sebastianbergmann/phpunit/issues/4601$# + """ + count: 2 + path: tests/Drupal/Tests/Core/TempStore/PrivateTempStoreTest.php + + - + message: """ + #^Call to deprecated method assertObjectNotHasAttribute\\(\\) of class PHPUnit\\\\Framework\\\\Assert\\: + https\\://github\\.com/sebastianbergmann/phpunit/issues/4601$# + """ + count: 1 + path: tests/Drupal/Tests/Core/TempStore/PrivateTempStoreTest.php + + - + message: "#^Call to deprecated method withConsecutive\\(\\) of class PHPUnit\\\\Framework\\\\MockObject\\\\Builder\\\\InvocationMocker\\.$#" + count: 2 + path: tests/Drupal/Tests/Core/TempStore/PrivateTempStoreTest.php + + - + message: """ + #^Call to deprecated method assertObjectHasAttribute\\(\\) of class PHPUnit\\\\Framework\\\\Assert\\: + https\\://github\\.com/sebastianbergmann/phpunit/issues/4601$# + """ + count: 1 + path: tests/Drupal/Tests/Core/TempStore/SharedTempStoreTest.php + + - + message: """ + #^Call to deprecated method assertObjectNotHasAttribute\\(\\) of class PHPUnit\\\\Framework\\\\Assert\\: + https\\://github\\.com/sebastianbergmann/phpunit/issues/4601$# + """ + count: 1 + path: tests/Drupal/Tests/Core/TempStore/SharedTempStoreTest.php + + - + message: "#^Call to deprecated method withConsecutive\\(\\) of class PHPUnit\\\\Framework\\\\MockObject\\\\Builder\\\\InvocationMocker\\.$#" + count: 3 + path: tests/Drupal/Tests/Core/TempStore/SharedTempStoreTest.php + - message: "#^Variable \\$value in isset\\(\\) always exists and is not nullable\\.$#" count: 1 path: tests/Drupal/Tests/Core/Test/AssertContentTraitTest.php + + - + message: """ + #^Call to deprecated method setMethods\\(\\) of class PHPUnit\\\\Framework\\\\MockObject\\\\MockBuilder\\: + https\\://github\\.com/sebastianbergmann/phpunit/pull/3687$# + """ + count: 1 + path: tests/Drupal/Tests/Core/Test/PhpUnitTestRunnerTest.php + + - + message: "#^Call to deprecated method withConsecutive\\(\\) of class PHPUnit\\\\Framework\\\\MockObject\\\\Builder\\\\InvocationMocker\\.$#" + count: 1 + path: tests/Drupal/Tests/Core/UrlTest.php + + - + message: """ + #^Call to deprecated method getConfig\\(\\) of class GuzzleHttp\\\\ClientInterface\\: + ClientInterface\\:\\:getConfig will be removed in guzzlehttp/guzzle\\:8\\.0\\.$# + """ + count: 1 + path: tests/Drupal/Tests/DrupalTestBrowser.php + + - + message: "#^Class Drupal\\\\Tests\\\\Listeners\\\\DrupalListener implements deprecated interface PHPUnit\\\\Framework\\\\TestListener\\.$#" + count: 1 + path: tests/Drupal/Tests/Listeners/DrupalListener.php + + - + message: """ + #^Usage of deprecated trait PHPUnit\\\\Framework\\\\TestListenerDefaultImplementation in class Drupal\\\\Tests\\\\Listeners\\\\DrupalListener\\: + The `TestListener` interface is deprecated$# + """ + count: 1 + path: tests/Drupal/Tests/Listeners/DrupalListener.php -- GitLab