Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix strpos stub return type #9322

Merged
merged 1 commit into from
Feb 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions stubs/CoreGenericFunctions.phpstub
Expand Up @@ -351,7 +351,7 @@ function array_merge_recursive(array ...$arrays)

/**
* @psalm-pure
*
*
* @no-named-arguments
*
* @psalm-template TKey as array-key
Expand Down Expand Up @@ -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
Expand Down