Skip to content

Commit

Permalink
Check array index instead of error suppression
Browse files Browse the repository at this point in the history
  • Loading branch information
kelunik committed Aug 18, 2015
1 parent de76032 commit 8031623
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/NativeReactor.php
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ public function immediately(callable $callback, array $options = []) {
$watcher->id = $watcherId = \spl_object_hash($watcher);
$watcher->type = Watcher::IMMEDIATE;
$watcher->callback = $callback;
$watcher->cbData = @$options["cb_data"];
$watcher->cbData = isset($options["cb_data"]) ? $options["cb_data"] : null;
$watcher->isEnabled = isset($options["enable"]) ? (bool) $options["enable"] : true;
$watcher->keepAlive = isset($options["keep_alive"]) ? (bool) $options["keep_alive"] : true;

Expand Down

0 comments on commit 8031623

Please sign in to comment.