1818 */
1919final class ConfigTest extends TestCase
2020{
21- public function testConfig ()
21+ public function testConfig (): void
2222 {
2323 $ config = new Config ();
2424
2525 self ::assertInstanceOf (ConfigInterface::class, $ config );
2626 self ::assertNotEmpty ($ config ->getCustomFixers ());
2727 }
2828
29- public function testAllDefaultRulesAreSpecified ()
29+ public function testAllDefaultRulesAreSpecified (): void
3030 {
3131 $ config = new Config ();
32+ /** @var array<string, mixed> $configRules */
3233 $ configRules = $ config ->getRules ();
3334 $ ruleSet = new RuleSet ($ configRules );
3435 $ rules = $ ruleSet ->getRules ();
@@ -78,7 +79,7 @@ public function testAllDefaultRulesAreSpecified()
7879 self ::assertEquals ($ orderedCurrentRules , $ currentRules , 'Order the rules alphabetically please ' );
7980 }
8081
81- public function testFutureMode ()
82+ public function testFutureMode (): void
8283 {
8384 \putenv ('PHP_CS_FIXER_FUTURE_MODE ' );
8485
@@ -89,7 +90,7 @@ public function testFutureMode()
8990 self ::assertNotEmpty (\getenv ('PHP_CS_FIXER_FUTURE_MODE ' ));
9091 }
9192
92- public function testTypes ()
93+ public function testTypes (): void
9394 {
9495 $ rules = (new Config (Config::APP_V1 ))->getRules ();
9596 self ::assertFalse ($ rules ['declare_strict_types ' ]);
@@ -106,7 +107,7 @@ public function testTypes()
106107 self ::assertSame ((new Config ())->getRules (), (new Config (Config::APP_V2 ))->getRules ());
107108 }
108109
109- public function testOverwrite ()
110+ public function testOverwrite (): void
110111 {
111112 $ rules = (new Config (Config::APP_V2 ))->getRules ();
112113 self ::assertTrue ($ rules ['declare_strict_types ' ]);
0 commit comments