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

[phpstorm-stubs] Updated deprecations for PHP 8.4 #1688

Merged
merged 2 commits into from
Oct 28, 2024

Conversation

LolGleb
Copy link
Contributor

@LolGleb LolGleb commented Oct 28, 2024

No description provided.

@LolGleb LolGleb self-assigned this Oct 28, 2024
dba/dba.php Outdated
@@ -372,6 +372,6 @@ function dba_list(): array {}
* value_name). This function will return <b>FALSE</b> if
* <i>key</i> is <b>NULL</b> or <b>FALSE</b>.
*/
function dba_key_split(string|false|null $key): array|false {}
function dba_key_split(#[LanguageLevelTypeAware(["8.4" => "string"], default: "string|false|null")] $key): array|false {}
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be changed? Could you please share a link on RFC or PHP change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Found it here php/php-src@bb2836e
"Passing null or false to dba_key_split() is deprecated"

Copy link
Contributor

Choose a reason for hiding this comment

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

Such deprecation can't be configured with different typehints in sugnature. Please see https://youtrack.jetbrains.com/issue/WI-79525/Deprecations-for-PHP-8.4 . A separate inspection should be done for this

@isfedorov isfedorov merged commit 057d28e into JetBrains:master Oct 28, 2024
11 of 12 checks passed
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.

2 participants