Skip to content

Commit 1cec30c

Browse files
johnbillionCopilot
andauthored
Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 59090dc commit 1cec30c

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/Event/Event.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ abstract class Event {
4343
* The arguments to pass to the hook's callback function.
4444
*
4545
* Note: This should normally be an array, but may contain other types if
46-
* the cron data is corrupted or invalid. Check has_invalid_args property.
46+
* the cron data is corrupted or invalid. Check the has_invalid_args() method.
4747
*
4848
* @var mixed[]|mixed
4949
*/

src/bootstrap.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1899,8 +1899,7 @@ function show_cron_form( $editing ) {
18991899
</th>
19001900
<td>
19011901
<?php
1902-
// @phpstan-ignore booleanAnd.rightAlwaysTrue
1903-
if ( $editing && $existing && $existing->has_invalid_args() ) {
1902+
if ( $editing && $existing->has_invalid_args() ) {
19041903
printf(
19051904
'<div class="notice notice-error inline"><p>%1$s</p><p>%2$s</p></div>',
19061905
esc_html__( 'This event has invalid arguments and will not run correctly.', 'wp-crontrol' ),

0 commit comments

Comments
 (0)