--- /dev/null
+<?php
+
+use Symfony\Component\Console\Input\InputInterface;
+use Symfony\Component\Console\Output\OutputInterface;
+use Symfony\Component\Console\Tests\Style\SymfonyStyleWithForcedLineLength;
+
+//Ensure symfony style helper methods handle trailing backslashes properly when decorating user texts
+return function (InputInterface $input, OutputInterface $output) {
+ $output = new SymfonyStyleWithForcedLineLength($input, $output);
+
+ $output->title('Title ending with \\');
+ $output->section('Section ending with \\');
+};