I kinda hope PHP would adopt java-like types for strings etc, to somewhat clean up the mess of its functions, e.g for strings - instead of str_contains, strtr, substr_compare you can do $myString->contains("test");
https://github.com/nikic/scalar_objects provides it as a plugin, but its not fully fleshed out.