Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Revert "Cleanup instanceof Type checks" #4458

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

Open
takaram wants to merge 2 commits into phpstan:2.1.x
base: 2.1.x
Choose a base branch
Loading
from takaram:bug-13694

Conversation

@takaram
Copy link
Contributor

@takaram takaram commented Oct 19, 2025

This partially reverts 3b72271 (#4380).

Closes phpstan/phpstan#13694

Copy link
Contributor

staabm commented Oct 19, 2025

takaram reacted with eyes emoji

Copy link
Contributor Author

takaram commented Oct 23, 2025

@staabm
Was it really fixed? I tested on latest 2.1.x and still see the error Cannot access an offset on mixed.

Copy link
Contributor

staabm commented Oct 23, 2025

Was it really fixed?

hmm seems you are right. even on the latest dev-2.1.x it does not look fixed. maybe a issue-bot bug then.

➜ phpstan-src git:(2.1.x) ✗ php bin/phpstan analyze test.php --debug --level=10
Xdebug: [Step Debug] Could not connect to debugging client. Tried: localhost:9003 (through xdebug.client_host/xdebug.client_port).
 ! [NOTE] The Xdebug PHP extension is active, but "--xdebug" is not used. 
 ! The process was restarted and it will not halt at breakpoints. 
 ! Use "--xdebug" if you want to halt at breakpoints. 
Note: Using configuration file /Users/m.staab/dvl/phpstan-src/phpstan.neon.dist.
/Users/m.staab/dvl/phpstan-src/test.php
 ------ --------------------------------------- 
 Line test.php 
 ------ --------------------------------------- 
 2 Class Test must be abstract or final. 
 🪪 phpstan.finalClass 
 at test.php:2 
 21 Cannot access an offset on mixed. 
 🪪 offsetAccess.nonOffsetAccessible 
 at test.php:21 
 22 Cannot access an offset on mixed. 
 🪪 offsetAccess.nonOffsetAccessible 
 at test.php:22 
 ------ --------------------------------------- 

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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

False positive "Variable might not be defined" with array_key_exists and isset

2 participants

AltStyle によって変換されたページ (->オリジナル) /