[Console] fix table setHeaderTitle without headers

by @a1812

Some issues have been detected in this pull request

Issues that can be fixed by applying a patch

Review the proposed patch then download it to apply it manually or execute the following command from the repository root directory:

curl https://fabbot.io/patch/symfony/symfony/42207/e4a0c5d556ee8acd3abdbf7a8476e132e7ee6413/cs.diff | patch -p0
diff -ru src/Symfony/Component/Console/Tests/Helper/TableTest.php src/Symfony/Component/Console/Tests/Helper/TableTest.php
--- src/Symfony/Component/Console/Tests/Helper/TableTest.php	2021-07-21 10:13:03.076960581 +0000
+++ src/Symfony/Component/Console/Tests/Helper/TableTest.php	2021-07-21 10:13:05.460892298 +0000
@@ -118,11 +118,11 @@
                 $books,
                 'compact',
 <<<'TABLE'
- ISBN          Title                    Author           
- 99921-58-10-7 Divine Comedy            Dante Alighieri  
- 9971-5-0210-0 A Tale of Two Cities     Charles Dickens  
- 960-425-059-0 The Lord of the Rings    J. R. R. Tolkien 
- 80-902734-1-6 And Then There Were None Agatha Christie  
+ ISBN          Title                    Author
+ 99921-58-10-7 Divine Comedy            Dante Alighieri
+ 9971-5-0210-0 A Tale of Two Cities     Charles Dickens
+ 960-425-059-0 The Lord of the Rings    J. R. R. Tolkien
+ 80-902734-1-6 And Then There Were None Agatha Christie
 
 TABLE
             ],
@@ -131,14 +131,14 @@
                 $books,
                 'borderless',
 <<<'TABLE'
- =============== ========================== ================== 
-  ISBN            Title                      Author            
- =============== ========================== ================== 
-  99921-58-10-7   Divine Comedy              Dante Alighieri   
-  9971-5-0210-0   A Tale of Two Cities       Charles Dickens   
-  960-425-059-0   The Lord of the Rings      J. R. R. Tolkien  
-  80-902734-1-6   And Then There Were None   Agatha Christie   
- =============== ========================== ================== 
+ =============== ========================== ==================
+  ISBN            Title                      Author
+ =============== ========================== ==================
+  99921-58-10-7   Divine Comedy              Dante Alighieri
+  9971-5-0210-0   A Tale of Two Cities       Charles Dickens
+  960-425-059-0   The Lord of the Rings      J. R. R. Tolkien
+  80-902734-1-6   And Then There Were None   Agatha Christie
+ =============== ========================== ==================
 
 TABLE
             ],

0
Common Typos

0
License Headers

0
Pull Request Contributor Headers

0
File Permissions

0
Merge Commits

0
Exception Messages Formatting

0
Usage of void in test files

0
Use ::class whenever possible