Skip to content

Commit

Permalink
API Use more specific return type than those mandated by the interface
Browse files Browse the repository at this point in the history
Co-authored-by: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com>
  • Loading branch information
maxime-rainville and GuySartorelli committed Jan 16, 2023
1 parent 0784372 commit 9a1e094
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Storage/DefaultAssetNameGenerator.php
Expand Up @@ -120,7 +120,7 @@ protected function getPrefix()
return Config::inst()->get(__CLASS__, 'version_prefix');
}

public function current(): mixed
public function current(): string
{
$version = $this->version;

Expand All @@ -145,7 +145,7 @@ public function current(): mixed
return $filename;
}

public function key(): mixed
public function key(): int
{
return $this->version - $this->first;
}
Expand Down

0 comments on commit 9a1e094

Please sign in to comment.