Hi,
my PS was running fine on PHP 7.2 before, then suddenly this error occurred... but seems when i downgrade it to PHP 5.6 the issue get resolved.
so my conclusion is there is recent module which is not supported by PHP 7.2 that is why error is occurring.
any one facing the issue can downgrade or update the PHP version and it will fix the error.
regards