From 254a036f7e6374a9913ff87389d6d52a000fec18 Mon Sep 17 00:00:00 2001 From: Baptiste Langlade Date: Wed, 24 Sep 2025 16:06:55 +0200 Subject: [PATCH] add missing template on returned object on Matching::property() --- CHANGELOG.md | 6 ++++++ src/Matching.php | 2 ++ 2 files changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d6c569..c89358c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## [Unreleased] + +### Fixed + +- Missing template on returned object of `Matching::property()` + ## 5.1.0 - 2025-09-24 ### Added diff --git a/src/Matching.php b/src/Matching.php index ba9f7ba..a26c6fa 100644 --- a/src/Matching.php +++ b/src/Matching.php @@ -414,6 +414,8 @@ public function find(callable $predicate): Maybe * @experimental * * @param non-empty-string $property + * + * @return Matching\Property */ public function property(string $property): Matching\Property {