diff --git a/composer.json b/composer.json index 6116d94226f1008bc3708fafc94eed869d602332..0c476217557afc21d49bd99c3cd477e5715bc53b 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,7 @@ "drupal/coder": "^8.3.10", "instaclick/php-webdriver": "^1.4.1", "justinrainbow/json-schema": "^5.2", - "mglaman/phpstan-drupal": "^1.1.31", + "mglaman/phpstan-drupal": "^1.1.32", "mikey179/vfsstream": "^1.6.11", "phpspec/prophecy-phpunit": "^2", "phpstan/extension-installer": "^1.1", diff --git a/composer.lock b/composer.lock index 7e28093cccd6ace8fcb4d4b06a8c78d1b0c28c59..e8abbe8b73e53be54b0265f9108d8888b8133cf8 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": "e2a3d9c74748e488e1a7617d3a6b0202", + "content-hash": "a6b154bc83b4c6d6902fb1400bbe5f09", "packages": [ { "name": "asm89/stack-cors", @@ -5103,16 +5103,16 @@ }, { "name": "mglaman/phpstan-drupal", - "version": "1.1.31", + "version": "1.1.32", "source": { "type": "git", "url": "https://github.com/mglaman/phpstan-drupal.git", - "reference": "266474ca92b6cfe7443359c6a5972698781aef9f" + "reference": "d8a70aca702df6fcb95a50afffbe3c0ea407ad93" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/mglaman/phpstan-drupal/zipball/266474ca92b6cfe7443359c6a5972698781aef9f", - "reference": "266474ca92b6cfe7443359c6a5972698781aef9f", + "url": "https://api.github.com/repos/mglaman/phpstan-drupal/zipball/d8a70aca702df6fcb95a50afffbe3c0ea407ad93", + "reference": "d8a70aca702df6fcb95a50afffbe3c0ea407ad93", "shasum": "" }, "require": { @@ -5187,7 +5187,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.31" + "source": "https://github.com/mglaman/phpstan-drupal/tree/1.1.32" }, "funding": [ { @@ -5203,7 +5203,7 @@ "type": "tidelift" } ], - "time": "2023-04-27T17:33:01+00:00" + "time": "2023-05-10T20:44:42+00:00" }, { "name": "mikey179/vfsstream", diff --git a/composer/Metapackage/DevDependencies/composer.json b/composer/Metapackage/DevDependencies/composer.json index 1b73a18bf94533c9bfab4cae2c8e54bffff4166a..35154070e9ad2c7ed883cb79343d8d06c6440a15 100644 --- a/composer/Metapackage/DevDependencies/composer.json +++ b/composer/Metapackage/DevDependencies/composer.json @@ -14,7 +14,7 @@ "drupal/coder": "^8.3.10", "instaclick/php-webdriver": "^1.4.1", "justinrainbow/json-schema": "^5.2", - "mglaman/phpstan-drupal": "^1.1.31", + "mglaman/phpstan-drupal": "^1.1.32", "mikey179/vfsstream": "^1.6.11", "phpspec/prophecy-phpunit": "^2", "phpstan/extension-installer": "^1.1", diff --git a/composer/Metapackage/PinnedDevDependencies/composer.json b/composer/Metapackage/PinnedDevDependencies/composer.json index 114a66a95068f00b736bb0f992cc42785a08ef58..cc7424227bc2d84be8682de92c29d2156b475922 100644 --- a/composer/Metapackage/PinnedDevDependencies/composer.json +++ b/composer/Metapackage/PinnedDevDependencies/composer.json @@ -23,7 +23,7 @@ "drupal/coder": "8.3.16", "instaclick/php-webdriver": "1.4.16", "justinrainbow/json-schema": "5.2.12", - "mglaman/phpstan-drupal": "1.1.31", + "mglaman/phpstan-drupal": "1.1.32", "mikey179/vfsstream": "v1.6.11", "myclabs/deep-copy": "1.11.0", "nikic/php-parser": "v4.15.2", diff --git a/core/phpstan-baseline.neon b/core/phpstan-baseline.neon index b592d0f05b9855f3249120cf87135c7d99f9fd48..23d82fff8e4e7ff06c7fe592b2444d0d9604150c 100644 --- a/core/phpstan-baseline.neon +++ b/core/phpstan-baseline.neon @@ -420,11 +420,6 @@ parameters: count: 1 path: lib/Drupal/Core/Entity/KeyValueStore/KeyValueContentEntityStorage.php - - - message: "#^Relying on entity queries to check access by default is deprecated in drupal\\:9\\.2\\.0 and an error will be thrown from drupal\\:10\\.0\\.0\\. Call \\\\Drupal\\\\Core\\\\Entity\\\\Query\\\\QueryInterface\\:\\:accessCheck\\(\\) with TRUE or FALSE to specify whether access should be checked\\.$#" - count: 1 - path: lib/Drupal/Core/Entity/Plugin/EntityReferenceSelection/DefaultSelection.php - - message: "#^Variable \\$selected_bundles might not be defined\\.$#" count: 2 @@ -1670,11 +1665,6 @@ parameters: count: 1 path: modules/migrate_drupal/src/Plugin/migrate/EntityReferenceTranslationDeriver.php - - - message: "#^Relying on entity queries to check access by default is deprecated in drupal\\:9\\.2\\.0 and an error will be thrown from drupal\\:10\\.0\\.0\\. Call \\\\Drupal\\\\Core\\\\Entity\\\\Query\\\\QueryInterface\\:\\:accessCheck\\(\\) with TRUE or FALSE to specify whether access should be checked\\.$#" - count: 1 - path: modules/migrate_drupal/src/Plugin/migrate/source/ContentEntity.php - - message: "#^Constructor of class Drupal\\\\migrate_drupal\\\\Plugin\\\\migrate\\\\source\\\\ContentEntityDeriver has an unused parameter \\$base_plugin_id\\.$#" count: 1 @@ -2110,11 +2100,6 @@ parameters: count: 1 path: modules/system/tests/modules/batch_test/batch_test.callbacks.inc - - - message: "#^File core/modules/system/tests/modules/entity_test/entity_test\\.inc could not be loaded from Drupal\\\\Core\\\\Extension\\\\ModuleHandlerInterface\\:\\:loadInclude$#" - count: 2 - path: modules/system/tests/modules/entity_test/entity_test.install - - 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 @@ -2905,6 +2890,21 @@ parameters: count: 2 path: tests/Drupal/KernelTests/Core/Database/DriverSpecificKernelTestBase.php + - + message: "#^\\#date_date_callbacks callback array\\{\\$this\\(Drupal\\\\KernelTests\\\\Core\\\\Datetime\\\\DatelistElementFormTest\\), string\\} at key '0' is not callable\\.$#" + count: 1 + path: tests/Drupal/KernelTests/Core/Datetime/DatelistElementFormTest.php + + - + message: "#^\\#date_date_callbacks callback array\\{\\$this\\(Drupal\\\\KernelTests\\\\Core\\\\Datetime\\\\DatetimeElementFormTest\\), string\\} at key '0' is not callable\\.$#" + count: 1 + path: tests/Drupal/KernelTests/Core/Datetime/DatetimeElementFormTest.php + + - + message: "#^\\#date_time_callbacks callback array\\{\\$this\\(Drupal\\\\KernelTests\\\\Core\\\\Datetime\\\\DatetimeElementFormTest\\), string\\} at key '0' is not callable\\.$#" + count: 1 + path: tests/Drupal/KernelTests/Core/Datetime/DatetimeElementFormTest.php + - message: "#^Relying on entity queries to check access by default is deprecated in drupal\\:9\\.2\\.0 and an error will be thrown from drupal\\:10\\.0\\.0\\. Call \\\\Drupal\\\\Core\\\\Entity\\\\Query\\\\QueryInterface\\:\\:accessCheck\\(\\) with TRUE or FALSE to specify whether access should be checked\\.$#" count: 75 @@ -3140,11 +3140,6 @@ parameters: count: 1 path: tests/Drupal/Tests/Core/Render/RendererCallbackTest.php - - - message: "#^\\#access_callback callback class 'Drupal\\\\\\\\Tests\\\\\\\\Coreā¦' at key '0' does not implement Drupal\\\\Core\\\\Security\\\\TrustedCallbackInterface\\.$#" - count: 4 - path: tests/Drupal/Tests/Core/Render/RendererTest.php - - message: "#^Variable \\$value in isset\\(\\) always exists and is not nullable\\.$#" count: 1