Skip to content

Commit

Permalink
Prepare version 5.2.1 release
Browse files Browse the repository at this point in the history
  • Loading branch information
nyamsprod committed Feb 25, 2023
1 parent 1af09df commit 82dcf4a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

All notable changes to `Period` will be documented in this file

## [Next] - TBD
## [5.2.1] - 2023-02-25

### Added

Expand Down Expand Up @@ -943,7 +943,8 @@ you can feed:

## 0.1.0 - 2014-09-19

[Next]: https://github.com/thephpleague/period/compare/5.2.0...master
[Next]: https://github.com/thephpleague/period/compare/5.2.1...master
[5.2.1]: https://github.com/thephpleague/period/compare/5.2.0...5.2.1
[5.2.0]: https://github.com/thephpleague/period/compare/5.1.0...5.2.0
[5.1.0]: https://github.com/thephpleague/period/compare/5.0.0...5.1.0
[5.1.0]: https://github.com/thephpleague/period/compare/5.0.0...5.1.0
Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^v3.13.1",
"phpstan/phpstan": "^1.9.18",
"phpstan/phpstan-deprecation-rules": "^1.1.1",
"phpstan/phpstan-phpunit": "^1.3.4",
"phpstan/phpstan-strict-rules": "^1.4.5",
"phpunit/phpunit": "^10.0.7"
"phpstan/phpstan": "^1.10.2",
"phpstan/phpstan-deprecation-rules": "^1.1.2",
"phpstan/phpstan-phpunit": "^1.3.7",
"phpstan/phpstan-strict-rules": "^1.5.0",
"phpunit/phpunit": "^10.0.12"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 0 additions & 2 deletions src/SequenceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,11 +185,9 @@ public function testSort(): void
$day2 = DatePoint::fromDateString('2012-06-12')->day();
$sequence = new Sequence($day1, $day2);
self::assertSame([0 => $day1, 1 => $day2], $sequence->toList());
self::assertTrue(array_is_list($sequence->toList()));

$sequence->sort(fn (Period $period1, Period $period2): int => $period1->startDate <=> $period2->startDate);
self::assertSame([0 => $day2, 1 => $day1], $sequence->toList());
self::assertTrue(array_is_list($sequence->toList()));
}

public function testSome(): void
Expand Down

0 comments on commit 82dcf4a

Please sign in to comment.