What's the difference between TypeError and InvalidArgumentException in PHP 7?
When to throw TypeError and when to throw InvalidArgumentException?
It seems that the error is getting more like exception in PHP 7.
What's the border line that divides error and exception?