Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit24f77a0

Browse files
author
Emmanuel BORGES
committed
Fix getSetMethodNormalizer to correctly ignore the attributes specified in "ignored_attributes"
1 parente74e0f9 commit24f77a0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

‎UPGRADE-4.2.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ FrameworkBundle
179179
* The `Templating\Helper\TranslatorHelper::transChoice()` method has been deprecated, use the `trans()` one instead with a `%count%` parameter.
180180
* Deprecated support for legacy translations directories `src/Resources/translations/` and `src/Resources/<BundleName>/translations/`, use `translations/` instead.
181181
* Support for the legacy directory structure in `translation:update` and `debug:translation` commands has been deprecated.
182+
* The `GetSetMethodNormalizer` class correctly ignores the attributes specified in "ignored_attributes".
182183

183184
HttpFoundation
184185
--------------

‎src/Symfony/Component/Serializer/Normalizer/GetSetMethodNormalizer.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ protected function extractAttributes($object, $format = null, array $context = [
110110

111111
$attributeName =lcfirst(substr($method->name,0 ===strpos($method->name,'is') ?2 :3));
112112

113-
if ($this->isAllowedAttribute($object,$attributeName)) {
113+
if ($this->isAllowedAttribute($object,$attributeName,null,$context)) {
114114
$attributes[] =$attributeName;
115115
}
116116
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp