Merge "Don't call non static functions statically"

This commit is contained in:
jenkins-bot 2020-05-15 21:46:20 +00:00 committed by Gerrit Code Review
commit db29a29306

View file

@ -495,7 +495,7 @@ class CommentParser {
* @return string Regular expression
*/
public function getLocalTimestampRegexp() : string {
return self::getTimestampRegexp(
return $this->getTimestampRegexp(
$this->dateFormat,
$this->digitsRegexp,
$this->timezoneAbbrs
@ -651,7 +651,7 @@ class CommentParser {
$xpath = new DOMXPath( $rootNode->ownerDocument );
$textNodes = $xpath->query( '//text()', $rootNode );
$matches = [];
$timestampRegex = self::getLocalTimestampRegexp();
$timestampRegex = $this->getLocalTimestampRegexp();
foreach ( $textNodes as $node ) {
$startNode = $node;
$nodeText = '';