Skip to content

Commit e454cb5

Browse files
committed
Always used passed $value when checking if token is valid
See #91
1 parent 2850ff7 commit e454cb5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/PushToken/PushToken.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ protected function isValidTokenValue(string $value): bool
7474
}
7575

7676
// UUID-like legacy format
77-
if (preg_match('/^[a-z\d]{8}-[a-z\d]{4}-[a-z\d]{4}-[a-z\d]{4}-[a-z\d]{12}$/', $this->value)) {
77+
if (preg_match('/^[a-z\d]{8}-[a-z\d]{4}-[a-z\d]{4}-[a-z\d]{4}-[a-z\d]{12}$/', $value)) {
7878
return true;
7979
}
8080

0 commit comments

Comments
 (0)