Skip to content

Commit

Permalink
Allow string in return array key of matchAllPatterns
Browse files Browse the repository at this point in the history
  • Loading branch information
dlakomski committed Jan 26, 2022
1 parent ac0120b commit 224f4e8
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<array<int, string>>
* @return ArrayValue<array<int|string, 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<array<int, string>>
* @return ArrayValue<array<int|string, 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<array<int, string>>
* @return ArrayValue<array<int|string, string>>
*/
public function matchAllPatterns($pattern): ArrayValue;

Expand Down

0 comments on commit 224f4e8

Please sign in to comment.