fix namespace issue

This commit is contained in:
Michael Becker 2023-11-11 20:31:12 -05:00
parent 72a9b8d208
commit e52ca1d691

View File

@ -2268,7 +2268,7 @@
if (!self::$operatorString) {
self::$operatorString =
'('.implode('|', array_map(array('lessc', 'preg_quote'),
'('.implode('|', array_map(array('Phast\\Compilers\\StyleSheet\\Internal\\LessStyleSheetCompiler', 'preg_quote'),
array_keys(self::$precedence))).')';
$commentSingle = LessStyleSheetCompiler::preg_quote(self::$commentSingle);
@ -2501,7 +2501,7 @@
protected function isDirective($dirname, $directives) {
// TODO: cache pattern in parser
$pattern = implode("|",
array_map(array("lessc", "preg_quote"), $directives));
array_map(array("Phast\\Compilers\\StyleSheet\\Internal\\LessStyleSheetCompiler", "preg_quote"), $directives));
$pattern = '/^(-[a-z-]+-)?(' . $pattern . ')$/i';
return preg_match($pattern, $dirname);
@ -2788,7 +2788,7 @@
$this->eatWhiteDefault = false;
$stop = array("'", '"', "@{", $end);
$stop = array_map(array("lessc", "preg_quote"), $stop);
$stop = array_map(array("Phast\\Compilers\\StyleSheet\\Internal\\LessStyleSheetCompiler", "preg_quote"), $stop);
// $stop[] = self::$commentMulti;
if (!is_null($rejectStrs)) {