@@ -2780,16 +2780,30 @@ private function build_active_no_signal_evidence_row( array $row, array &$github
27802780 }
27812781
27822782 $ remote_ref = 'refs/remotes/origin/ ' . $ branch ;
2783- $ remote = $ this ->time_worktree_probe ($ out ['probe_timings_ms ' ], 'remote_tracking ' , fn () => $ this ->cached_active_no_signal_remote_tracking_probe ($ primary_path , $ remote_ref , $ probe_cache ));
2783+ $ remote = $ this ->time_worktree_probe (
2784+ $ out ['probe_timings_ms ' ],
2785+ 'remote_tracking ' ,
2786+ function () use ( $ primary_path , $ remote_ref , &$ probe_cache ) {
2787+ return $ this ->cached_active_no_signal_remote_tracking_probe ($ primary_path , $ remote_ref , $ probe_cache );
2788+ }
2789+ );
27842790 $ out ['remote_tracking ' ] = ! is_wp_error ($ remote ) && ! $ this ->is_git_timeout_error ($ remote );
27852791
2786- $ default_ref = $ this ->time_worktree_probe ($ out ['probe_timings_ms ' ], 'default_ref ' , fn () => $ this ->cached_active_no_signal_default_ref_probe ($ primary_path , $ probe_cache ));
2792+ $ default_ref = $ this ->time_worktree_probe (
2793+ $ out ['probe_timings_ms ' ],
2794+ 'default_ref ' ,
2795+ function () use ( $ primary_path , &$ probe_cache ) {
2796+ return $ this ->cached_active_no_signal_default_ref_probe ($ primary_path , $ probe_cache );
2797+ }
2798+ );
27872799 if ( is_string ($ default_ref ) && '' !== $ default_ref ) {
27882800 $ out ['default_ref ' ] = $ default_ref ;
27892801 $ outside = $ this ->time_worktree_probe (
27902802 $ out ['probe_timings_ms ' ],
27912803 'commits_outside_default ' ,
2792- fn () => $ this ->cached_active_no_signal_commits_outside_default_probe ($ primary_path , $ default_ref , $ branch , $ probe_cache )
2804+ function () use ( $ primary_path , $ default_ref , $ branch , &$ probe_cache ) {
2805+ return $ this ->cached_active_no_signal_commits_outside_default_probe ($ primary_path , $ default_ref , $ branch , $ probe_cache );
2806+ }
27932807 );
27942808 if ( ! is_wp_error ($ outside ) && ! $ this ->is_git_timeout_error ($ outside ) ) {
27952809 $ out ['commits_outside_default ' ] = (int ) trim ( (string ) ( $ outside ['output ' ] ?? '' ));
@@ -2805,7 +2819,13 @@ private function build_active_no_signal_evidence_row( array $row, array &$github
28052819 if ( (int ) ( $ out ['dirty ' ] ?? 0 ) > 0 || (int ) ( $ out ['unpushed ' ] ?? 0 ) > 0 ) {
28062820 $ out ['pr_lookup_skipped ' ] = 'dirty_or_unpushed_rows_are_always_manual_review ' ;
28072821 } else {
2808- $ slug = $ this ->time_worktree_probe ($ out ['probe_timings_ms ' ], 'github_slug ' , fn () => $ this ->cached_active_no_signal_github_slug_probe ($ primary_path , $ probe_cache ));
2822+ $ slug = $ this ->time_worktree_probe (
2823+ $ out ['probe_timings_ms ' ],
2824+ 'github_slug ' ,
2825+ function () use ( $ primary_path , &$ probe_cache ) {
2826+ return $ this ->cached_active_no_signal_github_slug_probe ($ primary_path , $ probe_cache );
2827+ }
2828+ );
28092829 if ( null !== $ slug ) {
28102830 $ pr = $ this ->time_worktree_probe ($ out ['probe_timings_ms ' ], 'github_pr_lookup ' , fn () => $ this ->find_pr_for_branch_direct ($ slug , $ branch , $ github_cache , false ));
28112831 if ( is_wp_error ($ pr ) ) {
0 commit comments