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
Prev Previous commit
Fixed inconsistency differently
  • Loading branch information
javiereguiluz authored Jul 3, 2018
commit 044b4b6b6fbfdb71049d11bf033684d256b6941f
6 changes: 3 additions & 3 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([
return serialize(array(
$this->id,
$this->username,
$this->password,
// see section on salt below
// $this->salt,
]);
));
}

/** @see \Serializable::unserialize() */
Expand All @@ -130,7 +130,7 @@ with the following fields: ``id``, ``username``, ``password``,
$this->password,
// see section on salt below
// $this->salt
) = unserialize($serialized, ['allowed_classes' => false]);
) = unserialize($serialized, array('allowed_classes' => false));
}
}

Expand Down
0