Skip to content

Commit

Permalink
Convert to Traits: Fix Undefined overload property: `wdRegexToActualR…
Browse files Browse the repository at this point in the history
…egexFrag`

See wpsharks/comet-cache#635
  • Loading branch information
raamdev committed Feb 28, 2016
1 parent 926f5ff commit 20c39ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/includes/traits/Shared/PatternUtils.php
Expand Up @@ -19,7 +19,7 @@ public function lineDelimitedPatternsToRegex($patterns)
$patterns = (string) $patterns;

if (($patterns = preg_split('/['."\r\n".']+/', $patterns, -1, PREG_SPLIT_NO_EMPTY))) {
$regex = '/(?:'.implode('|', array_map($this->wdRegexToActualRegexFrag, $patterns)).')/i';
$regex = '/(?:'.implode('|', array_map([$this, 'wdRegexToActualRegexFrag'], $patterns)).')/i';
}
return $regex;
}
Expand Down

0 comments on commit 20c39ab

Please sign in to comment.