File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,10 @@ final class InitializedSymfonyExtensionEnvironment implements SymfonyExtensionEn
27
27
/** @var Suite */
28
28
private $ suite ;
29
29
30
- /** @var Context[] */
30
+ /**
31
+ * @var array<class-string<Context>, Context>
32
+ * @psalm-var class-string-map<T as Context, T>
33
+ */
31
34
private $ contexts = [];
32
35
33
36
public function __construct (Suite $ suite )
@@ -74,6 +77,12 @@ public function hasContextClass($class): bool
74
77
/**
75
78
* @see http://behat.org/en/latest/cookbooks/accessing_contexts_from_each_other.html
76
79
*
80
+ * @template T of Context
81
+ *
82
+ * @param class-string<T> $class
83
+ *
84
+ * @return T
85
+ *
77
86
* @throws ContextNotFoundException
78
87
*/
79
88
public function getContext (string $ class ): Context
You can’t perform that action at this time.
0 commit comments