PHP 5.2 Compatibility

This commit is contained in:
Gustavo Bordoni 2018-12-06 09:45:09 -05:00 committed by GitHub
parent 164758a5f0
commit 98d6a715a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ abstract class ActionScheduler_Logger {
$this->log( $action_id, __( 'action complete', 'action-scheduler' ) );
}
public function log_failed_action( $action_id, \Exception $exception ) {
public function log_failed_action( $action_id, Exception $exception ) {
$this->log( $action_id, sprintf( __( 'action failed: %s', 'action-scheduler' ), $exception->getMessage() ) );
}
@ -95,4 +95,4 @@ abstract class ActionScheduler_Logger {
$this->log( $action_id, __( 'action ignored', 'action-scheduler' ) );
}
}