Skip to content

Commit bfa4909

Browse files
committed
Remove never from unions
1 parent 919f39b commit bfa4909

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/wp-admin/includes/class-wp-importer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public function get_imported_comments( $blog_id ) {
142142
* to the resolved blog. Exits with an error if the blog cannot be found.
143143
*
144144
* @param int|string $blog_id Blog ID or URL.
145-
* @return int|never Blog ID on success. Exits on failure.
145+
* @return int Blog ID on success. Exits on failure.
146146
*/
147147
public function set_blog( $blog_id ) {
148148
if ( is_numeric( $blog_id ) ) {
@@ -183,7 +183,7 @@ public function set_blog( $blog_id ) {
183183

184184
/**
185185
* @param int $user_id
186-
* @return int|never
186+
* @return int
187187
*/
188188
public function set_user( $user_id ) {
189189
if ( is_numeric( $user_id ) ) {

src/wp-admin/includes/file.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@ function wp_tempnam( $filename = '', $dir = '' ) {
734734
* @param string $file File the user is attempting to edit.
735735
* @param string[] $allowed_files Optional. Array of allowed files to edit.
736736
* `$file` must match an entry exactly.
737-
* @return string|null|never Returns the file name on success, null in case of absolute Windows drive paths, and dies on failure.
737+
* @return string|null Returns the file name on success, null in case of absolute Windows drive paths, and dies on failure.
738738
*/
739739
function validate_file_to_edit( $file, $allowed_files = array() ) {
740740
$code = validate_file( $file, $allowed_files );

src/wp-admin/includes/media.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ function get_upload_iframe_src( $type = null, $post_id = null, $tab = null ) {
754754
*
755755
* @since 2.5.0
756756
*
757-
* @return null|array|never Array of error messages keyed by attachment ID, null on success, or exit.
757+
* @return null|array Array of error messages keyed by attachment ID, null on success, or exit.
758758
*/
759759
function media_upload_form_handler() {
760760
check_admin_referer( 'media-form' );

src/wp-admin/includes/post.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -982,7 +982,7 @@ function wp_write_post() {
982982
*
983983
* @since 2.0.0
984984
*
985-
* @return int|never Post ID on success. Dies on failure.
985+
* @return int Post ID on success. Dies on failure.
986986
*/
987987
function write_post() {
988988
$result = wp_write_post();

0 commit comments

Comments
 (0)