Skip to content

Commit a7d98b0

Browse files
committed
minor #19584 [Asset] chore: doc asset (94noni)
This PR was merged into the 5.4 branch. Discussion ---------- [Asset] chore: doc asset i was reading this page today and so opened this small PR Commits ------- 63616dc chore: doc asset
2 parents 4d94af1 + 63616dc commit a7d98b0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/asset.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,19 +211,19 @@ every day::
211211

212212
class DateVersionStrategy implements VersionStrategyInterface
213213
{
214-
private $version;
214+
private string $version;
215215

216216
public function __construct()
217217
{
218218
$this->version = date('Ymd');
219219
}
220220

221-
public function getVersion(string $path)
221+
public function getVersion(string $path): string
222222
{
223223
return $this->version;
224224
}
225225

226-
public function applyVersion(string $path)
226+
public function applyVersion(string $path): string
227227
{
228228
return sprintf('%s?v=%s', $path, $this->getVersion($path));
229229
}

0 commit comments

Comments
 (0)