Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create devcontainer.json #86

Open
wants to merge 54 commits into
base: 7.1
Choose a base branch
from
Open
Changes from 2 commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
a1b3df8
[Console] Better error handling when misuse of `ArgvInput` with arrays
symfonyaml Apr 12, 2024
aaef070
bug #54576 [Console] Better error handling when misuse of `ArgvInput`…
fabpot Jun 3, 2024
d4f6891
Prefix all sprintf() calls
derrabus Jun 20, 2024
f63a2ee
chore: CS fixes
keradus Jun 16, 2024
5ed7b6c
Add return type to __toString() methods
seriquynh Jun 28, 2024
b71a095
Merge branch '7.1' into 7.2
nicolas-grekas Jun 28, 2024
d36a5fe
Update .gitattributes
fabpot Jul 6, 2024
22e3436
[Console] Remove a redundant check in `ErrorListener`
seriquynh Jul 18, 2024
f807c53
Replace `TestCase::assertTrue(true)` with `TestCase::expectNotToPerfo…
alexandre-daubois Jul 22, 2024
43b48b2
Use CPP where possible
alexandre-daubois Jul 22, 2024
2bac616
Merge branch '7.1' into 7.2
xabbuh Jul 24, 2024
21e08e0
minor #57795 Use CPP where possible (alexandre-daubois)
fabpot Jul 25, 2024
2d8cffd
Merge branch '7.1' into 7.2
nicolas-grekas Jul 26, 2024
8b3ee1c
[Cache][Config][Console][DependencyInjection][FrameworkBundle] Remove…
alexandre-daubois Jul 19, 2024
b54fbe5
Create devcontainer.json
norbertosus Jul 26, 2024
d48400b
Remove unused code and unnecessary `else` branches
alexandre-daubois Jul 31, 2024
7d6b78e
Code style change in `@PER-CS2.0` affecting `@Symfony` (parentheses f…
bonroyage Aug 1, 2024
a228c54
minor #57901 Code style change in ``@PER`-CS2.0` affecting ``@Symfony…
derrabus Aug 6, 2024
2204ca3
Merge branch '7.1' into 7.2
xabbuh Aug 12, 2024
7884dc7
[PhpUnitBridge][Console][VarDumper] Add support for `FORCE_COLOR` env…
serious-angel Jul 19, 2024
7e27871
feature #57777 [VarDumper] Add support for `FORCE_COLOR` environment …
nicolas-grekas Aug 13, 2024
3c43d7e
Merge branch '7.1' into 7.2
nicolas-grekas Aug 13, 2024
cc2dd55
Merge branch '7.1' into 7.2
chalasr Aug 15, 2024
ee7ee22
[Console][Process] Add `$verbosity` argument to `mustRun` helper method
willrowe Aug 23, 2024
07d683c
no longer use the internal TestFailure class
xabbuh Sep 5, 2024
4843e24
Merge branch '7.1' into 7.2
derrabus Sep 8, 2024
07792b2
Merge branch '7.1' into 7.2
derrabus Sep 20, 2024
e57e6e0
[Console] Add silent verbosity mode suppressing all output, including…
wouterj Sep 19, 2024
300899a
Fix `$this` calls to static ones when relevant
alexandre-daubois Sep 24, 2024
dde368a
Remove useless parent method calls in tests
alexandre-daubois Sep 24, 2024
a113dc3
Merge branch '7.1' into 7.2
nicolas-grekas Sep 25, 2024
96ca566
Merge branch '7.1' into 7.2
nicolas-grekas Sep 25, 2024
dbccd36
Remove unused imports
alexandre-daubois Sep 26, 2024
dfd8158
minor #58374 Remove useless parent method calls in tests (alexandre-d…
fabpot Sep 27, 2024
c8b5404
Merge branch '7.1' into 7.2
xabbuh Sep 28, 2024
e31f47c
Remove a few unnecessary full qualifier
alexandre-daubois Oct 1, 2024
6f86f8d
Add finished indicator to ProgressIndicator
LauLaman Jun 28, 2024
8453956
Various CS fix for consistency
alexandre-daubois Oct 3, 2024
270fd98
[Console] Use assertSame for input tests
theofidry Oct 4, 2024
721a55b
minor #58443 Various CS fix for consistency (alexandre-daubois)
fabpot Oct 6, 2024
b4f6757
feature #57576 [Console] Add finished indicator to `ProgressIndicator…
fabpot Oct 6, 2024
23a1a63
[Console] Add ability to schedule alarm signals and a `console.alarm`…
HypeMC Sep 17, 2024
de23257
CS: clean some whitespaces/indentation
keradus Oct 6, 2024
a97129d
Add `$seconds` to `keepalive` methods
valtzu Oct 13, 2024
8f6d3ec
Reduce common control flows
alexandre-daubois Oct 14, 2024
de74db6
Remove always true/false occurrences
alexandre-daubois Oct 18, 2024
c32691c
Don't use `die()` in PHPT `--SKIPIF--`
staabm Oct 27, 2024
3fda7e5
Merge branch '7.1' into 7.2
nicolas-grekas Nov 5, 2024
23c8aae
Merge branch '7.1' into 7.2
nicolas-grekas Nov 6, 2024
13189ef
Merge branch '7.1' into 7.2
xabbuh Dec 7, 2024
799445d
fix risky test that doesn't perform any assertions
xabbuh Dec 7, 2024
722fa7c
Merge branch '6.4' into 7.2
xabbuh Dec 9, 2024
fefcc18
[Console] Fix tests
chalasr Dec 11, 2024
759bdb4
Merge branch 'symfony:7.2' into patch-1
norbertosus Jan 15, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
CHANGELOG
=========

7.2
---

* Add support for `FORCE_COLOR` environment variable

7.1
---

5 changes: 5 additions & 0 deletions Output/StreamOutput.php
Original file line number Diff line number Diff line change
@@ -94,6 +94,11 @@ protected function hasColorSupport(): bool
return false;
}

// Follow https://force-color.org/
if ('' !== (($_SERVER['FORCE_COLOR'] ?? getenv('FORCE_COLOR'))[0] ?? '')) {
return true;
}

// Detect msysgit/mingw and assume this is a tty because detection
// does not work correctly, see https://github.com/composer/composer/issues/9690
if (!@stream_isatty($this->stream) && !\in_array(strtoupper((string) getenv('MSYSTEM')), ['MINGW32', 'MINGW64'], true)) {