8000 Update entity_provider.rst by matt9mg · Pull Request #9696 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Update entity_provider.rst #9696

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Update entity_provider.rst
Keep the array syntax consitant between the 2 serialization functions that are implemented
  • Loading branch information
matt9mg authored Apr 27, 2018
commit dc58c77f61e1e1cb197d2ed8a36b56c64abbe1a6
4 changes: 2 additions & 2 deletions security/entity_provider.rst
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,13 @@ with the following fields: ``id``, ``username``, ``password``,
/** @see \Serializable::serialize() */
public function serialize()
{
return serialize(array(
return serialize([
$this->id,
$this->username,
$this->password,
// see section on salt below
// $this->salt,
));
]);
}

/** @see \Serializable::unserialize() */
Expand Down
0