Skip to content

Commit 2962d92

Browse files
committed
Use PHP_VERSION constant
1 parent a7548e6 commit 2962d92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Platform/TargetPhp/PhpBinaryPath.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ public function version(): string
269269
$phpVersion = self::cleanWarningAndDeprecationsFromOutput(Process::run([
270270
$this->phpBinaryPath,
271271
'-r',
272-
'echo PHP_MAJOR_VERSION . "." . PHP_MINOR_VERSION . "." . PHP_RELEASE_VERSION;',
272+
'echo PHP_VERSION;',
273273
]));
274274
Assert::stringNotEmpty($phpVersion, 'Could not determine PHP version');
275275

0 commit comments

Comments
 (0)