wp/wp-includes/class-wp-fatal-error-handler.php
changeset 19 3d72ae0968f4
parent 18 be944660c56a
child 21 48c4eec2b7e6
--- a/wp/wp-includes/class-wp-fatal-error-handler.php	Wed Sep 21 18:19:35 2022 +0200
+++ b/wp/wp-includes/class-wp-fatal-error-handler.php	Tue Sep 27 16:37:53 2022 +0200
@@ -66,7 +66,8 @@
 	 *
 	 * @since 5.2.0
 	 *
-	 * @return array|null Error that was triggered, or null if no error received or if the error should not be handled.
+	 * @return array|null Error information returned by `error_get_last()`, or null
+	 *                    if none was recorded or the error should not be handled.
 	 */
 	protected function detect_error() {
 		$error = error_get_last();
@@ -90,7 +91,7 @@
 	 *
 	 * @since 5.2.0
 	 *
-	 * @param array $error Error information retrieved from error_get_last().
+	 * @param array $error Error information retrieved from `error_get_last()`.
 	 * @return bool Whether WordPress should handle this error.
 	 */
 	protected function should_handle_error( $error ) {
@@ -116,7 +117,7 @@
 		 * @since 5.2.0
 		 *
 		 * @param bool  $should_handle_error Whether the error should be handled by the fatal error handler.
-		 * @param array $error               Error information retrieved from error_get_last().
+		 * @param array $error               Error information retrieved from `error_get_last()`.
 		 */
 		return (bool) apply_filters( 'wp_should_handle_php_error', false, $error );
 	}