File tree Expand file tree Collapse file tree 3 files changed +19
-3
lines changed Expand file tree Collapse file tree 3 files changed +19
-3
lines changed Original file line number Diff line number Diff line change 13
13
" vendor/zhamao"
14
14
],
15
15
"git-commit-short" : " git_commit_short" ,
16
+ "metadata" : " Version::getVersion" ,
16
17
"output" : " spc.phar"
17
18
}
Original file line number Diff line number Diff line change 24
24
*/
25
25
final class ConsoleApplication extends Application
26
26
{
27
- public const VERSION = '2.0-rc6 ' ;
28
-
29
27
public function __construct ()
30
28
{
31
- parent ::__construct ('static-php-cli ' , self :: VERSION );
29
+ parent ::__construct ('static-php-cli ' , Version:: getVersion () );
32
30
33
31
global $ argv ;
34
32
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ declare (strict_types=1 );
4
+
5
+ namespace SPC ;
6
+
7
+ final class Version
8
+ {
9
+ private const VERSION = '2.0-rc6 ' ;
10
+
11
+ private function __construct () {}
12
+
13
+ public static function getVersion (): string
14
+ {
15
+ return self ::VERSION ;
16
+ }
17
+ }
You can’t perform that action at this time.
0 commit comments