Skip to content

Commit 52b8451

Browse files
committed
Modernize: use numeric literal separators
Since PHP 7.4, PHP allows using numeric literal separators in integers and floats to improve the readability of long numbers. As this codebase has dropped support for PHP < 7.4 by now, we can apply this modernization to all long numbers in this codebase. Ref: * https://wiki.php.net/rfc/numeric_literal_separator
1 parent dea7c7b commit 52b8451

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/WP/Handlers/Save_Post_Handler_Test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ public function test_delete_on_save_post_does_nothing_for_nonexistent_post() {
228228
$_POST['duplicate_post_remove_original'] = '1';
229229

230230
// Call the method with a non-existent post ID - should not throw error.
231-
$this->instance->delete_on_save_post( 999999 );
231+
$this->instance->delete_on_save_post( 999_999. );
232232

233233
// If we get here without errors, the test passes.
234234
}

0 commit comments

Comments
 (0)