Skip to content

Commit 51a9fbc

Browse files
committed
Update EndpointTrait.php
1 parent ee61c22 commit 51a9fbc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Discord/EndpointTrait.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,7 @@ public function toAbsoluteEndpoint(bool $onlyMajorParameters = false): string
7474

7575
// Process in order of longest to shortest variable name to prevent partial replacements (see #16).
7676
$vars = $this->vars;
77-
usort($vars, function ($a, $b) {
78-
return strlen($b) <=> strlen($a);
79-
});
77+
usort($vars, fn ($a, $b) => strlen($b) <=> strlen($a));
8078

8179
foreach ($vars as $var) {
8280
if (

0 commit comments

Comments
 (0)