Skip to content

Commit

Permalink
Fixed PHP 7.4 compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Skrypnyk committed May 5, 2020
1 parent 9d2136c commit a3d5e68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ArchiveValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public static function validate(array $files, $extensions) {
// Check that entry point file exists.
$top_dir = $root_files[0];
$top_level = $tree[$top_dir];
if (!array_key_exists(AssetInterface::INDEX_FILE, $top_level)) {
if (!isset($top_level[AssetInterface::INDEX_FILE])) {
throw new InvalidContentArchiveException([sprintf('Missing required %s file.', AssetInterface::INDEX_FILE)]);
}

Expand Down

0 comments on commit a3d5e68

Please sign in to comment.