8000 [Serializer] Add feature description for `AbstractNormalizer::REQUIRE_ALL_PROPERTIES` context option by christian-kolb · Pull Request #17979 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

[Serializer] Add feature description for AbstractNormalizer::REQUIRE_ALL_PROPERTIES context option #17979

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

Merged
merged 7 commits into from
Nov 21, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update components/serializer.rst
Co-authored-by: Oskar Stark <oskarstark@googlemail.com>
  • Loading branch information
christian-kolb and OskarStark authored Feb 28, 2023
commit 3b24418e4e3b3a02a513a5a1f1a39d7fc6de7ba6
3 changes: 2 additions & 1 deletion components/serializer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1249,7 +1249,8 @@ By default, the Serializer will add ``null`` to nullable properties when the par
You can change this behavior by setting the ``AbstractNormalizer::PREVENT_NULLABLE_FALLBACK`` context option
to ``true``::

class Dummy {
class Dummy
{
public function __construct(
public string $foo,
public ?string $bar,
Expand Down
0