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 1f54e5a commit 5091c3aCopy full SHA for 5091c3a
src/Analyser/LazyInternalScopeFactory.php
@@ -17,10 +17,16 @@
17
final class LazyInternalScopeFactory implements InternalScopeFactory
18
{
19
20
+ /**
21
+ * @var int|array{min: int, max: int}|null
22
+ */
23
+ private int|array|null $phpVersion;
24
+
25
public function __construct(
26
private Container $container,
27
)
28
29
+ $this->phpVersion = $this->container->getParameter('phpVersion');
30
}
31
32
public function create(
@@ -58,7 +64,7 @@ public function create(
58
64
$context,
59
65
$this->container->getByType(PhpVersion::class),
60
66
$this->container->getByType(AttributeReflectionFactory::class),
61
- $this->container->getParameter('phpVersion'),
67
+ $this->phpVersion,
62
68
$declareStrictTypes,
63
69
$function,
70
$namespace,
0 commit comments