minor #20174 [Serializer] minor: Remove an extra space in a YamlFileLoader error (dunglas)
This PR was squashed before being merged into the 3.1 branch (closes #20174).
Discussion
----------
[Serializer] minor: Remove an extra space in a YamlFileLoader error
| Q | A
| ------------- | ---
| Branch? | 3.1
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | n/a
| License | MIT
| Doc PR | n/a
Commits
-------
a1bc96b
[Serializer] minor: Remove an extra space in a YamlFileLoader error
This commit is contained in:
commit
90a952d32d
@ -90,7 +90,7 @@ class YamlFileLoader extends FileLoader
|
|||||||
|
|
||||||
if (isset($data['max_depth'])) {
|
if (isset($data['max_depth'])) {
|
||||||
if (!is_int($data['max_depth'])) {
|
if (!is_int($data['max_depth'])) {
|
||||||
throw new MappingException('The "max_depth" value must an integer in "%s" for the attribute "%s" of the class "%s".', $this->file, $attribute, $classMetadata->getName());
|
throw new MappingException('The "max_depth" value must be an integer in "%s" for the attribute "%s" of the class "%s".', $this->file, $attribute, $classMetadata->getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
$attributeMetadata->setMaxDepth($data['max_depth']);
|
$attributeMetadata->setMaxDepth($data['max_depth']);
|
||||||
|
Reference in New Issue
Block a user