flaupretre · GitHub

@flaupretre

Copy link Copy Markdown

Contributor

@flaupretre flaupretre changed the title Improve arra to string conversion Improve array to string conversion

Jan 11, 2015

@r3wt

Copy link Copy Markdown

Seems like a terrible idea to me.

@flaupretre

Copy link Copy Markdown

Contributor Author

Thanks for you return, but a little too short…

@JanTvrdik

Copy link Copy Markdown

You should take into consideration that most PHP applications do not check whether variables received in $_GET, $_POST and $_COOKIE are not arrays. The framework I use handles this validation for me but most people are not so lucky.

@Majkl578

Copy link Copy Markdown

Contributor

I think an error makes sense for array to string conversion. But concatenation is just a non-sense. Even worse behavior than simply returning "Array".

@flaupretre

Copy link Copy Markdown

Contributor Author

Updated the RFC, removing my previous opinion because the only thing I'm sure now, is that we should find a better solution than the current one.

@flaupretre

@flaupretre

@patrickallaert

Copy link Copy Markdown

Contributor

@flaupretre

@cmb69 cmb69 mentioned this pull request

Jul 6, 2015

Closed

@flaupretre

Copy link Copy Markdown

Contributor Author

This RFC is withdrawn because the subject is far from mature and requires much more thoughts. Potential BC breaks also make it a candidate for a major release only.

Read the original on github.com ↗