We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Example object:
<?php namespace JMS\Serializer\Tests\Fixtures; use JMS\Serializer\Annotation as Serializer; final class ObjectWithInlineArray { /** * @Serializer\Inline() * @Serializer\Type("array<string,string>") */ public $array; /** * @param array $array */ public function __construct(array $array) { $this->array = $array; } }
Example Code
$object = new ObjectWithInlineArray(['a' => 'b', 'c' => 'd']); echo($serializer->serialize($object))
Result
actual: {} expected: {"a":"b","c":"d"}
The text was updated successfully, but these errors were encountered:
schmittjoh#784 fix with inline array of type array<K, V>
2fa8f3a
d80a173
schmittjoh#784 fix code style
8d0b5d3
Merge pull request #785 from aviortm/784
39a24e8
#784 fix with inline array of type array<K, V>
fixed with #785
Sorry, something went wrong.
No branches or pull requests
Example object:
Example Code
Result
The text was updated successfully, but these errors were encountered: