Skip to content

Commit 0a405a0

Browse files
committed
Add return phpstan doc to getFeedback
1 parent 2adade8 commit 0a405a0

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/Feedback.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ class Feedback
1515
/**
1616
* @param int $score
1717
* @param Match[] $sequence
18-
* @return array
18+
* @return array{
19+
* warning: string,
20+
* suggestions: string[]
21+
* }
1922
*/
2023
public function getFeedback($score, array $sequence)
2124
{

src/Matchers/Match.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,10 @@ public function __construct($password, $begin, $end, $token)
5151
*
5252
* @param bool $isSoleMatch
5353
* Whether this is the only match in the password
54-
* @return array
55-
* Associative array with warning (string) and suggestions (array of strings)
54+
* @return array{
55+
* warning: string,
56+
* suggestions: string[]
57+
* } Associative array with warning (string) and suggestions (array of strings)
5658
*/
5759
abstract public function getFeedback($isSoleMatch);
5860

0 commit comments

Comments
 (0)