diff options
author | Bartosz DziewoĆski <matma.rex@gmail.com> | 2017-10-06 21:17:52 +0200 |
---|---|---|
committer | James D. Forrester <jforrester@wikimedia.org> | 2018-05-30 18:05:19 -0700 |
commit | 4fd27f006f3a233f2bed8585b1325d318763abb0 (patch) | |
tree | 2224d5033453ef1974f2c153801fbcf6e9a8c13e /includes/diff/DiffEngine.php | |
parent | 52b0799e8deca45ba345eb6db4f173a20bbe44fa (diff) | |
download | mediawikicore-4fd27f006f3a233f2bed8585b1325d318763abb0.tar.gz mediawikicore-4fd27f006f3a233f2bed8585b1325d318763abb0.zip |
Use PHP 5.6 '**' operator instead of 'pow()' function
Change-Id: Ieb22e1dbfcffaa4e7b3dcfabbcc999e5dd59a4bf
Diffstat (limited to 'includes/diff/DiffEngine.php')
-rw-r--r-- | includes/diff/DiffEngine.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/diff/DiffEngine.php b/includes/diff/DiffEngine.php index 273d1d61f6fc..142c51d7a0c5 100644 --- a/includes/diff/DiffEngine.php +++ b/includes/diff/DiffEngine.php @@ -351,7 +351,7 @@ class DiffEngine { $this->maxDifferences = ceil( ( $this->m + $this->n ) / 2.0 ); if ( $this->m * $this->n > $this->tooLong ) { // limit complexity to D^POW_LIMIT for long sequences - $this->maxDifferences = floor( pow( $this->maxDifferences, $this->powLimit - 1.0 ) ); + $this->maxDifferences = floor( $this->maxDifferences ** ( $this->powLimit - 1.0 ) ); wfDebug( "Limiting max number of differences to $this->maxDifferences\n" ); } |