Unverified Commit 4cf7a965 authored by alexpott's avatar alexpott

Issue #2921682 by zaporylie: Array member variables initialized with NULL in TwigSandboxPolicy

parent 5972c776
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment