Add phpstan deprecation rules
8 unresolved threads
8 unresolved threads
Closes #3263109
Merge request reports
Activity
added 3 commits
-
40e00ed8...3194ddf3 - 2 commits from branch
project:10.0.x
- c3f72c24 - Add phpstan deprecation package. Start ignoring some rules.
-
40e00ed8...3194ddf3 - 2 commits from branch
added 1 commit
- 519bba34 - Move phpstan-deprecation-rules to require-dev.
112 112 // Clear the annotation loaders of any previous annotation classes. 113 113 AnnotationRegistry::reset(); 114 114 // Register the namespaces of classes that can be used for annotations. 115 // @phpstan-ignore-next-line 115 116 AnnotationRegistry::registerLoader('class_exists'); 625 728 count: 1 626 729 path: modules/system/tests/modules/advisory_feed_test/src/AdvisoriesTestHttpClient.php 627 730 731 - 732 message: """ 733 #^Call to deprecated function deprecation_test_function\\(\\)\\: 734 in drupal\\:8\\.4\\.0 and is removed from drupal\\:9\\.0\\.0\\. This is 735 the deprecation message for deprecated_test_function\\(\\)\\.$# 736 """ 737 count: 1 738 path: modules/system/tests/modules/deprecation_test/src/DeprecatedController.php 1795 - 1796 message: """ 1797 #^Call to deprecated method getConfig\\(\\) of class GuzzleHttp\\\\ClientInterface\\: 1798 ClientInterface\\:\\:getConfig will be removed in guzzlehttp/guzzle\\:8\\.0\\.$# 1799 """ 1800 count: 1 1801 path: tests/Drupal/Tests/DrupalTestBrowser.php 1802 1803 - 1804 message: """ 1805 #^Usage of deprecated trait Drupal\\\\Tests\\\\Traits\\\\ExpectDeprecationTrait in class Drupal\\\\Tests\\\\ExpectDeprecationTest\\: 1806 in drupal\\:9\\.1\\.0 and is removed from drupal\\:10\\.0\\.0\\. Use 1807 \\\\Symfony\\\\Bridge\\\\PhpUnit\\\\ExpectDeprecationTrait instead\\.$# 1808 """ 1809 count: 1 1810 path: tests/Drupal/Tests/ExpectDeprecationTest.php 915 1612 count: 1 916 1613 path: tests/Drupal/KernelTests/Core/Test/BrowserTestBaseTest.php 917 1614 1615 - 1616 message: """ 1617 #^Call to deprecated function deprecation_test_function\\(\\)\\: 1618 in drupal\\:8\\.4\\.0 and is removed from drupal\\:9\\.0\\.0\\. This is 1619 the deprecation message for deprecated_test_function\\(\\)\\.$# 1620 """ 1621 count: 1 1622 path: tests/Drupal/KernelTests/Core/Test/PhpUnitBridgeTest.php added 9 commits
-
a667b69d...f4311179 - 8 commits from branch
project:10.0.x
- 26bdd75c - Merge branch '10.0.x' into 3263109-use-phpstan-for
-
a667b69d...f4311179 - 8 commits from branch
added 1 commit
- 763f5f00 - Playing with @deprecated annotation in tests
added 1 commit
- ff9a3c06 - Reverting changes to ConfigStorageStagingTest
added 1 commit
- 013aec3e - Add deprecation tags to legacy test methods.
145 145 protected function doWrite($name, $data) { 146 146 // @todo Remove the 'return' option in Drupal 11. 147 147 // @see https://www.drupal.org/project/drupal/issues/3256524 148 // @phpstan-ignore-next-line 222 223 public function delete($name) { 223 224 // @todo Remove the 'return' option in Drupal 11. 224 225 // @see https://www.drupal.org/project/drupal/issues/3256524 226 // @phpstan-ignore-next-line 237 239 public function rename($name, $new_name) { 238 240 // @todo Remove the 'return' option in Drupal 11. 239 241 // @see https://www.drupal.org/project/drupal/issues/3256524 242 // @phpstan-ignore-next-line 18 18 /** 19 19 * Tests file size upload errors. 20 20 * 21 * @deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. 22 * Use \Drupal\file\Upload\FileUploadHandler::handleFileUpload() instead. 23 * 24 * @see https://www.drupal.org/node/3239547 25 * - Comment on lines +21 to +25
Well, the %extra_info% here makes sense on the deprecated runtime function (
_file_save_upload_single()
in this case). But in a deprecation test, it does not... You will not use\Drupal\file\Upload\FileUploadHandler::handleFileUpload()
in place oftestFileSaveUploadSingleErrorFormSize()
.That's why in an earlier version I was suggesting to use sth like
This is a deprecation test.
. It does not add anything to the info, agree, but it allows to pass the CS rule that requires %extra_info% to be present.Same in the other cases of the MR
- Resolved by Tim Mallezie
- Resolved by Tim Mallezie
- Resolved by Tim Mallezie
added 1 commit
- 8b055a1e - Remove newline, add phpstan inline comment to deprecation tests.
added 1 commit
- 1b595b25 - Put ignore comment in class comment docblock.
Please register or sign in to reply