Skip to content

Conversation

@ttomdewit
Copy link
Contributor

Add initial step to fail when offset on an array does not exist.

All credit to https://github.com/ondrejmirtes

Fixes phpstan/phpstan#7553

@ttomdewit ttomdewit marked this pull request as ready for review April 23, 2024 11:54
@phpstan-bot
Copy link
Collaborator

This pull request has been marked as ready for review.

Let PHPStan fail when possibly non-existing array offset is used.

Fixes phpstan/phpstan#7553

All credits to https://github.com/ondrejmirtes

Add initial step to fail when offset on an array does not exist.
@ondrejmirtes ondrejmirtes merged commit 2450222 into phpstan:1.11.x Apr 23, 2024
@ondrejmirtes
Copy link
Member

Thank you!

@ttomdewit ttomdewit deleted the undefined-array-offsets branch April 23, 2024 12:46
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.

Phpstan ignores possibly undefined array offsets

4 participants