diff --git a/src/Event.php b/src/Event.php index b01a2405..667a91fe 100644 --- a/src/Event.php +++ b/src/Event.php @@ -245,7 +245,7 @@ public function isLocked() { $lock_file = $this->lockFilePath(); - $pid = file_exists($lock_file) ? trim(file_get_contents($lock_file)) : null; + $pid = file_exists($lock_file) ? (int)trim(file_get_contents($lock_file)) : null; return (!is_null($pid) && posix_getsid($pid)) ? true : false;