From e33f97cd8bcdedc3b0169a2b01b835724f3d797f Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Thu, 17 Mar 2022 22:53:08 +0100 Subject: [PATCH] Add phpdoc to SecurityPolicyInterface --- src/Sandbox/SecurityPolicyInterface.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Sandbox/SecurityPolicyInterface.php b/src/Sandbox/SecurityPolicyInterface.php index e9e82c965..0166f67a3 100644 --- a/src/Sandbox/SecurityPolicyInterface.php +++ b/src/Sandbox/SecurityPolicyInterface.php @@ -19,16 +19,26 @@ namespace Twig\Sandbox; interface SecurityPolicyInterface { /** + * @param string[] $tags + * @param string[] $filters + * @param string[] $functions + * * @throws SecurityError */ public function checkSecurity($tags, $filters, $functions); /** + * @param object $obj + * @param string $method + * * @throws SecurityNotAllowedMethodError */ public function checkMethodAllowed($obj, $method); /** + * @param object $obj + * @param string $property + * * @throws SecurityNotAllowedPropertyError */ public function checkPropertyAllowed($obj, $property);