array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'en', ), 'this' => array ( 0 => 'class.typeerror.php', 1 => 'TypeError', ), 'up' => array ( 0 => 'reserved.exceptions.php', 1 => 'Predefined Exceptions', ), 'prev' => array ( 0 => 'class.parseerror.php', 1 => 'ParseError', ), 'next' => array ( 0 => 'class.valueerror.php', 1 => 'ValueError', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'language/predefined/typeerror.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 7, PHP 8)
A TypeError may be thrown when:
Version | Description |
---|---|
7.1.0 | A TypeError is no longer thrown when an invalid number of arguments are passed to a built-in PHP function in strict mode. Instead, an ArgumentCountError is raised. |