src/Lock.php
public function release()
    {
        if (!$this->handler) {
            throw new \LogicException('Lock is not acquired');
        }
        if (!@ftruncate($this->handler, 0)) {
            $this->throwLastErrorException();
        }
        if (!flock($this->handler, LOCK_UN)) {
            throw new \RuntimeException(sprintf('Unable to release lock on %s', $this->file));
        }
        $this->closeFile();
    }
public function release()
    {
        if (!$this->handler) {
            throw new \LogicException('Lock is not acquired');
        }
        if (!@ftruncate($this->handler, 0)) {
            $this->throwLastErrorException();
        }
        if (!flock($this->handler, LOCK_UN)) {
            throw new \RuntimeException(sprintf('Unable to release lock on %s', $this->file));
        }
        $this->closeFile();
    }
public function release ( ) { if ( ! $ this -> handler ) { throw new \ LogicException ( 'Lock is not acquired' ) ; } if ( ! @ ftruncate ( $ this -> handler , 0 ) ) { $ this -> throwLastErrorException ( ) ; } if ( ! flock ( $ this -> handler , LOCK_UN ) ) { throw new \ RuntimeException ( sprintf ( 'Unable to release lock on %s' , $ this -> file ) ) ; } $ this -> closeFile ( ) ; }
Release the lock

@return void
@throws \LogicException if lock has not been acquired
@throws \ErrorException if could not truncate lock file
@throws \RuntimeException if could not release lock
Release the lock