src/Whoops/Run.php
public function silenceErrorsInPaths($patterns, $levels = 10240)
    {
        $this->silencedPatterns = array_merge(
            $this->silencedPatterns,
            array_map(
                function ($pattern) use ($levels) {
                    return [
                        "pattern" => $pattern,
                        "levels" => $levels,
                    ];
                },
                (array) $patterns
            )
        );
        return $this;
    }
public function silenceErrorsInPaths($patterns, $levels = 10240)
    {
        $this->silencedPatterns = array_merge(
            $this->silencedPatterns,
            array_map(
                function ($pattern) use ($levels) {
                    return [
                        "pattern" => $pattern,
                        "levels" => $levels,
                    ];
                },
                (array) $patterns
            )
        );
        return $this;
    }
public function silenceErrorsInPaths ( $ patterns , $ levels = 10240 ) { $ this -> silencedPatterns = array_merge ( $ this -> silencedPatterns , array_map ( function ( $ pattern ) use ( $ levels ) { return [ "pattern" => $ pattern , "levels" => $ levels , ] ; } , ( array ) $ patterns ) ) ; return $ this ; }
Silence particular errors in particular files
@param  array|string $patterns List or a single regex pattern to match
@param  int          $levels   Defaults to E_STRICT | E_DEPRECATED
@return \Whoops\Run
Silence particular errors in particular files