From 96b9dbb6694e0a01a6ae7cf467cc9b74e679f44d Mon Sep 17 00:00:00 2001 From: Daniel Kesselberg Date: Fri, 20 Sep 2024 16:23:40 +0200 Subject: [PATCH] fixup! feat: make search path for BinaryFinder customizable. Signed-off-by: Daniel Kesselberg --- lib/private/BinaryFinder.php | 2 +- tests/lib/BinaryFinderTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/private/BinaryFinder.php b/lib/private/BinaryFinder.php index e7c4b0b7ad87e..3dad245ff0de6 100644 --- a/lib/private/BinaryFinder.php +++ b/lib/private/BinaryFinder.php @@ -31,7 +31,7 @@ class BinaryFinder implements IBinaryFinder { public function __construct( ICacheFactory $cacheFactory, - private IConfig $config + private IConfig $config, ) { $this->cache = $cacheFactory->createLocal('findBinaryPath'); } diff --git a/tests/lib/BinaryFinderTest.php b/tests/lib/BinaryFinderTest.php index 59a561f8c9436..42306e49eac33 100644 --- a/tests/lib/BinaryFinderTest.php +++ b/tests/lib/BinaryFinderTest.php @@ -31,7 +31,7 @@ protected function setUp(): void { } protected function tearDown(): void { - putenv('PATH='.$this->oldEnv); + putenv('PATH=' . $this->oldEnv); } public function testDefaultFindsCat() {