Skip to content

Commit

Permalink
fix: php error for null $attribute_value in parse_query_source()
Browse files Browse the repository at this point in the history
  • Loading branch information
DDEV User committed Sep 21, 2024
1 parent 21a9934 commit 7b7599f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions includes/Data/BlockAttributeResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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<string,mixed> $config The value configuration.
* @param array<string,mixed> $attribute_values The attribute values for the block.
* @param string $html The html value.
* @param array<string,mixed> $config The value configuration.
* @param ?array<string,mixed> $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;
}
Expand Down

0 comments on commit 7b7599f

Please sign in to comment.