Skip to content

Commit

Permalink
Fix array access on null last error
Browse files Browse the repository at this point in the history
  • Loading branch information
trowski committed Feb 10, 2020
1 parent cbef0db commit 2ac3b55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Loop/NativeDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ private function selectStreams(array $read, array $write, int $timeout)

$error = \error_get_last();

if (\strpos($error["message"], "unable to select") !== 0) {
if (\strpos($error["message"] ?? '', "unable to select") !== 0) {
return;
}

Expand Down

0 comments on commit 2ac3b55

Please sign in to comment.