Skip to content

Locale::getPrimaryLanguage() can return empty string - #6400

Open
BenMorel wants to merge 1 commit into
phpstan:2.2.xfrom
BenMorel:patch-1
Open

Locale::getPrimaryLanguage() can return empty string#6400
BenMorel wants to merge 1 commit into
phpstan:2.2.xfrom
BenMorel:patch-1

Conversation

@BenMorel

@BenMorel BenMorel commented Sep 8, 2026

Copy link
Copy Markdown

@phpstan-bot

Copy link
Copy Markdown
Collaborator

You've opened the pull request against the latest branch 2.3.x. PHPStan 2.3 is not going to be released for months. If your code is relevant on 2.2.x and you want it to be released sooner, please rebase your pull request and change its target to 2.2.x.

@BenMorel
BenMorel changed the base branch from 2.3.x to 2.2.x September 8, 2026 20:59

@VincentLanglet VincentLanglet left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You also should update locale_get_primary_language then
https://github.com/phpstan/phpstan-src/blob/2.3.x/resources/functionMap.php#L5413

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants