File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 88/fixtures /set004 /scoper.inc.php
99/fixtures /* /.box_dump /
1010/fixtures /* /vendor /
11+ .phpunit *
1112/vendor /
1213/vendor-bin /* /vendor /
1314/vendor-bin /* /bin /
Original file line number Diff line number Diff line change 77 "files": [
88 "src/scoper.inc.php.tpl"
99 ],
10+ "git": "git_version_placeholder",
1011
1112 "compression": "GZ",
1213
Original file line number Diff line number Diff line change @@ -66,9 +66,13 @@ function create_application(): SymfonyApplication
6666 */
6767function get_version (): string
6868{
69+ if ('phar: ' === substr (__FILE__ , 0 , 5 )) {
70+ return '@git_version_placeholder@ ' ;
71+ }
72+
6973 $ rawVersion = Versions::getVersion ('humbug/php-scoper ' );
7074
71- list ( $ prettyVersion , $ commitHash) = explode ('@ ' , $ rawVersion );
75+ [ $ prettyVersion , $ commitHash] = explode ('@ ' , $ rawVersion );
7276
7377 return (1 === preg_match ('/9{7}/ ' , $ prettyVersion )) ? $ commitHash : $ prettyVersion ;
7478}
You can’t perform that action at this time.
0 commit comments