Skip to content
Snippets Groups Projects
Unverified Commit 4cf7a965 authored by Alex Pott's avatar Alex Pott
Browse files

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

parent 5972c776
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment