Skip to content

Commit

Permalink
Tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
Luc45 committed Apr 7, 2024
1 parent 4f22206 commit 1f67134
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/src/Environment/PluginsAndThemesParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
}

Expand All @@ -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' ];
}

Expand Down

0 comments on commit 1f67134

Please sign in to comment.