We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72e37dc commit d2b7e81Copy full SHA for d2b7e81
src/Analyser/LazyInternalScopeFactory.php
@@ -17,10 +17,14 @@
17
final class LazyInternalScopeFactory implements InternalScopeFactory
18
{
19
20
+ /** @var int|array{min: int, max: int}|null */
21
+ private int|array|null $phpVersion;
22
+
23
public function __construct(
24
private Container $container,
25
)
26
27
+ $this->phpVersion = $this->container->getParameter('phpVersion');
28
}
29
30
public function create(
@@ -58,7 +62,7 @@ public function create(
58
62
$context,
59
63
$this->container->getByType(PhpVersion::class),
60
64
$this->container->getByType(AttributeReflectionFactory::class),
61
- $this->container->getParameter('phpVersion'),
65
+ $this->phpVersion,
66
$declareStrictTypes,
67
$function,
68
$namespace,
0 commit comments