From 7b7599fe7eb8c06b87b944026383eafd21cbfe15 Mon Sep 17 00:00:00 2001 From: DDEV User Date: Sat, 21 Sep 2024 22:33:44 +0000 Subject: [PATCH] fix: php error for null $attribute_value in parse_query_source() --- includes/Data/BlockAttributeResolver.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/Data/BlockAttributeResolver.php b/includes/Data/BlockAttributeResolver.php index 241c78d9..1508d2aa 100644 --- a/includes/Data/BlockAttributeResolver.php +++ b/includes/Data/BlockAttributeResolver.php @@ -145,13 +145,13 @@ private static function parse_text_source( string $html, $config ): ?string { /** * Parses a query source block type. * - * @param string $html The html value. - * @param array $config The value configuration. - * @param array $attribute_values The attribute values for the block. + * @param string $html The html value. + * @param array $config The value configuration. + * @param ?array $attribute_values The attribute values for the block. * * @return ?mixed[] */ - private static function parse_query_source( string $html, array $config, array $attribute_values ): ?array { + private static function parse_query_source( string $html, array $config, ?array $attribute_values ): ?array { if ( ! isset( $config['selector'] ) || ! isset( $config['query'] ) ) { return null; }