Skip to content

Commit

Permalink
chore: update PHPDoc in Preg::matchAll (#8012)
Browse files Browse the repository at this point in the history
  • Loading branch information
kubawerlos committed May 15, 2024
1 parent 229ab9b commit 4f69067
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions dev-tools/phpstan/baseline.php
Original file line number Diff line number Diff line change
Expand Up @@ -841,12 +841,6 @@
'count' => 1,
'path' => __DIR__ . '/../../src/Linter/ProcessLinter.php',
];
$ignoreErrors[] = [
// identifier: missingType.iterableValue
'message' => '#^Method PhpCsFixer\\\\Preg\\:\\:matchAll\\(\\) has @param\\-out PHPDoc tag for parameter \\$matches with no value type specified in iterable type array\\.$#',
'count' => 1,
'path' => __DIR__ . '/../../src/Preg.php',
];
$ignoreErrors[] = [
// identifier: return.type
'message' => '#^Method PhpCsFixer\\\\Preg\\:\\:replace\\(\\) should return string but returns array\\<int, string\\>\\|string\\.$#',
Expand Down
2 changes: 1 addition & 1 deletion src/Preg.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public static function match(string $pattern, string $subject, ?array &$matches
* ? list<array<?string>>
* : ($flags is int-mask<PREG_SET_ORDER, PREG_OFFSET_CAPTURE, PREG_UNMATCHED_AS_NULL>&770
* ? list<array<array{?string, int}>>
* : array
* : ($flags is 0 ? array<list<string>> : array<mixed>)
* )
* )
* )
Expand Down

0 comments on commit 4f69067

Please sign in to comment.