From ab68c06e8c605b740a09305fae730fe777aaf6d5 Mon Sep 17 00:00:00 2001 From: David Buchmann Date: Wed, 19 Jun 2024 11:42:02 +0200 Subject: [PATCH] phpdoc --- src/Templating/LazyFilterRuntime.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Templating/LazyFilterRuntime.php b/src/Templating/LazyFilterRuntime.php index 19439d44..f7b17e65 100644 --- a/src/Templating/LazyFilterRuntime.php +++ b/src/Templating/LazyFilterRuntime.php @@ -25,15 +25,18 @@ final class LazyFilterRuntime implements RuntimeExtensionInterface private ?string $assetVersion; /** - * @var array|null + * @var array|null */ private $jsonManifest; /** - * @var array|null + * @var array|null */ private $jsonManifestLookup; + /** + * @param array|null $jsonManifest + */ public function __construct(CacheManager $cache, ?string $assetVersion = null, ?array $jsonManifest = null) { $this->cache = $cache; @@ -126,6 +129,8 @@ private function appendAssetVersion(string $resolvedPath, string $path): string /** * Capture the versioning string from the versioned filename + * + * @return array{version: string, position: int} */ private function captureVersion(string $originalFilename, string $versionedFilename): array {