Skip to content

Don't accept objects in random places in curl#5773

Closed
nikic wants to merge 1 commit intophp:masterfrom
nikic:curl-object
Closed

Don't accept objects in random places in curl#5773
nikic wants to merge 1 commit intophp:masterfrom
nikic:curl-object

Conversation

@nikic
Copy link
Member

@nikic nikic commented Jun 26, 2020

https://bugs.php.net/bug.php?id=79741 is another great illustration why it is such a bad idea to silently accept objects where arrays are expected. Remove this "feature" for PHP 8. Code intentionally passing an object will have to perform the hard task of adding an (array) cast.

@php-pulls php-pulls closed this in 6e1990d Jun 29, 2020
@carusogabriel carusogabriel added this to the PHP 8.0 milestone Jun 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants