From b80e200f8367b3189da60fbdbb9d37f1ed066afe Mon Sep 17 00:00:00 2001 From: central-worker-1 Date: Fri, 11 Sep 2026 14:04:16 -0700 Subject: [PATCH] The singular delete-flash agrees with itself: "so it stays usable" (#1710) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit deletionFlash() (added by #1567) pluralised the count, the noun, the auxiliary and the pronoun, but left the verb fixed at "stay" — so the singular branch, which is the common one, shipped "1 ticket was merged into it ... so it stay usable". The verb agrees with the pronoun, so it belongs in the same ternary: "it stays" / "they stay". Nothing else about the message changes. Co-Authored-By: Claude Opus 5 --- src/Http/Controllers/TicketController.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Http/Controllers/TicketController.php b/src/Http/Controllers/TicketController.php index aca81de..0775292 100644 --- a/src/Http/Controllers/TicketController.php +++ b/src/Http/Controllers/TicketController.php @@ -775,12 +775,14 @@ class TicketController extends Controller if ($handled['unmerged'] !== []) { $parts[] = sprintf( - '%s %s merged into it and %s been un-merged (status %s) so %s stay usable: %s.', + '%s %s merged into it and %s been un-merged (status %s) so %s usable: %s.', count($handled['unmerged']), count($handled['unmerged']) === 1 ? 'ticket was' : 'tickets were', count($handled['unmerged']) === 1 ? 'has' : 'have', Ticket::STATUS_UNMERGED, - count($handled['unmerged']) === 1 ? 'it' : 'they', + // The verb agrees with the pronoun, so it lives in the same ternary: + // "so it stays usable" / "so they stay usable". + count($handled['unmerged']) === 1 ? 'it stays' : 'they stay', implode(', ', $handled['unmerged']), ); }