Hello,
Carbon v2.x is incompatible with PHPStan v2 when using macros.
When encountering a Carbon macro, PHPStan crashes with
Internal error: Class "PHPStan\Reflection\Php\BuiltinMethodReflection" does not exist while analysing file /path/to/file.php
Specifically it's crashing on this line:
|
$method = new ReflectionMethod(BuiltinMethodReflection::class, 'getReflection'); |
Is it possible to backport the updated extension from v3.x?
Carbon version: 2.72.5
PHP version: 8.3.14
Thanks!
Hello,
Carbon v2.x is incompatible with PHPStan v2 when using macros.
When encountering a Carbon macro, PHPStan crashes with
Specifically it's crashing on this line:
Carbon/src/Carbon/PHPStan/Macro.php
Line 20 in 4df0fdd
Is it possible to backport the updated extension from v3.x?
Carbon version: 2.72.5
PHP version: 8.3.14
Thanks!