Skip to content

Commit ced6223

Browse files
Restore master version
1 parent 010fd98 commit ced6223

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/Version.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
namespace phpbu\App;
33

44
use SebastianBergmann;
5+
use function array_slice;
6+
use function explode;
7+
use function implode;
58

69
/**
710
* Application Version.
@@ -80,7 +83,7 @@ public function getVersionNumber() : string
8083
public static function id() : string
8184
{
8285
if (self::$version === null) {
83-
$version = new self('6.0.0', dirname(dirname(__DIR__)));
86+
$version = new self('6.0', dirname(dirname(__DIR__)));
8487
self::$version = $version->getVersionNumber();
8588
}
8689

@@ -94,8 +97,8 @@ public static function id() : string
9497
*/
9598
public static function minor() : string
9699
{
97-
$version = \explode('-', self::id())[0];
98-
return \implode('.', \array_slice(\explode('.', $version), 0, 2));
100+
$version = explode('-', self::id())[0];
101+
return implode('.', array_slice(explode('.', $version), 0, 2));
99102
}
100103

101104
/**

0 commit comments

Comments
 (0)