From 05c38483041fb416ae1293a6579bb7c49b4e6954 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 16 Aug 2026 09:27:35 +0900 Subject: refactor(style): type SymfonyStyle messages as strings and cells SymfonyStyle modelled PHP's string|array message parameters, its array of listing elements and its table headers/rows as PhpMixed, then normalised and stringified them at every entry point. Take &[String] for the message and listing parameters, Vec/Vec for table (matching the horizontal_table signature) and Vec for the choice options, so the is_array/is_iterable normalisation and the php_string helper both go away. PhpMixed stays where PHP is genuinely mixed: the question answers returned by ask/ask_hidden/choice, their validators, choice's string|int|null default, and the progress_iterate elements. Co-Authored-By: Claude Opus 5 (1M context) --- crates/shirabe-symfony-console/src/helper/symfony_question_helper.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/shirabe-symfony-console/src/helper') diff --git a/crates/shirabe-symfony-console/src/helper/symfony_question_helper.rs b/crates/shirabe-symfony-console/src/helper/symfony_question_helper.rs index 5b4b3ba0..c971b5fd 100644 --- a/crates/shirabe-symfony-console/src/helper/symfony_question_helper.rs +++ b/crates/shirabe-symfony-console/src/helper/symfony_question_helper.rs @@ -138,7 +138,7 @@ impl QuestionHelperInterface for SymfonyQuestionHelper { let mut borrowed = output.borrow_mut(); if let Some(style) = (*borrowed).as_any_mut().downcast_mut::() { style.new_line(1); - style.error(PhpMixed::String(error.get_message().to_string())); + style.error(&[error.get_message().to_string()]); return; } -- cgit v1.3.1-4-g156e