File tree 2 files changed +4
-5
lines changed
src/Symfony/Bridge/PhpUnit/TextUI 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 12
12
namespace Symfony \Bridge \PhpUnit \TextUI ;
13
13
14
14
use PHPUnit \TextUI \Command as BaseCommand ;
15
+ use PHPUnit \TextUI \TestRunner as BaseRunner ;
15
16
16
17
if (class_exists ('PHPUnit_Runner_Version ' ) && version_compare (\PHPUnit_Runner_Version::id (), '6.0.0 ' , '< ' )) {
17
18
class_alias ('Symfony\Bridge\PhpUnit\Legacy\Command ' , 'Symfony\Bridge\PhpUnit\TextUI\Command ' );
@@ -26,7 +27,7 @@ class Command extends BaseCommand
26
27
/**
27
28
* {@inheritdoc}
28
29
*/
29
- protected function createRunner ()
30
+ protected function createRunner (): BaseRunner
30
31
{
31
32
return new TestRunner ($ this ->arguments ['loader ' ]);
32
33
}
Original file line number Diff line number Diff line change @@ -27,11 +27,11 @@ class TestRunner extends BaseRunner
27
27
/**
28
28
* {@inheritdoc}
29
29
*/
30
- protected function handleConfiguration (array &$ arguments )
30
+ protected function handleConfiguration (array &$ arguments ): void
31
31
{
32
32
$ listener = new SymfonyTestsListener ();
33
33
34
- $ result = parent ::handleConfiguration ($ arguments );
34
+ parent ::handleConfiguration ($ arguments );
35
35
36
36
$ arguments ['listeners ' ] = isset ($ arguments ['listeners ' ]) ? $ arguments ['listeners ' ] : array ();
37
37
@@ -48,8 +48,6 @@ protected function handleConfiguration(array &$arguments)
48
48
if (!$ registeredLocally ) {
49
49
$ arguments ['listeners ' ][] = $ listener ;
50
50
}
51
-
52
- return $ result ;
53
51
}
54
52
}
55
53
}
You can’t perform that action at this time.
0 commit comments