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

phpstan 1.11.0 is reporting Undefined offset #41252

Closed
phil-davis opened this issue May 13, 2024 · 0 comments · Fixed by #41253
Closed

phpstan 1.11.0 is reporting Undefined offset #41252

phil-davis opened this issue May 13, 2024 · 0 comments · Fixed by #41253

Comments

@phil-davis
Copy link
Contributor

Steps to reproduce

  1. submit a PR
  2. phpstan fails

Expected behaviour

phpstan should pass.

Actual behaviour

https://github.com/phpstan/phpstan/releases/tag/1.11.0 was just released, and CI uses it.
For example, PR #41251
https://drone.owncloud.com/owncloud/core/39931/6/8

 ------ ----------------------------- 
  Line   lib/private/Autoloader.php   
 ------ ----------------------------- 
  83     Notice: Undefined offset: 2  
  83     Notice: Undefined offset: 2  
  83     Notice: Undefined offset: 2  
  83     Notice: Undefined offset: 2  
  83     Notice: Undefined offset: 2  
  83     Notice: Undefined offset: 2  
 ------ ----------------------------- 

Server configuration

Current core master

I raised an issue phpstan/phpstan#11004 in phpstan.

But actually the notice comes from a problem in the Autoloader code. phpstan reports it now. I have a PR coming to fix it.

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 a pull request may close this issue.

1 participant