From c35fd68ec24638eae0520ed020d0f89b3f628bc0 Mon Sep 17 00:00:00 2001 From: Philipp Date: Fri, 6 Jan 2023 12:47:00 +0100 Subject: [PATCH] Adapt doc --- src/Core/Config/Util/ConfigFileManager.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Core/Config/Util/ConfigFileManager.php b/src/Core/Config/Util/ConfigFileManager.php index 3a4ebb893..f9d3b32b6 100644 --- a/src/Core/Config/Util/ConfigFileManager.php +++ b/src/Core/Config/Util/ConfigFileManager.php @@ -203,11 +203,12 @@ class ConfigFileManager } /** - * Evaluate the fetched content + * Evaluate the content string as PHP code + * + * @see https://www.php.net/manual/en/function.eval.php * * @note - * Because `eval()` directly evaluates PHP content, we need to "close" the expected PHP content again with - * the prefixed "?>". Now we're in plain HTML again and can evaluate any PHP file :-) + * To leave the PHP mode, we have to use the appropriate PHP tags '?>' as prefix. */ $dataArray = eval('?>' . $content);