Skip to content

Commit

Permalink
- pass $block_types to array_reduce. Accidentally removed during merg…
Browse files Browse the repository at this point in the history
…e conflict resolution
  • Loading branch information
jasonbahl committed Dec 2, 2022
1 parent 6c460b0 commit f1e3129
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Blocks/Registry.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
},
Expand Down

0 comments on commit f1e3129

Please sign in to comment.