Skip to content

Commit 246268c

Browse files
committed
fix(core): display only composer version in about command
1 parent 25c4aff commit 246268c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/EnvironmentInsightsProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ private function getComposerVersion(): Insight|string
3838

3939
return \Tempest\Support\Regex\get_match(
4040
subject: $output,
41-
pattern: "/Composer version (\S+)/",
42-
match: 0,
41+
pattern: "/Composer version (?<version>\S+)/",
42+
match: 'version',
4343
default: new Insight('Unknown', Insight::ERROR),
4444
);
4545
}

0 commit comments

Comments
 (0)