From 48fd992dab9ac30a93efd0489e7c1ecad2db4b8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Richard=20Dobro=C5=88?= Date: Fri, 12 Jan 2024 11:52:48 +0100 Subject: [PATCH] Fix PHP compatibility --- src/fbt/Services/CollectFbtsService.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/fbt/Services/CollectFbtsService.php b/src/fbt/Services/CollectFbtsService.php index c39eb70..1d2c238 100644 --- a/src/fbt/Services/CollectFbtsService.php +++ b/src/fbt/Services/CollectFbtsService.php @@ -2,6 +2,7 @@ namespace fbt\Services; +use fbt\Exceptions\FbtInvalidConfigurationException; use fbt\Exceptions\FbtParserException; use fbt\FbtConfig; use function fbt\rsearch; @@ -58,11 +59,16 @@ public function __construct() } /** + * @param string $path + * @param string $src + * @param null|string $fbtCommonPath + * @param bool $cleanCache + * @return void * @throws \Throwable * @throws \fbt\Exceptions\FbtInvalidConfigurationException * @throws \fbt\Exceptions\FbtParserException */ - public function collectFromFiles(string $path, string $src, ?string $fbtCommonPath, bool $cleanCache) + public function collectFromFiles(string $path, string $src, $fbtCommonPath, bool $cleanCache) { $fbtDir = $path . '/'; $file = $fbtDir . '.source_strings.json';