From 23ba48c71f0d41bbe012d668349f6516dad527b4 Mon Sep 17 00:00:00 2001 From: Alexis Degrugillier Date: Fri, 5 Sep 2025 09:56:46 -0400 Subject: Change how files are included (#7916) 1. `include`, `include_once`, `require` and `require_once` are expressions not functions, parentheses are not necessary. 2. to move up the directory tree, it's better to use the `dirname` function instead of relying on `/..`. --- cli/manipulate.translation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/manipulate.translation.php') diff --git a/cli/manipulate.translation.php b/cli/manipulate.translation.php index 434fb61a5..db6243cc0 100755 --- a/cli/manipulate.translation.php +++ b/cli/manipulate.translation.php @@ -4,7 +4,7 @@ declare(strict_types=1); require_once __DIR__ . '/_cli.php'; require_once __DIR__ . '/i18n/I18nData.php'; require_once __DIR__ . '/i18n/I18nFile.php'; -require_once __DIR__ . '/../constants.php'; +require_once dirname(__DIR__) . '/constants.php'; $cliOptions = new class extends CliOptionsParser { public string $action; -- cgit v1.2.3