Skip to content

Commit

Permalink
Refactor variable name in condition builder
Browse files Browse the repository at this point in the history
  • Loading branch information
guvra committed Jun 11, 2024
1 parent c6ce775 commit 361ae79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Converter/ConditionBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class ConditionBuilder
/**
* @var string[]
*/
private array $functionWhitelist = [
private array $allowedFunctions = [
'addslashes', 'array_*', 'chr', 'date', 'empty', 'explode', 'htmlentities', 'htmlspecialchars',
'implode', 'in_array', 'is_*', 'isset', 'lcfirst', 'ltrim', 'mb_*', 'number_format', 'ord',
'preg_*', 'rtrim', 'sprintf', 'str_*', 'strchr', 'strcmp', 'strcoll', 'strcspn', 'stripcslashes',
Expand Down Expand Up @@ -186,7 +186,7 @@ private function isFunctionAllowed(string $function): bool
{
$allowed = false;

foreach ($this->functionWhitelist as $pattern) {
foreach ($this->allowedFunctions as $pattern) {
if (fnmatch($pattern, $function)) {
$allowed = true;
break;
Expand Down

0 comments on commit 361ae79

Please sign in to comment.