Skip to content

Commit 97239eb

Browse files
committed
Merge branch '6.2' of https://github.com/WoltLab/WCF into 6.2
2 parents a6c87a1 + 1b1a934 commit 97239eb

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

wcfsetup/install/files/lib/system/form/builder/container/wysiwyg/WysiwygFormContainer.class.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,6 @@ public function addSettingsNodes(array $settingsNodes)
194194
* @param null|string $objectType name of attachment object type or `null` to unset previous attachment data
195195
* @param int $parentObjectID id of the parent of the object the attachments belong to or `0` if no such parent exists
196196
* @param ?int $objectID id of the object the attachments belong to
197-
* @return WysiwygFormContainer this form container
198197
* @throws \BadMethodCallException if the attachment form field has already been initialized
199198
*/
200199
public function attachmentData(?string $objectType = null, int $parentObjectID = 0, ?int $objectID = null): static

wcfsetup/install/files/lib/util/FileUtil.class.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -223,13 +223,8 @@ public static function unifyDirSeparator(string $path): string
223223
/**
224224
* Scans a folder (and subfolder) for a specific file.
225225
* Returns the filename if found, otherwise false.
226-
*
227-
* @param string $folder
228-
* @param string $searchfile
229-
* @param bool $recursive
230-
* @return mixed
231226
*/
232-
public static function scanFolder($folder, $searchfile, $recursive = true)
227+
public static function scanFolder(string $folder, string $searchfile, bool $recursive = true): string|false
233228
{
234229
if (!@\is_dir($folder)) {
235230
return false;
@@ -259,6 +254,8 @@ public static function scanFolder($folder, $searchfile, $recursive = true)
259254
}
260255
}
261256
@\closedir($dirh);
257+
258+
return false;
262259
}
263260

264261
/**

0 commit comments

Comments
 (0)