Skip to content

Commit

Permalink
Merge pull request #99 from yusufonur/master
Browse files Browse the repository at this point in the history
Fix code example in readme file
  • Loading branch information
brendt authored Oct 11, 2021
2 parents b5e0795 + 74cd2f5 commit 0dabfa4
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 @@ -39,7 +39,7 @@ composer require spatie/period
You're encouraged to create periods using their static constructor:

```php
$period = Period::make('2021-01-01', '2020-01-31');
$period = Period::make('2021-01-01', '2021-01-31');
```

You can manually construct a period, but you'll need to manually provide its **precision** and **boundaries**. Using `Period::make`, the default precision (`Precision::DAY()`) and default boundaries (`Boundaries::EXCLUDE_NONE()`) are used.
Expand Down

0 comments on commit 0dabfa4

Please sign in to comment.