From da8df71b2f66c079b52b5fd2869f5abb2444db89 Mon Sep 17 00:00:00 2001 From: Brown Date: Thu, 17 Sep 2020 21:35:30 -0400 Subject: [PATCH] Add explicit offset Fixes #4202 --- src/Psalm/Internal/Stubs/CoreGenericFunctions.phpstub | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Psalm/Internal/Stubs/CoreGenericFunctions.phpstub b/src/Psalm/Internal/Stubs/CoreGenericFunctions.phpstub index 6381c7cef7d..b970253d187 100644 --- a/src/Psalm/Internal/Stubs/CoreGenericFunctions.phpstub +++ b/src/Psalm/Internal/Stubs/CoreGenericFunctions.phpstub @@ -667,7 +667,7 @@ function preg_replace_callback($search, $replace, $subject, int $limit = -1, &$c * ) $matches * @return int */ -function preg_match_all($pattern, $replace, &$matches = [], int $flags = 1) {} +function preg_match_all($pattern, $replace, &$matches = [], int $flags = 1, int $offset = 0) {} /** * @psalm-pure