Skip to content

Commit

Permalink
Fix incorrect return type for StringValue::matchAllPatterns()
Browse files Browse the repository at this point in the history
  • Loading branch information
dlakomski committed Jan 13, 2021
1 parent ee14343 commit 9228fa4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/PlainString.php
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ public function endsWith($pattern): bool

/**
* @param string|StringValue $pattern
* @return ArrayValue<string>
* @return ArrayValue<string[][]>
*/
public function matchAllPatterns($pattern): ArrayValue
{
Expand Down
2 changes: 1 addition & 1 deletion src/PlainStringsArray.php
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ public function positionLast($needle): ?int

/**
* @param string|StringValue $pattern
* @return ArrayValue<string>
* @return ArrayValue<string[][]>
*/
public function matchAllPatterns($pattern): ArrayValue
{
Expand Down
2 changes: 1 addition & 1 deletion src/StringValue.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public function positionLast($needle): ?int;

/**
* @param string|StringValue $pattern
* @return ArrayValue<string>
* @return ArrayValue<string[][]>
*/
public function matchAllPatterns($pattern): ArrayValue;

Expand Down

0 comments on commit 9228fa4

Please sign in to comment.