Skip to content

Commit 387e94c

Browse files
committed
Fix: Fix PHPStan error by chaining Stringable methods for email+IP
1 parent 09ee1a9 commit 387e94c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/Http/Requests/Auth/LoginRequest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ public function ensureIsNotRateLimited(): void
8080
*/
8181
public function throttleKey(): string
8282
{
83-
return Str::transliterate(Str::lower($this->string('email')).'|'.$this->ip());
83+
return $this->string('email')
84+
->lower()
85+
->append('|'.$this->ip())
86+
->transliterate()
87+
->value();
8488
}
8589
}

0 commit comments

Comments
 (0)