From e384ad6d6801c3d4a03b444d267dbfec91ee23da Mon Sep 17 00:00:00 2001 From: Romain Canon Date: Mon, 23 Oct 2023 13:03:31 +0200 Subject: [PATCH] release: version 1.7.0 --- docs/pages/project/changelog.md | 1 + docs/pages/project/changelog/version-1.7.0.md | 48 +++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 docs/pages/project/changelog/version-1.7.0.md diff --git a/docs/pages/project/changelog.md b/docs/pages/project/changelog.md index 616c4d04..f02d450d 100644 --- a/docs/pages/project/changelog.md +++ b/docs/pages/project/changelog.md @@ -9,6 +9,7 @@ Below are listed the changelogs for all released version of the library. ## Version 1 +- [`1.7.0` — 23rd of October 2023](changelog/version-1.7.0.md) - [`1.6.1` — 11th of October 2023](changelog/version-1.6.1.md) - [`1.6.0` — 25th of August 2023](changelog/version-1.6.0.md) - [`1.5.0` — 7th of August 2023](changelog/version-1.5.0.md) diff --git a/docs/pages/project/changelog/version-1.7.0.md b/docs/pages/project/changelog/version-1.7.0.md new file mode 100644 index 00000000..277820d2 --- /dev/null +++ b/docs/pages/project/changelog/version-1.7.0.md @@ -0,0 +1,48 @@ +# Changelog 1.7.0 — 23rd of October 2023 + +!!! info inline end "[See release on GitHub]" + [See release on GitHub]: https://github.com/CuyZ/Valinor/releases/tag/1.7.0 + +## Notable changes + +**Non-positive integer** + +Non-positive integer can be used as below. It will accept any value equal to or +lower than zero. + +```php +final class SomeClass +{ + /** @var non-positive-int */ + public int $nonPositiveInteger; +} +``` + +**Non-negative integer** + +Non-negative integer can be used as below. It will accept any value equal to or +greater than zero. + +```php +final class SomeClass +{ + /** @var non-negative-int */ + public int $nonNegativeInteger; +} +``` + +## Features + +* Handle non-negative integer type ([f444ea](https://github.com/CuyZ/Valinor/commit/f444eae1f1205a9bbba75670524dbb6799e576aa)) +* Handle non-positive integer type ([53e404](https://github.com/CuyZ/Valinor/commit/53e4047f12718b985822926b57226805671206b9)) + +## Bug Fixes + +* Add missing `@psalm-pure` annotation to pure methods ([004eb1](https://github.com/CuyZ/Valinor/commit/004eb16717d2f16dc899e1a6b2c0d987ee0f77c1)) +* Handle comments in classes when parsing types imports ([3b663a](https://github.com/CuyZ/Valinor/commit/3b663a903abe6b7ea5bbbe41281d8ea711be7226)) + +## Other + +* Add comment for future PHP version change ([461898](https://github.com/CuyZ/Valinor/commit/46189854c335565317edbf42e36c01fca8c3614b)) +* Fix some typos ([5cf8ae](https://github.com/CuyZ/Valinor/commit/5cf8ae54d57dee1b92097d0e01e06105b73b7732)) +* Make `NativeBooleanType` a `BooleanType` ([d57ffa](https://github.com/CuyZ/Valinor/commit/d57ffae91b961019ec5fcb8344fddb8921f750dd))