Skip to content

Commit 6ea56af

Browse files
committed
fix: pass '-1' string to wp_die to satisfy PHPStan type check
Made-with: Cursor
1 parent aa3d943 commit 6ea56af

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

aldus.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ function aldus_whats_new_notice(): void {
257257
function aldus_dismiss_notice(): void {
258258
check_ajax_referer( 'aldus_dismiss_notice', 'nonce' );
259259
if ( ! current_user_can( 'edit_posts' ) ) {
260-
wp_die( -1, '', array( 'response' => 403 ) );
260+
wp_die( '-1', '', array( 'response' => 403 ) );
261261
}
262262
update_user_meta( get_current_user_id(), 'aldus_dismissed_notice_version', ALDUS_VERSION );
263263
wp_die();

0 commit comments

Comments
 (0)