From: Tim Düsterhus Date: Fri, 12 Feb 2021 09:38:34 +0000 (+0100) Subject: Add return types to anonymous functions X-Git-Tag: 5.4.0_Alpha_1~279^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=671263a3d636742055a18280b011e7b686e532c7;p=GitHub%2FWoltLab%2FWCF.git Add return types to anonymous functions --- diff --git a/wcfsetup/install/files/lib/system/devtools/package/DevtoolsPackageArchive.class.php b/wcfsetup/install/files/lib/system/devtools/package/DevtoolsPackageArchive.class.php index bbb540bce2..d1d64df7ee 100644 --- a/wcfsetup/install/files/lib/system/devtools/package/DevtoolsPackageArchive.class.php +++ b/wcfsetup/install/files/lib/system/devtools/package/DevtoolsPackageArchive.class.php @@ -41,7 +41,7 @@ class DevtoolsPackageArchive extends PackageArchive $it = new \RecursiveIteratorIterator( new \RecursiveCallbackFilterIterator( new \RecursiveDirectoryIterator($projectDir), - static function (\SplFileInfo $current, string $key, \RecursiveDirectoryIterator $it) { + static function (\SplFileInfo $current, string $key, \RecursiveDirectoryIterator $it): bool { // Skip '.' and '..'. if ($it->isDot()) { return false; @@ -83,7 +83,7 @@ class DevtoolsPackageArchive extends PackageArchive } ) ); - $readFiles = \array_map(static function (\SplFileInfo $f) { + $readFiles = \array_map(static function (\SplFileInfo $f): string { return $f->getPathname(); }, \iterator_to_array($it));