From 63616dc7c37e931ffbad8ea85f5a86bf2ce5c224 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Thu, 22 Feb 2024 16:45:26 +0100 Subject: [PATCH] chore: doc asset --- components/asset.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/asset.rst b/components/asset.rst index df4a6aa3121..e515b41395c 100644 --- a/components/asset.rst +++ b/components/asset.rst @@ -211,19 +211,19 @@ every day:: class DateVersionStrategy implements VersionStrategyInterface { - private $version; + private string $version; public function __construct() { $this->version = date('Ymd'); } - public function getVersion(string $path) + public function getVersion(string $path): string { return $this->version; } - public function applyVersion(string $path) + public function applyVersion(string $path): string { return sprintf('%s?v=%s', $path, $this->getVersion($path)); }