Skip to content
Snippets Groups Projects
Commit 016e509c authored by Georg Ringer's avatar Georg Ringer Committed by Benjamin Franzke
Browse files

[BUGFIX] Adopt return type of CommandUtility::exec()

Allow the valid return type false which is returned by the function
exec on failure.

Resolves: #103778
Releases: main, 12.4
Change-Id: I8f0391efb6f890ebc0095ddb8a1f93ee9c36e18c
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/84135


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarAndreas Kienast <a.fernandez@scripting-base.de>
Reviewed-by: default avatarAndreas Kienast <a.fernandez@scripting-base.de>
Tested-by: default avatarBenjamin Franzke <ben@bnf.dev>
Reviewed-by: default avatarBenjamin Franzke <ben@bnf.dev>
parent 6d7501f8
Branches
Tags
No related merge requests found
......@@ -82,7 +82,7 @@ class CommandUtility
*
* Needs to be central to have better control and possible fix for issues
*/
public static function exec(string $command, ?array &$output = null, int &$returnValue = 0): string
public static function exec(string $command, ?array &$output = null, int &$returnValue = 0): string|false
{
return exec($command, $output, $returnValue);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment