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

Internal error: "PrestaShop/PrestaShop/classes/PrestaShopAutoload.php(143) : eval()'d code" is not a file in file #7647

Closed
Progi1984 opened this issue Jul 18, 2022 · 2 comments

Comments

@Progi1984
Copy link

Bug report

With the update of PHPStan from 1.7.4 to 1.8.1 (the bug appeared in 1.7.5), a new error is appeared

Error: Internal error: Internal error: "/home/runner/work/PrestaShop/PrestaShop/classes/PrestaShopAutoload.php(143) : eval()'d code" is not a file in file /home/runner/work/PrestaShop/PrestaShop/classes/ConfigurationTest.php

Link : https://github.com/PrestaShop/PrestaShop/runs/7357656194?check_suite_focus=true#step:8:1

The error message is the same than @tom-combet in #7445.

I think PHPStan badly interprets the autoloader of PrestaShop : https://github.com/PrestaShop/PrestaShop/blob/develop/classes/PrestaShopAutoload.php#L143

Code snippet that reproduces the problem

I think I have a reproducible bug : https://phpstan.org/r/1e2d8d54-c206-407f-9d3e-77f17fbfdd48

Expected output

PHPStan should detect the class D.

Did PHPStan help you today? Did it make you happy in any way?

Thanks for your work.

@ondrejmirtes
Copy link
Member

Fixed: phpstan/phpstan-src@058d739

PrestaShop is now part of PHPStan's integration test suite: 4437294

@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 Aug 21, 2022
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

2 participants