diff --git a/README.md b/README.md index 1a65eed..288b307 100644 --- a/README.md +++ b/README.md @@ -113,12 +113,13 @@ $rules->deleteMany([ ```php use RWC\TwitterStream\RuleBuilder; -$builder = $client->new() +$rules->new() ->query('php') ->group(fn (RuleBuilder $builder) => $builder->raw('tip')->or->raw('🔥')) ->isRetweets() ->hasImages() - ->hasNotLinks(); + ->hasNotLinks() + ->save(); // Produces #php (tip OR 🔥) is:retweet has:images -has:links ``` @@ -132,7 +133,7 @@ $rules->new() ->query('#php') ->exceptRetweets() ->hasLinks() - ->compile() + ->save() // Produces: #php -is:retweet has:links ```