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

Autoloading issue with PHPStan 0.12.84 #4904

Closed
enumag opened this issue Apr 26, 2021 · 9 comments
Closed

Autoloading issue with PHPStan 0.12.84 #4904

enumag opened this issue Apr 26, 2021 · 9 comments

Comments

@enumag
Copy link
Contributor

enumag commented Apr 26, 2021

Bug report

A new problem started to appear on my CI after upgrading to PHPStan 0.12.84. I was unable to reproduce it locally, it only happens on GitHub Actions so far.

In Resolver.php line 110:

  [_HumbugBox61bfe547a037\Nette\DI\ServiceCreationException]                   
  Service '0365': Class Symplify\PHPStanRules\CognitiveComplexity\Rules\Funct  
  ionLikeCognitiveComplexityRule not found.                                    

After checking the changelog I have to assume that it's somehow caused by phpstan/phpstan-src#491.

cc @rrazor

@mergeable
Copy link

mergeable bot commented Apr 26, 2021

This bug report is missing a link to reproduction on phpstan.org.

It will most likely be closed after manual review.

@enumag enumag changed the title Autoloading issue Autoloading issue with PHPStan 0.12.84 Apr 26, 2021
@ondrejmirtes
Copy link
Member

I doubt this is related. Please create a small reproducing repository, or debug it yourself. I guess there's something weird about that class, it's probably not autoloaded by Composer.

@enumag
Copy link
Contributor Author

enumag commented Apr 26, 2021

That's the first thing I checked. Composer autoloading for that class is fine and the bug disappeared when I downgraded to PHPStan 0.12.83.

@ondrejmirtes
Copy link
Member

Still, I need a reproducing repository.

@alfredbez
Copy link

We had another issue which also only occured in CI and I found the issue by playing around with different docker-images, maybe this can help here, too: #4881 (comment)

@ondrejmirtes
Copy link
Member

Yeah, try with dev-master before anything else.

@enumag
Copy link
Contributor Author

enumag commented Apr 26, 2021

Yeah, try with dev-master before anything else.

Already did so, didn't help. I'll try to prepare a repo but it will take some time.

@enumag
Copy link
Contributor Author

enumag commented Apr 27, 2021

The issue disappeared on it's own today. Perhaps some weird caching issue. I'll reopen if I see it again.

@enumag enumag closed this as completed Apr 27, 2021
@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants