Skip to content

Commit

Permalink
Fix!
Browse files Browse the repository at this point in the history
  • Loading branch information
VennDev authored Aug 18, 2024
1 parent 2edd575 commit 5b06b11
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/vennv/vapm/ClosureThread.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,11 @@ public function onRun(): void
} else {
$callback = (string) $callback;
}
/** @var bool|string $callback */
if (is_bool($callback)) $callback = $callback ? 'true' : 'false';
if (is_string($callback)) self::post($callback);
if (is_string($callback)) {
self::post($callback);
} elseif (is_bool($callback)) {
self::post($callback ? 'true' : 'false');

Check failure on line 75 in src/vennv/vapm/ClosureThread.php

View workflow job for this annotation

GitHub Actions / Jobs (8.2)

Ternary operator condition is always false.
}
}
}

Expand Down

0 comments on commit 5b06b11

Please sign in to comment.