public static function build(): array
    {
        $rules = [];

        foreach (self::$supportedRules as $className) {
            $rules[] = GraphQL::make($className);
        }

        return $rules;
    }
public static function build(): array
    {
        $rules = [];

        foreach (self::$supportedRules as $className) {
            $rules[] = GraphQL::make($className);
        }

        return $rules;
    }
public static function build ( ) : array { $ rules = [ ] ; foreach ( self :: $ supportedRules as $ className ) { $ rules [ ] = GraphQL :: make ( $ className ) ; } return $ rules ; }
Rules maintain state so they should always new instances.

@return array
Rules maintain state so they should always new instances .