Skip to content

Commit 5330017

Browse files
committed
Mark helpers private
1 parent e105dfe commit 5330017

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Preg.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ public static function isMatchAllWithOffsets(string $pattern, string $subject, ?
277277
return (bool) static::matchAllWithOffsets($pattern, $subject, $matches, $flags, $offset);
278278
}
279279

280-
protected static function checkOffsetCapture(int $flags, string $useFunctionName): void
280+
private static function checkOffsetCapture(int $flags, string $useFunctionName): void
281281
{
282282
if (($flags & PREG_OFFSET_CAPTURE) !== 0) {
283283
throw new \InvalidArgumentException('PREG_OFFSET_CAPTURE is not supported as it changes the type of $matches, use ' . $useFunctionName . '() instead');

src/Regex.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public static function replaceCallbackArray(array $pattern, $subject, int $limit
112112
return new ReplaceResult($count, $result);
113113
}
114114

115-
protected static function checkOffsetCapture(int $flags): void
115+
private static function checkOffsetCapture(int $flags): void
116116
{
117117
if (($flags & PREG_OFFSET_CAPTURE) !== 0) {
118118
throw new \InvalidArgumentException('PREG_OFFSET_CAPTURE is not supported as it changes the return type, use matchWithOffsets() instead');

0 commit comments

Comments
 (0)