Skip to content

Commit ff46d98

Browse files
Fix cleanup evidence PHPStan guard
1 parent ed50ac2 commit ff46d98

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

inc/Cleanup/DataMachineJobCleanupRunEvidenceStore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ private function aggregate_cleanup_child_jobs( array $child_jobs ): array {
147147

148148
$parent_job_ids = array();
149149
foreach ( $child_jobs as $child ) {
150-
$parent_job_id = (int) ( is_array($child) ? ( $child['parent_job_id'] ?? 0 ) : 0 );
150+
$parent_job_id = (int) ( $child['parent_job_id'] ?? 0 );
151151
if ( $parent_job_id > 0 ) {
152152
$parent_job_ids[ $parent_job_id ] = true;
153153
}

0 commit comments

Comments
 (0)