Use `static` data providers

by @OskarStark

Some issues have been detected in this pull request

Issues that can be fixed by applying a patch

Review the proposed patch then download it to apply it manually or execute the following command from the repository root directory:

curl https://fabbot.io/patch/symfony/symfony/48283/cbb8b64b35459deffb307e0d5737d908c448d0eb/cs.diff | patch -p0
diff -ru src/Symfony/Bridge/Monolog/Tests/Processor/DebugProcessorTest.php src/Symfony/Bridge/Monolog/Tests/Processor/DebugProcessorTest.php
--- src/Symfony/Bridge/Monolog/Tests/Processor/DebugProcessorTest.php	2022-11-22 12:55:53.463905614 +0000
+++ src/Symfony/Bridge/Monolog/Tests/Processor/DebugProcessorTest.php	2022-11-22 12:56:14.168725993 +0000
@@ -89,6 +89,7 @@
 
     /**
      * @group legacy
+     *
      * @expectedDeprecation The "Symfony\Bridge\Monolog\Processor\DebugProcessor::getLogs()" method will have a new "Request $request = null" argument in version 5.0, not defining it is deprecated since Symfony 4.2.
      * @expectedDeprecation The "Symfony\Bridge\Monolog\Processor\DebugProcessor::countErrors()" method will have a new "Request $request = null" argument in version 5.0, not defining it is deprecated since Symfony 4.2.
      */
diff -ru src/Symfony/Bridge/Twig/Tests/Translation/TwigExtractorTest.php src/Symfony/Bridge/Twig/Tests/Translation/TwigExtractorTest.php
--- src/Symfony/Bridge/Twig/Tests/Translation/TwigExtractorTest.php	2022-11-22 12:55:54.499946665 +0000
+++ src/Symfony/Bridge/Twig/Tests/Translation/TwigExtractorTest.php	2022-11-22 12:56:17.030839397 +0000
@@ -52,6 +52,7 @@
 
     /**
      * @group legacy
+     *
      * @dataProvider getLegacyExtractData
      */
     public function testLegacyExtract($template, $messages)
diff -ru src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTest.php src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTest.php
--- src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTest.php	2022-11-22 12:55:55.143972183 +0000
+++ src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTest.php	2022-11-22 12:56:42.707856787 +0000
@@ -918,6 +918,7 @@
 
     /**
      * @group legacy
+     *
      * @expectedDeprecation Translations directory "%s/Resources/translations" is deprecated since Symfony 4.2, use "%s/translations" instead.
      */
     public function testLegacyTranslationsDirectory()
@@ -1126,6 +1127,7 @@
 
     /**
      * @group legacy
+     *
      * @expectedDeprecation The "framework.validation.strict_email" configuration key has been deprecated in Symfony 4.1. Use the "framework.validation.email_validation_mode" configuration key instead.
      */
     public function testCannotConfigureStrictEmailAndEmailValidationModeAtTheSameTime()
@@ -1137,6 +1139,7 @@
 
     /**
      * @group legacy
+     *
      * @expectedDeprecation The "framework.validation.strict_email" configuration key has been deprecated in Symfony 4.1. Use the "framework.validation.email_validation_mode" configuration key instead.
      */
     public function testEnabledStrictEmailOptionIsMappedToStrictEmailValidationMode()
@@ -1148,6 +1151,7 @@
 
     /**
      * @group legacy
+     *
      * @expectedDeprecation The "framework.validation.strict_email" configuration key has been deprecated in Symfony 4.1. Use the "framework.validation.email_validation_mode" configuration key instead.
      */
     public function testDisabledStrictEmailOptionIsMappedToLooseEmailValidationMode()

0
Common Typos

0
License Headers

0
Pull Request Contributor Headers

0
File Permissions

0
Merge Commits

0
Exception Messages Formatting

0
Usage of void in test files

0
Use ::class whenever possible

0
Deprecation Messages