public function checkPropertyAllowed($obj, $property, int $lineno = -1, ?Source $source = null) : void { if ($this->isSandboxed($source)) { try { $this->policy ->checkPropertyAllowed($obj, $property); } catch (SecurityNotAllowedPropertyError $e) { $e->setSourceContext($source); $e->setTemplateLine($lineno); throw $e; } } }