From 9e6c8877c7a177cdb37644fd1d2796dc6e35a917 Mon Sep 17 00:00:00 2001 From: grandeljay Date: Mon, 20 Mar 2023 13:59:51 +0100 Subject: [PATCH] chore!: add namespace BREAKING CHANGE: added namespace the configuration may not load and cause wishthis to break if you do not manually add the namespace to your existing config.php --- src/config/config-sample.php | 2 ++ src/functions/gettext.php | 4 +--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/config/config-sample.php b/src/config/config-sample.php index dd8c7815..1486e8d1 100644 --- a/src/config/config-sample.php +++ b/src/config/config-sample.php @@ -6,6 +6,8 @@ * Usually, the wishthis installer will create the config.php for you. */ +namespace wishthis; + /** * Database * diff --git a/src/functions/gettext.php b/src/functions/gettext.php index 780c8254..716ad9ba 100644 --- a/src/functions/gettext.php +++ b/src/functions/gettext.php @@ -2,11 +2,9 @@ /** * Gettext - * - * @author Jay Trees */ -use wishthis\User; +namespace wishthis; function __(string $text, string $context = null, User $user = null): string {