Skip to content

Commit

Permalink
[BUGFIX] Avoid unitialized variable in VersionToolbarItem (#1167)
Browse files Browse the repository at this point in the history
Third argument $returnValue of CommandUtility::exec() has been
type hinted to int in [1]. bootstrap_package fails now since
it uses a not initialized variable. Init properly.

[1] https://forge.typo3.org/issues/97206
  • Loading branch information
lolli42 authored May 14, 2022
1 parent 318e2c4 commit abfe2d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Classes/Backend/ToolbarItem/VersionToolbarItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public function addVersionInformation(SystemInformationToolbarItem $systemInform

// Try to get current version from git
if (file_exists($extensionDirectory . '.git')) {
$returnCode = 0;
CommandUtility::exec('git --version', $_, $returnCode);
if ((int)$returnCode === 0) {
$currentDir = (string) getcwd();
Expand Down

0 comments on commit abfe2d9

Please sign in to comment.