Skip to content

Commit

Permalink
Fixed some Psalm errors (#302)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbyoung committed Nov 23, 2023
1 parent 96b5849 commit 4b76f3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Console/tests/Drivers/UnixLikeDriverTest.php
Expand Up @@ -81,7 +81,7 @@ public function testCliDimensionsCanBeReadFromSttyIfEnabled(): void
{
$sttyOutput = \exec('(stty -a | grep columns) 2>&1', $output, $statusCode);

if ($statusCode !== StatusCode::Ok->value) {
if ($statusCode !== StatusCode::Ok->value || $sttyOutput === false) {
$this->markTestSkipped('This test can only be run on *nix systems with STTY support');
}

Expand Down
2 changes: 1 addition & 1 deletion src/Console/tests/Drivers/WindowsDriverTest.php
Expand Up @@ -93,7 +93,7 @@ public function testCliDimensionsCanBeReadFromSttyIfEnabled(): void

$sttyOutput = \exec('(stty -a | grep columns) 2>&1', $output, $statusCode);

if ($statusCode !== StatusCode::Ok->value) {
if ($statusCode !== StatusCode::Ok->value || $sttyOutput === false) {
$this->markTestSkipped('This test can only be run on Windows with STTY support');
}

Expand Down

0 comments on commit 4b76f3c

Please sign in to comment.