strict_types ExceptionsΒΆ
strict_types do not apply to PHP operators, only on to typed structures.
Here, concatenation and interpolation all call __toString(), but not foo().
As you can see, print() and echo() are safe too, while implode() is not: actually, it is not safe for the first argument, but still OK with the elements of the array, in the second argument.