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

Fix: systemHasAnsiSupport() throws an error when STDOUT is not defined #173

Closed
wants to merge 8 commits into from
Closed

Fix: systemHasAnsiSupport() throws an error when STDOUT is not defined #173

wants to merge 8 commits into from

Conversation

RyanNerd
Copy link
Contributor

@RyanNerd RyanNerd commented May 1, 2021

Util/System/Linux::systemHasAnsiSupport() throws an error in the cases where the constant STDOUT is undefined.
Fixed systemHasAnsiSupport() to return false in this instance.

Closes: #172
See: https://stackoverflow.com/questions/17769041/notice-use-of-undefined-constant-stdout-assumed-stdout/28898174

duncan3dc and others added 8 commits October 4, 2020 16:34
- PhpUnit upgraded to 9.5.0
- `assertInternalType` has been deprecated. This has been removed from the tests.
- Annotation `@doesNotPerformAssertions` to test that have no assertions
- Removed `syntaxCheck` attribute from phpunit.xml as this is no longer a valid attribute
- .gitignore file updated to ignore .phpunit.result.cache` which is sometimes created when running `phpunit` from `vendor/bin`
`systemHasAnsiSupport()` in Linux throws an error in the cases where the constant `STDOUT` is undefined.
`systemHasAnsiSupport()` is changed to return false in this instance.

See: https://stackoverflow.com/questions/17769041/notice-use-of-undefined-constant-stdout-assumed-stdout/28898174

Closes: 172
@RyanNerd
Copy link
Contributor Author

RyanNerd commented May 1, 2021

Closing due to the number commits file changes that this PR somehow grabbed unrelated to the actual code change.

@RyanNerd RyanNerd closed this May 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow CLImate to be used in a web context
2 participants