src/Handlers/StreamHandler.php
public function open(): bool
    {
        $path = $this->getOptionOrDefault('path');
        if (is_resource($path)) {
            $this->resource = $path;
            return true;
        }

        $context = $this->getOptionOrDefault('context');
        if (is_resource($context)) {
            $this->resource = @fopen($path, 'ab', false, $context);
        } else {
            $this->resource = @fopen($path, 'ab');
        }

        return is_resource($this->resource);
    }
public function open(): bool
    {
        $path = $this->getOptionOrDefault('path');
        if (is_resource($path)) {
            $this->resource = $path;
            return true;
        }

        $context = $this->getOptionOrDefault('context');
        if (is_resource($context)) {
            $this->resource = @fopen($path, 'ab', false, $context);
        } else {
            $this->resource = @fopen($path, 'ab');
        }

        return is_resource($this->resource);
    }
public function open ( ) : bool { $ path = $ this -> getOptionOrDefault ( 'path' ) ; if ( is_resource ( $ path ) ) { $ this -> resource = $ path ; return true ; } $ context = $ this -> getOptionOrDefault ( 'context' ) ; if ( is_resource ( $ context ) ) { $ this -> resource = @ fopen ( $ path , 'ab' , false , $ context ) ; } else { $ this -> resource = @ fopen ( $ path , 'ab' ) ; } return is_resource ( $ this -> resource ) ; }
Open a log destination.
@return bool
Open a log destination .