diff --git a/appendices/migration80/incompatible.xml b/appendices/migration80/incompatible.xml index 7d278ebb32b7..1affc7b43881 100644 --- a/appendices/migration80/incompatible.xml +++ b/appendices/migration80/incompatible.xml @@ -306,6 +306,10 @@ function test(int $arg = null) {} Attempting to access unqualified constants which are undefined. Previously, unqualified constant accesses resulted in a warning and were interpreted as strings. + + Passing the wrong number of arguments to a non-variadic built-in + function will throw an ArgumentCountError. + diff --git a/language/predefined/argumentcounterror.xml b/language/predefined/argumentcounterror.xml index 67763585d3a8..82016c12bd0b 100644 --- a/language/predefined/argumentcounterror.xml +++ b/language/predefined/argumentcounterror.xml @@ -13,6 +13,10 @@ ArgumentCountError is thrown when too few arguments are passed to a user-defined function or method. + + This error is also thrown when too many arguments are passed to a + non-variadic built-in function. +