We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5058252 commit a28141bCopy full SHA for a28141b
src/Entity/User.php
@@ -145,23 +145,6 @@ public function setRoles(array $roles): void
145
*/
146
public function eraseCredentials(): void
147
{
148
- // if you had a plainPassword property, you'd nullify it here
149
- // $this->plainPassword = null;
150
- }
151
-
152
- /**
153
- * @return array{int|null, string|null, string|null}
154
- */
155
- public function __serialize(): array
156
- {
157
- return [$this->id, $this->username, $this->password];
158
159
160
161
- * @param array{int|null, string, string} $data
162
163
- public function __unserialize(array $data): void
164
165
- [$this->id, $this->username, $this->password] = $data;
+ $this->password = null;
166
}
167
0 commit comments