File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change 1313class PHPUnitVersionDetector
1414{
1515
16- private ?PHPUnitVersion $ PHPUnitVersion = null ;
17-
1816 private ReflectionProvider $ reflectionProvider ;
1917
2018 public function __construct (ReflectionProvider $ reflectionProvider )
@@ -24,10 +22,6 @@ public function __construct(ReflectionProvider $reflectionProvider)
2422
2523 public function create (): PHPUnitVersion
2624 {
27- if ($ this ->PHPUnitVersion !== null ) {
28- return $ this ->PHPUnitVersion ;
29- }
30-
3125 $ majorVersion = null ;
3226 if ($ this ->reflectionProvider ->hasClass (TestCase::class)) {
3327 $ testCase = $ this ->reflectionProvider ->getClass (TestCase::class);
@@ -48,7 +42,7 @@ public function create(): PHPUnitVersion
4842 }
4943 }
5044
51- return $ this -> PHPUnitVersion = new PHPUnitVersion ($ majorVersion );
45+ return new PHPUnitVersion ($ majorVersion );
5246 }
5347
5448}
You can’t perform that action at this time.
0 commit comments