Skip to content

Commit 4ea991d

Browse files
matt9mgjaviereguiluz
authored andcommitted
Update entity_provider.rst
Keep the array syntax consitant between the 2 serialization functions that are implemented
1 parent 77246b5 commit 4ea991d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

security/entity_provider.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,13 @@ For this entry, suppose that you already have a ``User`` entity inside an
115115
/** @see \Serializable::serialize() */
116116
public function serialize()
117117
{
118-
return serialize(array(
118+
return serialize([
119119
$this->id,
120120
$this->username,
121121
$this->password,
122122
// see section on salt below
123123
// $this->salt,
124-
));
124+
]);
125125
}
126126

127127
/** @see \Serializable::unserialize() */

0 commit comments

Comments
 (0)