Skip to content

Commit

Permalink
Fix phpstan!
Browse files Browse the repository at this point in the history
  • Loading branch information
VennDev authored Aug 21, 2024
1 parent b292c15 commit e994e00
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/vennv/vapm/Thread.php
Original file line number Diff line number Diff line change
Expand Up @@ -477,14 +477,12 @@ public function start(array $mode = DescriptorSpec::BASIC): Promise
fclose($pipes[1]);
fclose($pipes[2]);

if ($error !== '' && is_string($error)) {
if ($error !== '') {
return $reject(new ThreadException($error));
} else {
if (!is_bool($output)) {
if ($output !== '' && self::isPostMainThread($output)) self::loadSharedData($output);
elseif ($output !== '' && self::isPostThread($output)) {
$output = Utils::getStringAfterSign($output, self::POST_THREAD . '=>');
}
if ($output !== '' && self::isPostMainThread($output)) self::loadSharedData($output);
elseif ($output !== '' && self::isPostThread($output)) {
$output = Utils::getStringAfterSign($output, self::POST_THREAD . '=>');
}
}
} else {
Expand Down

0 comments on commit e994e00

Please sign in to comment.