From 1f67134af95dd02a418891467a30f350ed93364e Mon Sep 17 00:00:00 2001 From: Lucas Bustamante Date: Sat, 6 Apr 2024 22:19:22 -0300 Subject: [PATCH] Tweak --- src/src/Environment/PluginsAndThemesParser.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/src/Environment/PluginsAndThemesParser.php b/src/src/Environment/PluginsAndThemesParser.php index 81fcf5b4..e7281702 100644 --- a/src/src/Environment/PluginsAndThemesParser.php +++ b/src/src/Environment/PluginsAndThemesParser.php @@ -98,6 +98,7 @@ public function parse_extensions( array $plugins_or_themes, string $type, string // If "source" is empty, use slug as the source. if ( ! isset( $extension['source'] ) ) { + // @phan-suppress-next-line PhanTypePossiblyInvalidDimOffset $extension['source'] = $extension['slug']; } @@ -106,7 +107,7 @@ public function parse_extensions( array $plugins_or_themes, string $type, string // Ensure test_tags is set. // @phpstan-ignore-next-line. - if ( ! isset( $extension['test_tags'] ) || ! is_array( $extension['test_tags'] ) ) { + if ( empty( $extension['test_tags'] ) || ! is_array( $extension['test_tags'] ) ) { $extension['test_tags'] = [ 'default' ]; }