File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change 1
- <?php
2
-
3
- declare (strict_types=1 );
1
+ <?php declare (strict_types = 1 );
4
2
5
3
namespace PHPStan \Testing \PHPUnit ;
6
4
7
- final class ContainerInitializer {
8
- /**
9
- * @var array<string, true>
10
- */
11
- private static $ initialized = [];
5
+ use function array_key_exists ;
6
+
7
+ final class ContainerInitializer
8
+ {
12
9
13
- static public function initialize (string $ testClassName ): void
10
+ /** @var array<string, true> */
11
+ private static array $ initialized = [];
12
+
13
+ public static function initialize (string $ testClassName ): void
14
14
{
15
15
if (array_key_exists ($ testClassName , self ::$ initialized )) {
16
16
return ;
@@ -20,4 +20,5 @@ static public function initialize(string $testClassName): void
20
20
21
21
self ::$ initialized [$ testClassName ] = true ;
22
22
}
23
+
23
24
}
You can’t perform that action at this time.
0 commit comments