Skip to content

Commit

Permalink
minor symfony#19584 [Asset] chore: doc asset (94noni)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
javiereguiluz committed Feb 23, 2024
2 parents 4d94af1 + 63616dc commit a7d98b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/asset.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit a7d98b0

Please sign in to comment.