Skip to content

Commit a1e46f0

Browse files
authored
Merge pull request #11 from shyim/patch-1
fix: when manifest doesnt have bundles
2 parents a50caac + cd787b1 commit a1e46f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LintManifestsCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
5959
break;
6060
}
6161
}
62-
if ($empty && !is_file("$package/$version/post-install.txt") && 'all' === current($data['bundles'])) {
62+
if ($empty && !is_file("$package/$version/post-install.txt") && 'all' === current($data['bundles'] ?? [])) {
6363
$output->writeln(sprintf('::error file=%s::Recipe is not needed as it only registers a bundle for all environments', $manifest));
6464
continue;
6565
}

0 commit comments

Comments
 (0)