Skip to content

ext/standard: remove unnecessary var_hash check - #24744

Open
Sjord wants to merge 1 commit into
php:masterfrom
Sjord:var-hash-never-null
Open

Sjord wants to merge 1 commit into
php:masterfrom
Sjord:var-hash-never-null

Conversation

@Sjord

@Sjord Sjord commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

var_hash is never null. It is dereferenced elsewhere in the function, so this function would already crash if it were null. Remove null check and add assertion.

var_hash is never null. It is dereferenced elsewhere in the function, so
this function would already crash if it were null. Remove null check and
add assertion.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant