Skip to content

Commit fd000ea

Browse files
committed
refactor(HTTP): add arrow function return types in RequestTrait::checkIPAgainstProxy()
1 parent 84f3748 commit fd000ea

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

system/HTTP/RequestTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ protected function checkIPAgainstProxy(string $ipAddress, string $proxyIP): bool
125125
return false;
126126
}
127127

128-
$toBits = static fn (string $packed) => implode('', array_map(
129-
static fn ($byte) => str_pad(decbin(ord($byte)), 8, '0', STR_PAD_LEFT),
128+
$toBits = static fn (string $packed): string => implode('', array_map(
129+
static fn ($byte): string => str_pad(decbin(ord($byte)), 8, '0', STR_PAD_LEFT),
130130
str_split($packed),
131131
));
132132

0 commit comments

Comments
 (0)