PHP: Hypertext Preprocessor (original) (raw)

(PHP 7, PHP 8)

Introduction

A TypeError may be thrown when:

Class synopsis

class **TypeError extends Error {

/* Inherited properties */

/* Inherited methods */

}

Changelog

Version Description
7.1.0 In strict mode, passing an incorrect number of arguments to a built-in PHP function no longer results in a generic TypeError. Instead, a more specific ArgumentCountError, which extends TypeError, is thrown.