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 authored and justlevine committed Sep 23, 2024
1 parent c1cf118 commit 23bd8b4
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 @@ -148,13 +148,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 23bd8b4

Please sign in to comment.