I had the same problem with php7.0 and 7.1 but no problem with 7.2.But I coudnt find what is the setting / module causing this.
I tried this with no result. Still same thing. Thanks for the advice :)