bug #16578 [Console] Fix bug in windows detection (kbond)
This PR was submitted for the 2.8 branch but it was merged into the 2.7 branch instead (closes #16578).
Discussion
----------
[Console] Fix bug in windows detection
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #16577
| License | MIT
| Doc PR | n/a
Commits
-------
c4068d9
Fix bug in windows detection
This commit is contained in:
commit
2cbf8221e6
@ -294,7 +294,7 @@ class SymfonyStyle extends OutputStyle
|
|||||||
{
|
{
|
||||||
$progressBar = parent::createProgressBar($max);
|
$progressBar = parent::createProgressBar($max);
|
||||||
|
|
||||||
if ('\\' === DIRECTORY_SEPARATOR) {
|
if ('\\' !== DIRECTORY_SEPARATOR) {
|
||||||
$progressBar->setEmptyBarCharacter('░'); // light shade character \u2591
|
$progressBar->setEmptyBarCharacter('░'); // light shade character \u2591
|
||||||
$progressBar->setProgressCharacter('');
|
$progressBar->setProgressCharacter('');
|
||||||
$progressBar->setBarCharacter('▓'); // dark shade character \u2593
|
$progressBar->setBarCharacter('▓'); // dark shade character \u2593
|
||||||
|
Reference in New Issue
Block a user