2

I'm using PHP SQL Parser. Working fine last few months I upgrade PHP 7.2

Then I got the error like.

> Declaration of ReplaceProcessor::process($tokenList) must be
> compatible with InsertProcessor::process($tokenList, $token_category =
> 'INSERT')

How can I solve this ?

Rp9
  • 1,955
  • 2
  • 23
  • 31
Siddhu
  • 241
  • 2
  • 3
  • 16

1 Answers1

2

Got the Solution!

Replace the following class definition in "server/PHPSqlParser/processors/ReplaceProcessor.php"

Line 42

class ReplaceProcessor extends InsertProcessor {

    public function process($tokenList, $token_category = 'REPLACE') {
        return parent::process($tokenList, $token_category);
    }

}
Siddhu
  • 241
  • 2
  • 3
  • 16
  • Thanks. Had to add the $isUpdate parameter the DuplicateProcessor class in the same manner though. Seems like a pretty abandoned project altogether. But hopefully it'll come in handy during migration efforts. – zmippie Jan 12 '19 at 09:15