diff --git a/collectors/php_errors.php b/collectors/php_errors.php index 9e0004bd9..9aaf0149b 100644 --- a/collectors/php_errors.php +++ b/collectors/php_errors.php @@ -124,7 +124,7 @@ public function tear_down() { error_reporting( $this->error_reporting ); } - if ( false !== $this->display_errors ) { + if ( is_string( $this->display_errors ) ) { ini_set( 'display_errors', $this->display_errors ); }