We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c4c0cd commit 1648f00Copy full SHA for 1648f00
src/Analyser/StatementContext.php
@@ -2,6 +2,14 @@
2
3
namespace PHPStan\Analyser;
4
5
+/**
6
+ * Object of this class is one of the parameters of `NodeScopeResolver::processStmtNodes()`.
7
+ *
8
+ * It determines whether loops will be analysed once or multiple times
9
+ * until the types "stabilize".
10
11
+ * When in doubt, use `StatementContext::createTopLevel()`.
12
+ */
13
final class StatementContext
14
{
15
@@ -11,11 +19,17 @@ private function __construct(
19
20
}
21
22
+ /**
23
+ * @api
24
25
public static function createTopLevel(): self
26
16
27
return new self(true);
17
28
18
29
30
31
32
33
public static function createDeep(): self
34
35
return new self(false);
0 commit comments