Skip to content

Commit 2ed5e7d

Browse files
committed
Fixed inconsistency differently
1 parent 4ea991d commit 2ed5e7d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

security/entity_provider.rst

Lines changed: 3 additions & 3 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([
118+
return serialize(array(
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() */
@@ -133,7 +133,7 @@ For this entry, suppose that you already have a ``User`` entity inside an
133133
$this->password,
134134
// see section on salt below
135135
// $this->salt
136-
) = unserialize($serialized, ['allowed_classes' => false]);
136+
) = unserialize($serialized, array('allowed_classes' => false));
137137
}
138138
}
139139

0 commit comments

Comments
 (0)