From 3ddeecec1a3d9f13d4a13f68c6481ecde3e85359 Mon Sep 17 00:00:00 2001 From: Corey Taylor Date: Thu, 16 Feb 2023 13:34:39 -0600 Subject: [PATCH] Fix strpos stub return type --- stubs/CoreGenericFunctions.phpstub | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stubs/CoreGenericFunctions.phpstub b/stubs/CoreGenericFunctions.phpstub index 563be5068c2..f9640b06596 100644 --- a/stubs/CoreGenericFunctions.phpstub +++ b/stubs/CoreGenericFunctions.phpstub @@ -351,7 +351,7 @@ function array_merge_recursive(array ...$arrays) /** * @psalm-pure - * + * * @no-named-arguments * * @psalm-template TKey as array-key @@ -629,7 +629,7 @@ function substr_replace($string, $replace, $offset, $length = null) {} * * @psalm-return positive-int|0|false */ -function strpos($haystack, $needle, int $offset = 0) : int {} +function strpos($haystack, $needle, int $offset = 0) : int|false {} /** * @psalm-pure