symfony/symfony — comment on commit 254e49b47cd6c6b9ce4edd3b6a1e0ecbbfc784df
File: src/Symfony/Bundle/FrameworkBundle/HttpKernel.php line 111
By asm89:

I agree. If you want to pass objects you're probably better of with some helper function for the serialization/deserialization.

As for supporting arrays, that would require to recursively check the arrays if it contains any non-scalar/array values?