From c7f39de04538a54659d60d5204e04ecd5518e2dd Mon Sep 17 00:00:00 2001 From: Dmitrii Metelkin Date: Fri, 13 Dec 2024 15:14:50 +1100 Subject: [PATCH] issue #915: whitelist floor php function --- classes/local/provider/expression_provider.php | 1 + 1 file changed, 1 insertion(+) diff --git a/classes/local/provider/expression_provider.php b/classes/local/provider/expression_provider.php index 8461591a..8f43f847 100644 --- a/classes/local/provider/expression_provider.php +++ b/classes/local/provider/expression_provider.php @@ -75,6 +75,7 @@ public function getFunctions(): array { // phpcs:ignore ExpressionFunction::fromPhp('count', 'count'), ExpressionFunction::fromPhp('format_time', 'format_time'), ExpressionFunction::fromPhp('round', 'round'), + ExpressionFunction::fromPhp('floor', 'floor'), ExpressionFunction::fromPhp('time', 'time'), ExpressionFunction::fromPhp('userdate', 'userdate'), ExpressionFunction::fromPhp('date', 'date'),