aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-external-packages/src/symfony/console/formatter
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-07-26 00:37:53 +0900
committernsfisis <nsfisis@gmail.com>2026-07-26 00:37:53 +0900
commit1bbf06f5c852ed73d73b0dd1b86cd85661e0a610 (patch)
tree7e298eb59f2da8ce01cdc469d4b98fba402de0e9 /crates/shirabe-external-packages/src/symfony/console/formatter
parented0da7fcc3056ce5a822ac0de63ccc2dc799006e (diff)
downloadphp-shirabe-1bbf06f5c852ed73d73b0dd1b86cd85661e0a610.tar.gz
php-shirabe-1bbf06f5c852ed73d73b0dd1b86cd85661e0a610.tar.zst
php-shirabe-1bbf06f5c852ed73d73b0dd1b86cd85661e0a610.zip
fix(console-table): wrap cells that exceed the column max width
buildTableRows panicked on the unported formatAndWrap call, so any table with a max column width (e.g. the audit advisory table) aborted the process. PHP calls the formatter as a WrappableOutputFormatterInterface; model that instanceof as an AsAny downcast to OutputFormatter, the sole implementor in this port. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe-external-packages/src/symfony/console/formatter')
-rw-r--r--crates/shirabe-external-packages/src/symfony/console/formatter/output_formatter_interface.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/shirabe-external-packages/src/symfony/console/formatter/output_formatter_interface.rs b/crates/shirabe-external-packages/src/symfony/console/formatter/output_formatter_interface.rs
index 41c84dab..a436ad8c 100644
--- a/crates/shirabe-external-packages/src/symfony/console/formatter/output_formatter_interface.rs
+++ b/crates/shirabe-external-packages/src/symfony/console/formatter/output_formatter_interface.rs
@@ -3,7 +3,7 @@
use crate::symfony::console::formatter::output_formatter_style_interface::OutputFormatterStyleInterface;
/// Formatter interface for console output.
-pub trait OutputFormatterInterface {
+pub trait OutputFormatterInterface: shirabe_php_shim::AsAny {
/// Sets the decorated flag.
fn set_decorated(&mut self, decorated: bool);