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