Skip to content

Commit 220301f

Browse files
committed
Remove unnecessary empty usages
1 parent 16f2dc1 commit 220301f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Authentication/RememberMe/PersistentToken.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,16 @@ final class PersistentToken implements PersistentTokenInterface
2626

2727
public function __construct(string $class, string $userIdentifier, string $series, #[\SensitiveParameter] string $tokenValue, \DateTimeInterface $lastUsed)
2828
{
29-
if (empty($class)) {
29+
if (!$class) {
3030
throw new \InvalidArgumentException('$class must not be empty.');
3131
}
3232
if ('' === $userIdentifier) {
3333
throw new \InvalidArgumentException('$userIdentifier must not be empty.');
3434
}
35-
if (empty($series)) {
35+
if (!$series) {
3636
throw new \InvalidArgumentException('$series must not be empty.');
3737
}
38-
if (empty($tokenValue)) {
38+
if (!$tokenValue) {
3939
throw new \InvalidArgumentException('$tokenValue must not be empty.');
4040
}
4141

0 commit comments

Comments
 (0)