Skip to content

Commit

Permalink
qa: simplify script for outputting extension versions
Browse files Browse the repository at this point in the history
No need for intermediary variable.

Signed-off-by: Matthew Weier O'Phinney <[email protected]>
  • Loading branch information
weierophinney committed Aug 23, 2021
1 parent d9f13a8 commit 335134a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions php-extensions-with-version.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,5 @@
<?php

foreach (get_loaded_extensions() as $extension) {
$version = phpversion($extension);

printf('%s: %s%s', $extension, $version, PHP_EOL);
printf('%s: %s%s', $extension, phpversion($extension), PHP_EOL);
}

0 comments on commit 335134a

Please sign in to comment.