# Feature Request <!-- First, thank you for making a request. That takes time and we appreciate that! --> ## Diff <!-- Use diff here in Markdown: https://stackoverflow.com/a/40883538/1348344 --> ```diff -return substr('a', 2); +return (string) substr('a', 2); ``` Add cast, to ensure it always string. Ref https://3v4l.org/PGpEe This needs to identify its usage to avoid too many changes in many area.