X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Flib%2FDrupal%2FCore%2FTemplate%2FTwigSandboxPolicy.php;h=4adc9d60d30aeaa9046acf9220cb560e6d9d076e;hb=refs%2Fheads%2Fd864;hp=5dfc4b5bc80fae0db719ffcfcce765a8109196fe;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/lib/Drupal/Core/Template/TwigSandboxPolicy.php b/web/core/lib/Drupal/Core/Template/TwigSandboxPolicy.php index 5dfc4b5bc..4adc9d60d 100644 --- a/web/core/lib/Drupal/Core/Template/TwigSandboxPolicy.php +++ b/web/core/lib/Drupal/Core/Template/TwigSandboxPolicy.php @@ -17,19 +17,25 @@ class TwigSandboxPolicy implements \Twig_Sandbox_SecurityPolicyInterface { /** * An array of whitelisted methods in the form of methodName => TRUE. + * + * @var array */ - protected $whitelisted_methods = NULL; + protected $whitelisted_methods; /** * An array of whitelisted method prefixes -- any method starting with one of * these prefixes will be allowed. + * + * @var array */ - protected $whitelisted_prefixes = NULL; + protected $whitelisted_prefixes; /** * An array of class names for which any method calls are allowed. + * + * @var array */ - protected $whitelisted_classes = NULL; + protected $whitelisted_classes; /** * Constructs a new TwigSandboxPolicy object.