June 2017
Intermediate to advanced
536 pages
9h 49m
English
PHP 7 brought forth the function type parameters and function return types. This, in turn, implied the need to properly handle errors around their misuse. TypeError was introduced to target these errors.
The TypeError class has no methods of its own, they are all inherited from the parent Error class, as per the following class synopsis:
ParseError extends Error { final public string Error::getMessage (void) final public Throwable Error::getPrevious (void) final public mixed Error::getCode (void) final public string Error::getFile (void) final public int Error::getLine (void) final public array Error::getTrace (void) final public string Error::getTraceAsString (void) public string Error::__toString (void) final private void Error::__clone ...