We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aedc516 commit e8aeed5Copy full SHA for e8aeed5
src/Persistence/FileTokenPersistence.php
@@ -18,7 +18,7 @@ public function __construct($filepath)
18
19
public function saveToken(TokenInterface $token)
20
{
21
- file_put_contents($this->filepath, json_encode($token->serialize()));
+ file_put_contents($this->filepath, json_encode($token->serialize()), LOCK_EX);
22
}
23
24
public function restoreToken(TokenInterface $token)
0 commit comments