From 05969fa064bec41ef2aee581ca7836cb3a3169d4 Mon Sep 17 00:00:00 2001 From: Awilum Date: Tue, 30 Aug 2022 21:05:22 +0300 Subject: [PATCH] feat(shortcodes): update fetch shortcode --- src/flextype/core/Parsers/Shortcodes/FetchShortcode.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flextype/core/Parsers/Shortcodes/FetchShortcode.php b/src/flextype/core/Parsers/Shortcodes/FetchShortcode.php index af878e74..a1b55aa0 100644 --- a/src/flextype/core/Parsers/Shortcodes/FetchShortcode.php +++ b/src/flextype/core/Parsers/Shortcodes/FetchShortcode.php @@ -66,7 +66,7 @@ parsers()->shortcodes()->addHandler('fetch', static function (ShortcodeInterface })->undot()->toArray(); // Backup current entry data - $original = entries()->registry()['methods.fetch']; + $original = entries()->registry()->get('methods.fetch'); // Do fetch the data from the resource. $result = fetch($resource, $options);