kahlan\PhpErrorException::__construct PHP Method

__construct() public method

The exception message.
public __construct ( $config = [], string $code )
$code string The exception code.
    public function __construct($config = [], $code = 0)
    {
        if (is_string($config)) {
            $this->message = $config;
            $this->code = $code;
        }
        if (!is_array($config)) {
            return;
        }
        $defaults = ['message' => '', 'code' => 0, 'file' => '', 'line' => 0, 'trace' => []];
        $config += $defaults;
        foreach ($config as $key => $value) {
            $this->{$key} = $value;
        }
    }
PhpErrorException