The PHP 7 Revolution: Return Types and Removed Artifacts

One thing I think would be a very important step forward is Scalar Objects to allow $str->replace(), $int->abs(), $array->combine() etc. Is there any discussion about implementing this? There’s an extension here: https://github.com/nikic/scalar_objects but it’s a bit limited at the moment.

This syntax change could also help fix a lot of the odd naming inconsistencies strpos vs str_replace, etc.