public function handleError($code, $message, $file, $line)
{
// PHP 7 turned some E_STRICT messages to E_WARNINGs. Code 2 is for all warnings
// and since there are no messages specific codes we have to parse the string for what
// we're looking for. Lame, but it works since all PHP error messages are always in English.
// https://stackoverflow.com/questions/11556375/is-there-a-way-to-localize-phps-error-output
if (version_compare(PHP_VERSION, '7', '>=') && $code === 2 && strpos($message, 'should be compatible with') !== false) {
return;
}
parent::handleError($code, $message, $file, $line);
}