Automattic\WooCommerce\Vendor\Pelago\Emogrifier\Utilities

Preg::throwExceptionspublicWC 1.0

Sets whether exceptions should be thrown if an error occurs.

Method of the class: Preg{}

No Hooks.

Returns

null. Nothing (null).

Usage

$Preg = new Preg();
$Preg->throwExceptions( $throw ): self;
$throw(true|false) (required)
.

Preg::throwExceptions() code WC 10.5.0

public function throwExceptions(bool $throw): self
{
    $this->throwExceptions = $throw;

    return $this;
}