Rename variable

This commit is contained in:
Vincent Langlet
2022-03-15 08:59:44 +01:00
parent 53c42377f5
commit 3f07c38c9a
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -91,11 +91,11 @@ final class SandboxExtension extends AbstractExtension
}
}
public function checkPropertyAllowed($obj, $method, int $lineno = -1, Source $source = null)
public function checkPropertyAllowed($obj, $property, int $lineno = -1, Source $source = null)
{
if ($this->isSandboxed()) {
try {
$this->policy->checkPropertyAllowed($obj, $method);
$this->policy->checkPropertyAllowed($obj, $property);
} catch (SecurityNotAllowedPropertyError $e) {
$e->setSourceContext($source);
$e->setTemplateLine($lineno);
+1 -1
View File
@@ -31,7 +31,7 @@ interface SecurityPolicyInterface
/**
* @throws SecurityNotAllowedPropertyError
*/
public function checkPropertyAllowed($obj, $method);
public function checkPropertyAllowed($obj, $property);
}
class_alias('Twig\Sandbox\SecurityPolicyInterface', 'Twig_Sandbox_SecurityPolicyInterface');