PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 3.2.6
ShopBuilder – WooCommerce Builder For Elementor v3.2.6
3.4.2 3.4.1 3.4.0 2.0.1 2.0.2 2.0.3 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 All 63 releases
shopbuilder / vendor / matthiasmullie / minify / src / Exceptions / PatternMatchException.php

PatternMatchException.php in ShopBuilder – WooCommerce Builder For Elementor 3.2.6, at vendor/matthiasmullie/minify/src/Exceptions/PatternMatchException.php

37 lines 828 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Pattern match exception.
5 *
6 * Please report bugs on https://github.com/matthiasmullie/minify/issues
7 *
8 * @author Ere Maijala <ere.maijala@helsinki.fi>
9 * @copyright Copyright (c) 2012, Matthias Mullie. All rights reserved
10 * @license MIT License
11 */
12
13 namespace MatthiasMullie\Minify\Exceptions;
14
15 /**
16 * Pattern Match Exception Class.
17 *
18 * @author Ere Maijala <ere.maijala@helsinki.fi>
19 */
20 class PatternMatchException extends BasicException
21 {
22 /**
23 * Create an exception from preg_last_error.
24 *
25 * @param string $msg Error message
26 */
27 public static function fromLastError($msg)
28 {
29 $msg .= ': Error ' . preg_last_error();
30 if (PHP_MAJOR_VERSION >= 8) {
31 $msg .= ' - ' . preg_last_error_msg();
32 }
33
34 return new PatternMatchException($msg);
35 }
36 }
37