diff --git a/language/predefined/typeerror.xml b/language/predefined/typeerror.xml index 67eda95fcb..8a6c7d05e3 100644 --- a/language/predefined/typeerror.xml +++ b/language/predefined/typeerror.xml @@ -15,11 +15,14 @@
&reftitle.intro; - TypeError is thrown when strict - typing is enabled and an invalid argument is given to a function. - TypeError is also thrown when an - invalid number of arguments are passed to a function. - + There are three scenarios where a + TypeError may be thrown. The + first is where the argument type being passed to a function does not match + its corresponding declared parameter type (strict mode only). The second is + where a value being returned from a function does not match the declared + function return type (strict mode only, again). The third is where an + invalid number of arguments are passed to a built-in PHP function. +