We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 362ca19 + b1a6c2d commit 8b0318fCopy full SHA for 8b0318f
1 file changed
src/Asset/GitVersionStrategy.php
@@ -15,12 +15,12 @@ public function __construct($format)
15
$this->commitHash = $this->getCommitHash();
16
}
17
18
- public function getVersion($path = null)
+ public function getVersion(string $path = null): string
19
{
20
return $this->commitHash;
21
22
23
- public function applyVersion($path)
+ public function applyVersion(string $path): string
24
25
$version = $this->getVersion();
26
@@ -31,7 +31,7 @@ public function applyVersion($path)
31
return sprintf($this->format, $path, $version);
32
33
34
- protected function getCommitHash()
+ protected function getCommitHash(): string
35
36
return trim(`git rev-parse --short HEAD`);
37
0 commit comments