Skip to content

Commit

Permalink
Merge pull request #23 from fsamapoor/fix-readme-typo
Browse files Browse the repository at this point in the history
fix typo in README.md.
  • Loading branch information
freekmurze authored Jun 2, 2022
2 parents d19cdd9 + 54a032b commit e2d546a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ SubscriptionStats::increase(); // execute whenever somebody subscribes
SubscriptionStats::decrease(); // execute whenever somebody cancels the subscription;
```

Instead of manually increasing and decreasing the stat, you can directly set it. This is useful when you particular stat does not get calculated by your own app, but lives elsewhere. Using the subscription example, let's image that subscriptions live elsewhere, and that there's an API call to get the count.
Instead of manually increasing and decreasing the stat, you can directly set it. This is useful when your particular stat does not get calculated by your own app, but lives elsewhere. Using the subscription example, let's image that subscriptions live elsewhere, and that there's an API call to get the count.

```php
$count = AnAPi::getSubscriptionCount();
Expand Down

0 comments on commit e2d546a

Please sign in to comment.