Core and composer updates
This commit is contained in:
parent
a82634bb98
commit
62cac30480
1118 changed files with 21770 additions and 6306 deletions
web/vendor/symfony/serializer/Normalizer
|
@ -208,10 +208,22 @@ class ObjectNormalizer extends AbstractNormalizer
|
|||
|
||||
if (0 === strpos($name, 'get') || 0 === strpos($name, 'has')) {
|
||||
// getters and hassers
|
||||
$attributes[lcfirst(substr($name, 3))] = true;
|
||||
$propertyName = substr($name, 3);
|
||||
|
||||
if (!$reflClass->hasProperty($propertyName)) {
|
||||
$propertyName = lcfirst($propertyName);
|
||||
}
|
||||
|
||||
$attributes[$propertyName] = true;
|
||||
} elseif (strpos($name, 'is') === 0) {
|
||||
// issers
|
||||
$attributes[lcfirst(substr($name, 2))] = true;
|
||||
$propertyName = substr($name, 2);
|
||||
|
||||
if (!$reflClass->hasProperty($propertyName)) {
|
||||
$propertyName = lcfirst($propertyName);
|
||||
}
|
||||
|
||||
$attributes[$propertyName] = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue