diff --git a/src/Extension/SandboxExtension.php b/src/Extension/SandboxExtension.php index f3cba163d16..7fe17df3ea2 100644 --- a/src/Extension/SandboxExtension.php +++ b/src/Extension/SandboxExtension.php @@ -24,7 +24,7 @@ final class SandboxExtension extends AbstractExtension private bool $sandboxedGlobally; private bool $sandboxed = false; private SecurityPolicyInterface $policy; - private SourcePolicyInterface $sourcePolicy; + private ?SourcePolicyInterface $sourcePolicy; public function __construct(SecurityPolicyInterface $policy, $sandboxed = false, SourcePolicyInterface $sourcePolicy = null) {