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 authored Nov 23, 2023
1 parent d68b534 commit 0c9b42e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/Drivers/UnixLikeDriverTest.php
Original file line number Diff line number Diff line change
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 tests/Drivers/WindowsDriverTest.php
Original file line number Diff line number Diff line change
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 0c9b42e

Please sign in to comment.