8000 [Serializer] [WIP] Added annotations and MetadataAwareNormalizer by Nyholm · Pull Request #19374 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Serializer] [WIP] Added annotations and MetadataAwareNormalizer #19374

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 13 commits into from
Prev Previous commit
Next Next commit
minor
  • Loading branch information
Nyholm committed Sep 1, 2018
commit aaada1cbe897bffde4643d80fcb08fcdd9050348
2 changes: 1 addition & 1 deletion src/Symfony/Component/Serializer/Annotation/Methods.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function __construct(array $data)
throw new InvalidArgumentException(sprintf('Parameter of annotation "%s" cannot be empty.', get_class($this)));
}

foreach (array('getter', 'setter') as $parameter) {
foreach (array('accessor', 'mutator') as $parameter) {
if (!isset($data[$parameter]) || !$data[$parameter]) {
continue;
}
Expand Down
0