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
CarbonImmutable Macro Causes PHPStan Internal Error #9705
Comments
This bug report is missing a link to reproduction at phpstan.org/try. It will most likely be closed after manual review. |
Looks like a problem here: https://github.com/briannesbitt/Carbon/tree/master/src/Carbon/PHPStan Please open an issue in https://github.com/briannesbitt. Thanks. |
Hi, I've fixed a similar problem, it might have fixed this problem too: #9776 |
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. |
Bug report
When using a
CarbonImmutable
macro in Laravel v10, PHPStan throws an error.Internal error: Internal error: No closure found on line 161 in AppServiceProvider.php.
Line 161:
It does not error when using standard Carbon macros, but we use
CarbonImmutable
everywhere so need them defined there.Stack Trace
Code snippet that reproduces the problem
I don't know how to reproduce the issue on /try since carbon is not supported.
Expected output
I expect it not to crash PHPStan.
Did PHPStan help you today? Did it make you happy in any way?
Love PHPStan!!
The text was updated successfully, but these errors were encountered: