Skip to content
This repository has been archived by the owner on Aug 15, 2021. It is now read-only.

Commit

Permalink
remove function: sub
Browse files Browse the repository at this point in the history
  • Loading branch information
kaluzki committed Nov 5, 2019
1 parent e72cce4 commit 755bf2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/php/Package.php
Expand Up @@ -145,6 +145,6 @@ public function version($format = null): ?string
if (!is_int($format) && ($version[3] ?? null) === '0') {
$format = 3;
}
return implode('.', sub($version, 0, $format));
return implode('.', array_slice($version, 0, $format));
}
}

0 comments on commit 755bf2a

Please sign in to comment.