From 671263a3d636742055a18280b011e7b686e532c7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 12 Feb 2021 10:38:34 +0100 Subject: [PATCH] Add return types to anonymous functions --- .../system/devtools/package/DevtoolsPackageArchive.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)); -- 2.20.1