From 645e056a0f69990ae89274f2e86c04ae4f31c954 Mon Sep 17 00:00:00 2001 From: "Jan T. Sott" Date: Fri, 8 Apr 2022 00:54:08 +0200 Subject: [PATCH] add missing argument --- src/ViteManifest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ViteManifest.php b/src/ViteManifest.php index fb87b04..2b6af9b 100644 --- a/src/ViteManifest.php +++ b/src/ViteManifest.php @@ -89,7 +89,7 @@ public function getEntrypoint(string $entrypoint, bool $hash = true): array public function getImports(string $entrypoint, bool $hash = true): array { return array_filter( - array_map(function ($import) { + array_map(function ($import, $hash) { return isset($this->manifest[$import]["file"]) ? [ "hash" => $hash ? $this->getFileHash($this->manifest[$import]["file"]) : null, "url" => $this->getPath($this->manifest[$import]["file"])