From f1e3129d7acf7cf3d25d64085fd9943c16053f2a Mon Sep 17 00:00:00 2001 From: Jason Bahl Date: Fri, 2 Dec 2022 10:48:55 -0700 Subject: [PATCH] - pass $block_types to array_reduce. Accidentally removed during merge conflict resolution --- src/Blocks/Registry.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Blocks/Registry.php b/src/Blocks/Registry.php index f686849d..30e90d06 100644 --- a/src/Blocks/Registry.php +++ b/src/Blocks/Registry.php @@ -9,9 +9,10 @@ use GraphQL\Error\ClientAware; class Registry { - public static function normalize( $block_types ) { + public static function normalize($block_types) { return array_reduce( - static function ($arr, $block_type) { + $block_types, + function ($arr, $block_type) { $arr[$block_type['name']] = $block_type; return $arr; },