From f318e53658727017e5bf3e2206388c9805076ea3 Mon Sep 17 00:00:00 2001 From: Mohan Raj Date: Sun, 26 Mar 2023 16:02:58 +0100 Subject: [PATCH] fix php sdk --- src/components/snippets/PhpSnippet.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/snippets/PhpSnippet.tsx b/src/components/snippets/PhpSnippet.tsx index e6830d6..cd593c6 100644 --- a/src/components/snippets/PhpSnippet.tsx +++ b/src/components/snippets/PhpSnippet.tsx @@ -5,7 +5,7 @@ import Clipboard from '../common/Clipboard'; export default function ({ flag }: { flag: string }): JSX.Element { const phpSnippet = useMemo(() => { - return `if ( class_exists( 'MR\\FeatureFlags\\Utils' ) && MR\\FeatureFlags\\Utils::is_enabled( '${flag}' ) ) { + return `if ( class_exists( '\\MR\\FeatureFlags\\Utils' ) && \\MR\\FeatureFlags\\Utils::is_enabled( '${flag}' ) ) { // php code goes here... }`; }, [flag]);