Skip to content

Commit e994e00

Browse files
authored
Fix phpstan!
1 parent b292c15 commit e994e00

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/vennv/vapm/Thread.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -477,14 +477,12 @@ public function start(array $mode = DescriptorSpec::BASIC): Promise
477477
fclose($pipes[1]);
478478
fclose($pipes[2]);
479479

480-
if ($error !== '' && is_string($error)) {
480+
if ($error !== '') {
481481
return $reject(new ThreadException($error));
482482
} else {
483-
if (!is_bool($output)) {
484-
if ($output !== '' && self::isPostMainThread($output)) self::loadSharedData($output);
485-
elseif ($output !== '' && self::isPostThread($output)) {
486-
$output = Utils::getStringAfterSign($output, self::POST_THREAD . '=>');
487-
}
483+
if ($output !== '' && self::isPostMainThread($output)) self::loadSharedData($output);
484+
elseif ($output !== '' && self::isPostThread($output)) {
485+
$output = Utils::getStringAfterSign($output, self::POST_THREAD . '=>');
488486
}
489487
}
490488
} else {

0 commit comments

Comments
 (0)