failure = $errors; } } /** * Whether the upgrader reported a failure. * * @since 4.10.1 * * @return bool */ public function has_failure(): bool { return $this->failure !== null; } /** * The failure the upgrader reported, when it reported one. * * @since 4.10.1 * * @return WP_Error|null */ public function get_failure(): ?WP_Error { return $this->failure; } /** * Empty out JavaScript output that calls function to decrement the update counts. * * @since 1.5.0 * * @param string $type Type of update count to decrement. */ public function decrement_update_count( $type ) { } }