public function create(Composer $composer): ViolationFilterInterface
    {
        $chain = new ViolationFilterChain(
            ...array_merge(
                $this->getSuggestsFilters($composer),
                $this->getIgnoreFilters($composer)
            )
        );

        return new ViolationFilterChain(
            $chain,
            new PackageRequirementsFilter(
                $composer->getLocker(),
                $chain
            )
        );
    }
public function create(Composer $composer): ViolationFilterInterface
    {
        $chain = new ViolationFilterChain(
            ...array_merge(
                $this->getSuggestsFilters($composer),
                $this->getIgnoreFilters($composer)
            )
        );

        return new ViolationFilterChain(
            $chain,
            new PackageRequirementsFilter(
                $composer->getLocker(),
                $chain
            )
        );
    }
public function create ( Composer $ composer ) : ViolationFilterInterface { $ chain = new ViolationFilterChain ( ... array_merge ( $ this -> getSuggestsFilters ( $ composer ) , $ this -> getIgnoreFilters ( $ composer ) ) ) ; return new ViolationFilterChain ( $ chain , new PackageRequirementsFilter ( $ composer -> getLocker ( ) , $ chain ) ) ; }
Create a violation filter for the given Composer instance.

@param Composer $composer

@return ViolationFilterInterface
Create a violation filter for the given Composer instance .