diff --git a/src/Converter/SemverConverter.php b/src/Converter/SemverConverter.php index adeda1e..3b211af 100644 --- a/src/Converter/SemverConverter.php +++ b/src/Converter/SemverConverter.php @@ -1,5 +1,7 @@ */ -class SemverConverter implements VersionConverterInterface +final class SemverConverter implements VersionConverterInterface { - public function convertVersion($version) + public function convertVersion(string $version = null): string { if (\in_array($version, array(null, '', 'latest'), true)) { return ('latest' === $version ? 'default || ' : '').'*'; diff --git a/src/Converter/SemverUtil.php b/src/Converter/SemverUtil.php index 1d27d48..1e49a32 100644 --- a/src/Converter/SemverUtil.php +++ b/src/Converter/SemverUtil.php @@ -1,5 +1,7 @@