src/Whoops/Exception/Frame.php
public function getComments($filter = null)
    {
        $comments = $this->comments;

        if ($filter !== null) {
            $comments = array_filter($comments, function ($c) use ($filter) {
                return $c['context'] == $filter;
            });
        }

        return $comments;
    }
public function getComments($filter = null)
    {
        $comments = $this->comments;

        if ($filter !== null) {
            $comments = array_filter($comments, function ($c) use ($filter) {
                return $c['context'] == $filter;
            });
        }

        return $comments;
    }
public function getComments ( $ filter = null ) { $ comments = $ this -> comments ; if ( $ filter !== null ) { $ comments = array_filter ( $ comments , function ( $ c ) use ( $ filter ) { return $ c [ 'context' ] == $ filter ; } ) ; } return $ comments ; }
Returns all comments for this frame. Optionally allows
a filter to only retrieve comments from a specific
context.

@param  string  $filter
@return array[]
Returns all comments for this frame . Optionally allows a filter to only retrieve comments from a specific context .